mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Reflowed comments and removed commented out code (#735)
This commit is contained in:
committed by
Peter Johnson
parent
1e8d18b328
commit
c663d7cd16
@@ -28,22 +28,33 @@ class InterruptableSensorBase : public SensorBase {
|
||||
|
||||
virtual HAL_Handle GetPortHandleForRouting() const = 0;
|
||||
virtual AnalogTriggerType GetAnalogTriggerTypeForRouting() const = 0;
|
||||
virtual void RequestInterrupts(
|
||||
HAL_InterruptHandlerFunction handler,
|
||||
void* param); ///< Asynchronus handler version.
|
||||
virtual void RequestInterrupts(); ///< Synchronus Wait version.
|
||||
virtual void
|
||||
CancelInterrupts(); ///< Free up the underlying chipobject functions.
|
||||
virtual WaitResult WaitForInterrupt(
|
||||
double timeout,
|
||||
bool ignorePrevious = true); ///< Synchronus version.
|
||||
virtual void
|
||||
EnableInterrupts(); ///< Enable interrupts - after finishing setup.
|
||||
virtual void DisableInterrupts(); ///< Disable, but don't deallocate.
|
||||
virtual double ReadRisingTimestamp(); ///< Return the timestamp for the
|
||||
/// rising interrupt that occurred.
|
||||
virtual double ReadFallingTimestamp(); ///< Return the timestamp for the
|
||||
/// falling interrupt that occurred.
|
||||
|
||||
// Asynchronous handler version.
|
||||
virtual void RequestInterrupts(HAL_InterruptHandlerFunction handler,
|
||||
void* param);
|
||||
|
||||
// Synchronous wait version.
|
||||
virtual void RequestInterrupts();
|
||||
|
||||
// Free up the underlying ChipObject functions.
|
||||
virtual void CancelInterrupts();
|
||||
|
||||
// Synchronous version.
|
||||
virtual WaitResult WaitForInterrupt(double timeout,
|
||||
bool ignorePrevious = true);
|
||||
|
||||
// Enable interrupts - after finishing setup.
|
||||
virtual void EnableInterrupts();
|
||||
|
||||
// Disable, but don't deallocate.
|
||||
virtual void DisableInterrupts();
|
||||
|
||||
// Return the timestamp for the rising interrupt that occurred.
|
||||
virtual double ReadRisingTimestamp();
|
||||
|
||||
// Return the timestamp for the falling interrupt that occurred.
|
||||
virtual double ReadFallingTimestamp();
|
||||
|
||||
virtual void SetUpSourceEdge(bool risingEdge, bool fallingEdge);
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user