Reflowed comments and removed commented out code (#735)

This commit is contained in:
Tyler Veness
2017-11-16 00:33:51 -08:00
committed by Peter Johnson
parent 1e8d18b328
commit c663d7cd16
103 changed files with 784 additions and 778 deletions

View File

@@ -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: