10 #include <HAL/Interrupts.h> 12 #include "AnalogTriggerType.h" 13 #include "SensorBase.h" 28 virtual HAL_Handle GetPortHandleForRouting()
const = 0;
29 virtual AnalogTriggerType GetAnalogTriggerTypeForRouting()
const = 0;
43 bool ignorePrevious =
true);
60 HAL_InterruptHandle m_interrupt = HAL_kInvalidHandle;
61 void AllocateInterrupts(
bool watcher);
Definition: RobotController.cpp:14
virtual void RequestInterrupts()
Request one of the 8 interrupts synchronously on this digital input.
Definition: InterruptableSensorBase.cpp:50
virtual double ReadFallingTimestamp()
Return the timestamp for the falling interrupt that occurred most recently.
Definition: InterruptableSensorBase.cpp:172
Definition: InterruptableSensorBase.h:17
Base class for all sensors.
Definition: SensorBase.h:25
virtual void EnableInterrupts()
Enable interrupts to occur on this input.
Definition: InterruptableSensorBase.cpp:126
virtual double ReadRisingTimestamp()
Return the timestamp for the rising interrupt that occurred most recently.
Definition: InterruptableSensorBase.cpp:154
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge)
Set which edge to trigger interrupts on.
Definition: InterruptableSensorBase.cpp:187
virtual void CancelInterrupts()
Cancel interrupts on this device.
Definition: InterruptableSensorBase.cpp:79
virtual void DisableInterrupts()
Disable Interrupts without without deallocating structures.
Definition: InterruptableSensorBase.cpp:137
virtual WaitResult WaitForInterrupt(double timeout, bool ignorePrevious=true)
In synchronous mode, wait for the defined interrupt to occur.
Definition: InterruptableSensorBase.cpp:100