10 #include <HAL/Interrupts.h> 12 #include "AnalogTriggerType.h" 13 #include "ErrorBase.h" 14 #include "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);
Definition: Utility.cpp:119
virtual void RequestInterrupts()
Request one of the 8 interrupts synchronously on this digital input.
Definition: InterruptableSensorBase.cpp:35
virtual double ReadFallingTimestamp()
Return the timestamp for the falling interrupt that occurred most recently.
Definition: InterruptableSensorBase.cpp:104
Definition: InterruptableSensorBase.h:18
virtual void EnableInterrupts()
Enable interrupts to occur on this input.
Definition: InterruptableSensorBase.cpp:79
virtual double ReadRisingTimestamp()
Return the timestamp for the rising interrupt that occurred most recently.
Definition: InterruptableSensorBase.cpp:95
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge)
Set which edge to trigger interrupts on.
Definition: InterruptableSensorBase.cpp:113
Base class for most objects.
Definition: ErrorBase.h:74
virtual void CancelInterrupts()
Cancel interrupts on this device.
Definition: InterruptableSensorBase.cpp:51
Definition: SendableBase.h:19
virtual void DisableInterrupts()
Disable Interrupts without without deallocating structures.
Definition: InterruptableSensorBase.cpp:87
virtual WaitResult WaitForInterrupt(double timeout, bool ignorePrevious=true)
In synchronous mode, wait for the defined interrupt to occur.
Definition: InterruptableSensorBase.cpp:60