WPILibC++  2020.3.2-60-g3011ebe
frc::DMA Class Reference
Inheritance diagram for frc::DMA:
frc::ErrorBase

Public Member Functions

DMAoperator= (DMA &&other)=default
 
 DMA (DMA &&other)=default
 
void SetPause (bool pause)
 
void SetRate (int cycles)
 
void AddEncoder (const Encoder *encoder)
 
void AddEncoderPeriod (const Encoder *encoder)
 
void AddCounter (const Counter *counter)
 
void AddCounterPeriod (const Counter *counter)
 
void AddDigitalSource (const DigitalSource *digitalSource)
 
void AddDutyCycle (const DutyCycle *digitalSource)
 
void AddAnalogInput (const AnalogInput *analogInput)
 
void AddAveragedAnalogInput (const AnalogInput *analogInput)
 
void AddAnalogAccumulator (const AnalogInput *analogInput)
 
void SetExternalTrigger (DigitalSource *source, bool rising, bool falling)
 
void StartDMA (int queueDepth)
 
void StopDMA ()
 
- Public Member Functions inherited from frc::ErrorBase
 ErrorBase (const ErrorBase &)=default
 
ErrorBaseoperator= (const ErrorBase &)=default
 
 ErrorBase (ErrorBase &&)=default
 
ErrorBaseoperator= (ErrorBase &&)=default
 
virtual ErrorGetError ()
 Retrieve the current error. More...
 
virtual const ErrorGetError () const
 Retrieve the current error. More...
 
virtual void ClearError () const
 Clear the current error information associated with this sensor.
 
virtual void SetErrnoError (const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const
 Set error information associated with a C library call that set an error to the "errno" global variable. More...
 
virtual void SetImaqError (int success, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const
 Set the current error information associated from the nivision Imaq API. More...
 
virtual void SetError (Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const
 Set the current error information associated with this sensor. More...
 
virtual void SetErrorRange (Error::Code code, int32_t minRange, int32_t maxRange, int32_t requestedValue, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const
 Set the current error information associated with this sensor. More...
 
virtual void SetWPIError (const wpi::Twine &errorMessage, Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const
 Set the current error information associated with this sensor. More...
 
virtual void CloneError (const ErrorBase &rhs) const
 
virtual bool StatusIsFatal () const
 Check if the current error code represents a fatal error. More...
 
void ClearGlobalErrors ()
 Clear global errors.
 

Friends

class DMASample
 

Additional Inherited Members

- Static Public Member Functions inherited from frc::ErrorBase
static void SetGlobalError (Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber)
 
static void SetGlobalWPIError (const wpi::Twine &errorMessage, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber)
 
static Error GetGlobalError ()
 Retrieve the last global error.
 
static std::vector< ErrorGetGlobalErrors ()
 Retrieve all global errors.
 
- Protected Attributes inherited from frc::ErrorBase
Error m_error
 

The documentation for this class was generated from the following file: