Skip to content

Struct hal::adc::read_t

ClassList > hal > adc > read_t

Result from reading the adc.

  • #include <adc.hpp>

Public Attributes

Type Name
float sample
Sample value of the adc.

Public Attributes Documentation

variable sample

Sample value of the adc.

float hal::adc::read_t::sample;

Is guaranteed by the implementing driver to be between 0.0f and +1.0f. The value representing the voltage measured by the ADC from Vss (negative reference) to Vcc (positive reference). For example, if Vss is 0V (gnd) and Vcc is 5V and this value is 0.5f, then the voltage measured is 2.5V.


The documentation for this class was generated from the following file libraries/include/libhal/adc.hpp