C/C++ API Reference
Loading...
Searching...
No Matches
pw::analog::MicrovoltInput Class Referenceabstract

Overview

The common interface for obtaining voltage samples in microvolts. This interface represents a single voltage input or channel. Users will need to supply their own ADC driver implementation in order to provide the reference voltages and to configure and enable the ADC peripheral where needed. Users are responsible for managing multi-threaded access to the ADC driver if the ADC services multiple channels.

Inheritance diagram for pw::analog::MicrovoltInput:
pw::analog::AnalogInput

Classes

struct  References
 

Public Member Functions

Result< int32_t > TryReadMicrovoltsFor (chrono::SystemClock::duration timeout)
 
Result< int32_t > TryReadMicrovoltsUntil (chrono::SystemClock::time_point deadline)
 
- Public Member Functions inherited from pw::analog::AnalogInput
Result< int32_t > TryReadFor (chrono::SystemClock::duration timeout)
 
virtual Result< int32_t > TryReadUntil (chrono::SystemClock::time_point deadline)=0
 
virtual Limits GetLimits () const =0
 

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