12 #include "AnalogTriggerType.h"
13 #include "HAL/Interrupts.h"
14 #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:51
virtual double ReadFallingTimestamp()
Return the timestamp for the falling interrupt that occurred.
Definition: InterruptableSensorBase.cpp:167
Definition: InterruptableSensorBase.h:18
Base class for all sensors.
Definition: SensorBase.h:22
virtual void EnableInterrupts()
Enable interrupts - after finishing setup.
Definition: InterruptableSensorBase.cpp:121
virtual double ReadRisingTimestamp()
Return the timestamp for the rising interrupt that occurred.
Definition: InterruptableSensorBase.cpp:149
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge)
Set which edge to trigger interrupts on.
Definition: InterruptableSensorBase.cpp:182
virtual void CancelInterrupts()
Free up the underlying chipobject functions.
Definition: InterruptableSensorBase.cpp:80
virtual void DisableInterrupts()
Disable, but don't deallocate.
Definition: InterruptableSensorBase.cpp:132
virtual WaitResult WaitForInterrupt(double timeout, bool ignorePrevious=true)
Synchronus version.
Definition: InterruptableSensorBase.cpp:101