10 #include "AnalogTriggerType.h"
11 #include "HAL/Interrupts.h"
12 #include "SensorBase.h"
28 virtual HAL_Handle GetPortHandleForRouting()
const = 0;
29 virtual AnalogTriggerType GetAnalogTriggerTypeForRouting()
const = 0;
31 HAL_InterruptHandlerFunction handler,
38 bool ignorePrevious =
true);
49 HAL_InterruptHandle m_interrupt = HAL_kInvalidHandle;
50 void AllocateInterrupts(
bool watcher);
virtual void RequestInterrupts()
Synchronus Wait version.
Definition: InterruptableSensorBase.cpp:49
virtual double ReadFallingTimestamp()
Return the timestamp for the falling interrupt that occurred.
Definition: InterruptableSensorBase.cpp:171
Definition: InterruptableSensorBase.h:16
Base class for all sensors.
Definition: SensorBase.h:20
virtual void EnableInterrupts()
Enable interrupts - after finishing setup.
Definition: InterruptableSensorBase.cpp:125
virtual double ReadRisingTimestamp()
Return the timestamp for the rising interrupt that occurred.
Definition: InterruptableSensorBase.cpp:153
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge)
Set which edge to trigger interrupts on.
Definition: InterruptableSensorBase.cpp:186
virtual void CancelInterrupts()
Free up the underlying chipobject functions.
Definition: InterruptableSensorBase.cpp:78
virtual void DisableInterrupts()
Disable, but don't deallocate.
Definition: InterruptableSensorBase.cpp:136
virtual WaitResult WaitForInterrupt(double timeout, bool ignorePrevious=true)
Synchronus version.
Definition: InterruptableSensorBase.cpp:99