12 #include "HAL/AnalogTrigger.h"
13 #include "HAL/Types.h"
19 typedef void (*HAL_InterruptHandlerFunction)(uint32_t interruptAssertedMask,
22 HAL_InterruptHandle HAL_InitializeInterrupts(HAL_Bool watcher, int32_t* status);
23 void HAL_CleanInterrupts(HAL_InterruptHandle interruptHandle, int32_t* status);
25 int64_t HAL_WaitForInterrupt(HAL_InterruptHandle interruptHandle,
26 double timeout, HAL_Bool ignorePrevious,
28 void HAL_EnableInterrupts(HAL_InterruptHandle interruptHandle, int32_t* status);
29 void HAL_DisableInterrupts(HAL_InterruptHandle interruptHandle,
31 double HAL_ReadInterruptRisingTimestamp(HAL_InterruptHandle interruptHandle,
33 double HAL_ReadInterruptFallingTimestamp(HAL_InterruptHandle interruptHandle,
35 void HAL_RequestInterrupts(HAL_InterruptHandle interruptHandle,
36 HAL_Handle digitalSourceHandle,
37 HAL_AnalogTriggerType analogTriggerType,
39 void HAL_AttachInterruptHandler(HAL_InterruptHandle interruptHandle,
40 HAL_InterruptHandlerFunction handler,
41 void* param, int32_t* status);
42 void HAL_AttachInterruptHandlerThreaded(HAL_InterruptHandle interruptHandle,
43 HAL_InterruptHandlerFunction handler,
44 void* param, int32_t* status);
45 void HAL_SetInterruptUpSourceEdge(HAL_InterruptHandle interruptHandle,
46 HAL_Bool risingEdge, HAL_Bool fallingEdge,