WPILibC++ 2024.3.2
Interrupts.h File Reference
#include <stdint.h>
#include "hal/AnalogTrigger.h"
#include "hal/Types.h"

Go to the source code of this file.

Functions

HAL_InterruptHandle HAL_InitializeInterrupts (int32_t *status)
 Initializes an interrupt. More...
 
void HAL_CleanInterrupts (HAL_InterruptHandle interruptHandle)
 Frees an interrupt. More...
 
int64_t HAL_WaitForInterrupt (HAL_InterruptHandle interruptHandle, double timeout, HAL_Bool ignorePrevious, int32_t *status)
 Waits for the defined interrupt to occur. More...
 
int64_t HAL_WaitForMultipleInterrupts (HAL_InterruptHandle interruptHandle, int64_t mask, double timeout, HAL_Bool ignorePrevious, int32_t *status)
 Waits for any interrupt covered by the mask to occur. More...
 
int64_t HAL_ReadInterruptRisingTimestamp (HAL_InterruptHandle interruptHandle, int32_t *status)
 Returns the timestamp for the rising interrupt that occurred most recently. More...
 
int64_t HAL_ReadInterruptFallingTimestamp (HAL_InterruptHandle interruptHandle, int32_t *status)
 Returns the timestamp for the falling interrupt that occurred most recently. More...
 
void HAL_RequestInterrupts (HAL_InterruptHandle interruptHandle, HAL_Handle digitalSourceHandle, HAL_AnalogTriggerType analogTriggerType, int32_t *status)
 Requests interrupts on a specific digital source. More...
 
void HAL_SetInterruptUpSourceEdge (HAL_InterruptHandle interruptHandle, HAL_Bool risingEdge, HAL_Bool fallingEdge, int32_t *status)
 Sets the edges to trigger the interrupt on. More...
 
void HAL_ReleaseWaitingInterrupt (HAL_InterruptHandle interruptHandle, int32_t *status)
 Releases a waiting interrupt. More...