10 #include <HAL/Interrupts.h> 12 #include "AnalogTriggerType.h" 13 #include "SensorBase.h" 29 virtual HAL_Handle GetPortHandleForRouting()
const = 0;
30 virtual AnalogTriggerType GetAnalogTriggerTypeForRouting()
const = 0;
32 HAL_InterruptHandlerFunction handler,
39 bool ignorePrevious =
true);
50 HAL_InterruptHandle m_interrupt = HAL_kInvalidHandle;
51 void AllocateInterrupts(
bool watcher);
virtual void RequestInterrupts()
Synchronus Wait version.
Definition: InterruptableSensorBase.cpp:50
virtual double ReadFallingTimestamp()
Return the timestamp for the falling interrupt that occurred.
Definition: InterruptableSensorBase.cpp:172
Definition: InterruptableSensorBase.h:17
Base class for all sensors.
Definition: SensorBase.h:20
virtual void EnableInterrupts()
Enable interrupts - after finishing setup.
Definition: InterruptableSensorBase.cpp:126
virtual double ReadRisingTimestamp()
Return the timestamp for the rising interrupt that occurred.
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()
Free up the underlying chipobject functions.
Definition: InterruptableSensorBase.cpp:79
virtual void DisableInterrupts()
Disable, but don't deallocate.
Definition: InterruptableSensorBase.cpp:137
virtual WaitResult WaitForInterrupt(double timeout, bool ignorePrevious=true)
Synchronus version.
Definition: InterruptableSensorBase.cpp:100