SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::ESP32AnalogReader Class Reference

#include <sensesp/sensors/analog_reader.h>

Inheritance diagram for sensesp::ESP32AnalogReader:
[legend]

Public Member Functions

 ESP32AnalogReader (int pin)
 
bool configure ()
 
float read ()
 
- Public Member Functions inherited from sensesp::BaseAnalogReader

Protected Attributes

int pin_
 
adc_atten_t attenuation_ = ADC_ATTEN_DB_12
 
adc_bits_width_t bit_width_ = (adc_bits_width_t)ADC_WIDTH_BIT_DEFAULT
 
const float kVmax_ = 3300
 
int8_t adc_channel_
 
esp_adc_cal_characteristics_t adc_characteristics_
 
const int kVref_ = 1100
 

Detailed Description

Definition at line 25 of file analog_reader.h.

Constructor & Destructor Documentation

◆ ESP32AnalogReader()

sensesp::ESP32AnalogReader::ESP32AnalogReader ( int pin)
inline

Definition at line 38 of file analog_reader.h.

Member Function Documentation

◆ configure()

bool sensesp::ESP32AnalogReader::configure ( )
inlinevirtual

Implements sensesp::BaseAnalogReader.

Definition at line 47 of file analog_reader.h.

◆ read()

float sensesp::ESP32AnalogReader::read ( )
inlinevirtual

Implements sensesp::BaseAnalogReader.

Definition at line 58 of file analog_reader.h.

Member Data Documentation

◆ adc_channel_

int8_t sensesp::ESP32AnalogReader::adc_channel_
protected

Definition at line 33 of file analog_reader.h.

◆ adc_characteristics_

esp_adc_cal_characteristics_t sensesp::ESP32AnalogReader::adc_characteristics_
protected

Definition at line 34 of file analog_reader.h.

◆ attenuation_

adc_atten_t sensesp::ESP32AnalogReader::attenuation_ = ADC_ATTEN_DB_12
protected

Definition at line 28 of file analog_reader.h.

◆ bit_width_

adc_bits_width_t sensesp::ESP32AnalogReader::bit_width_ = (adc_bits_width_t)ADC_WIDTH_BIT_DEFAULT
protected

Definition at line 30 of file analog_reader.h.

◆ kVmax_

const float sensesp::ESP32AnalogReader::kVmax_ = 3300
protected

Definition at line 32 of file analog_reader.h.

◆ kVref_

const int sensesp::ESP32AnalogReader::kVref_ = 1100
protected

Definition at line 35 of file analog_reader.h.

◆ pin_

int sensesp::ESP32AnalogReader::pin_
protected

Definition at line 27 of file analog_reader.h.


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