HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
Loading...
Searching...
No Matches
ads7952::ReadResult Struct 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
 

Detailed Description

Definition at line 134 of file ads7952_types.hpp.

Member Function Documentation

◆ ok()

bool ads7952::ReadResult::ok ( ) const
inlinenoexcept

True when error equals Error::Ok.

Definition at line 141 of file ads7952_types.hpp.

References error, and ads7952::Ok.

Member Data Documentation

◆ channel

uint8_t ads7952::ReadResult::channel = 0

Channel that was read (from response)

Definition at line 137 of file ads7952_types.hpp.

◆ count

uint16_t ads7952::ReadResult::count = 0

Raw 12-bit ADC count (0-4095)

Definition at line 135 of file ads7952_types.hpp.

◆ error

Error ads7952::ReadResult::error = Error::Ok

Definition at line 138 of file ads7952_types.hpp.

Referenced by ok(), and ads7952::ADS7952< SpiType >::ReadChannel().

◆ voltage

float ads7952::ReadResult::voltage = 0.0f

Converted voltage.

Definition at line 136 of file ads7952_types.hpp.


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