10 #include <hal/Interrupts.h>
12 #include "frc/AnalogTriggerType.h"
13 #include "frc/ErrorBase.h"
14 #include "frc/smartdashboard/SendableBase.h"
29 virtual HAL_Handle GetPortHandleForRouting()
const = 0;
30 virtual AnalogTriggerType GetAnalogTriggerTypeForRouting()
const = 0;
72 bool ignorePrevious =
true);
119 HAL_InterruptHandle m_interrupt = HAL_kInvalidHandle;
121 void AllocateInterrupts(
bool watcher);
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
Definition: InterruptableSensorBase.h:18
virtual double ReadFallingTimestamp()
Return the timestamp for the falling interrupt that occurred most recently.
virtual WaitResult WaitForInterrupt(double timeout, bool ignorePrevious=true)
In synchronous mode, wait for the defined interrupt to occur.
virtual void RequestInterrupts()
Request one of the 8 interrupts synchronously on this digital input.
virtual void EnableInterrupts()
Enable interrupts to occur on this input.
virtual double ReadRisingTimestamp()
Return the timestamp for the rising interrupt that occurred most recently.
Base class for most objects.
Definition: ErrorBase.h:74
Definition: SendableBase.h:19
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge)
Set which edge to trigger interrupts on.
virtual void CancelInterrupts()
Cancel interrupts on this device.
virtual void DisableInterrupts()
Disable Interrupts without without deallocating structures.