12 #include "hal/AnalogTrigger.h"
13 #include "hal/Types.h"
25 typedef void (*HAL_InterruptHandlerFunction)(uint32_t interruptAssertedMask,
55 double timeout, HAL_Bool ignorePrevious,
112 HAL_Handle digitalSourceHandle,
113 HAL_AnalogTriggerType analogTriggerType,
127 HAL_InterruptHandlerFunction handler,
128 void* param, int32_t* status);
141 HAL_InterruptHandlerFunction handler,
142 void* param, int32_t* status);
154 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.
int64_t HAL_ReadInterruptRisingTimestamp(HAL_InterruptHandle interruptHandle, int32_t *status)
Returns the timestamp for the rising interrupt that occurred most recently.
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.
int64_t 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.
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.