|
ADS7952 Driver
API reference
|
#include <ads7952_types.hpp>
Public Member Functions | |
| bool | ok () const noexcept |
| True when error equals Error::Ok. | |
Public Attributes | |
| uint16_t | count = 0 |
| Raw 12-bit ADC count (0-4095) | |
| float | voltage = 0.0f |
| Converted voltage. | |
| uint8_t | channel = 0 |
| Channel that was read (from response) | |
| Error | error = Error::Ok |
Definition at line 142 of file ads7952_types.hpp.
|
inlinenoexcept |
True when error equals Error::Ok.
Definition at line 149 of file ads7952_types.hpp.
References error, and ads7952::Ok.
| uint8_t ads7952::ReadResult::channel = 0 |
Channel that was read (from response)
Definition at line 145 of file ads7952_types.hpp.
| uint16_t ads7952::ReadResult::count = 0 |
Raw 12-bit ADC count (0-4095)
Definition at line 143 of file ads7952_types.hpp.
Definition at line 146 of file ads7952_types.hpp.
Referenced by ok(), and ads7952::ADS7952< SpiType >::ReadChannel().
| float ads7952::ReadResult::voltage = 0.0f |
Converted voltage.
Definition at line 144 of file ads7952_types.hpp.