12 #include "hal/AnalogTrigger.h"
13 #include "hal/Types.h"
25 typedef void (*HAL_InterruptHandlerFunction)(uint32_t interruptAssertedMask,
55 double timeout, HAL_Bool ignorePrevious,
108 HAL_Handle digitalSourceHandle,
109 HAL_AnalogTriggerType analogTriggerType,
123 HAL_InterruptHandlerFunction handler,
124 void* param, int32_t* status);
137 HAL_InterruptHandlerFunction handler,
138 void* param, int32_t* status);
150 HAL_Bool risingEdge, HAL_Bool fallingEdge,
void HAL_SetInterruptUpSourceEdge(HAL_InterruptHandle interruptHandle, HAL_Bool risingEdge, HAL_Bool fallingEdge, int32_t *status)
Sets the edges to trigger the interrupt on.
void HAL_AttachInterruptHandler(HAL_InterruptHandle interruptHandle, HAL_InterruptHandlerFunction handler, void *param, int32_t *status)
Attaches an asynchronous interrupt handler to the interrupt.
void * HAL_CleanInterrupts(HAL_InterruptHandle interruptHandle, int32_t *status)
Frees an interrupt.
void HAL_EnableInterrupts(HAL_InterruptHandle interruptHandle, int32_t *status)
Enables interrupts to occur on this input.
double HAL_ReadInterruptFallingTimestamp(HAL_InterruptHandle interruptHandle, int32_t *status)
Returns the timestamp for the falling interrupt that occurred most recently.
void HAL_AttachInterruptHandlerThreaded(HAL_InterruptHandle interruptHandle, HAL_InterruptHandlerFunction handler, void *param, int32_t *status)
Attaches an asynchronous interrupt handler to the interrupt.
double HAL_ReadInterruptRisingTimestamp(HAL_InterruptHandle interruptHandle, int32_t *status)
Returns the timestamp for the rising interrupt that occurred most recently.
int64_t HAL_WaitForInterrupt(HAL_InterruptHandle interruptHandle, double timeout, HAL_Bool ignorePrevious, int32_t *status)
In synchronous mode, waits for the defined interrupt to occur.
void HAL_DisableInterrupts(HAL_InterruptHandle interruptHandle, int32_t *status)
Disables interrupts without without deallocating structures.
void HAL_RequestInterrupts(HAL_InterruptHandle interruptHandle, HAL_Handle digitalSourceHandle, HAL_AnalogTriggerType analogTriggerType, int32_t *status)
Requests interrupts on a specific digital source.
HAL_InterruptHandle HAL_InitializeInterrupts(HAL_Bool watcher, int32_t *status)
Initializes an interrupt.