10 #include "AnalogTriggerType.h"
11 #include "HAL/Interrupts.h"
12 #include "SensorBase.h"
27 virtual HAL_Handle GetPortHandleForRouting()
const = 0;
28 virtual AnalogTriggerType GetAnalogTriggerTypeForRouting()
const = 0;
30 HAL_InterruptHandlerFunction handler,
37 bool ignorePrevious =
true);
48 HAL_InterruptHandle m_interrupt = HAL_kInvalidHandle;
49 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:173
Definition: InterruptableSensorBase.h:16
Base class for all sensors.
Definition: SensorBase.h:20
virtual void EnableInterrupts()
Enable interrupts - after finishing setup.
Definition: InterruptableSensorBase.cpp:127
virtual double ReadRisingTimestamp()
Return the timestamp for the rising interrupt that occurred.
Definition: InterruptableSensorBase.cpp:155
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge)
Set which edge to trigger interrupts on.
Definition: InterruptableSensorBase.cpp:188
virtual void CancelInterrupts()
Free up the underlying chipobject functions.
Definition: InterruptableSensorBase.cpp:80
virtual void DisableInterrupts()
Disable, but don't deallocate.
Definition: InterruptableSensorBase.cpp:138
virtual WaitResult WaitForInterrupt(double timeout, bool ignorePrevious=true)
Synchronus version.
Definition: InterruptableSensorBase.cpp:101