DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
Ads1115Gain Struct Reference

Programmable-gain settings (PGA register codes; full-scale +/- range). Config field values shifted into the config word, so integer constants in a namespacing struct - cast-free. More...

#include <ads1115.h>

Static Public Attributes

static constexpr uint8_t ADS1115_GAIN_TWOTHIRDS = 0
 +/- 6.144 V
 
static constexpr uint8_t ADS1115_GAIN_1 = 1
 +/- 4.096 V
 
static constexpr uint8_t ADS1115_GAIN_2 = 2
 +/- 2.048 V (default)
 
static constexpr uint8_t ADS1115_GAIN_4 = 3
 +/- 1.024 V
 
static constexpr uint8_t ADS1115_GAIN_8 = 4
 +/- 0.512 V
 
static constexpr uint8_t ADS1115_GAIN_16 = 5
 +/- 0.256 V
 

Detailed Description

Programmable-gain settings (PGA register codes; full-scale +/- range). Config field values shifted into the config word, so integer constants in a namespacing struct - cast-free.

Definition at line 36 of file ads1115.h.

Member Data Documentation

◆ ADS1115_GAIN_TWOTHIRDS

constexpr uint8_t Ads1115Gain::ADS1115_GAIN_TWOTHIRDS = 0
staticconstexpr

+/- 6.144 V

Definition at line 38 of file ads1115.h.

◆ ADS1115_GAIN_1

constexpr uint8_t Ads1115Gain::ADS1115_GAIN_1 = 1
staticconstexpr

+/- 4.096 V

Definition at line 39 of file ads1115.h.

◆ ADS1115_GAIN_2

constexpr uint8_t Ads1115Gain::ADS1115_GAIN_2 = 2
staticconstexpr

+/- 2.048 V (default)

Definition at line 40 of file ads1115.h.

◆ ADS1115_GAIN_4

constexpr uint8_t Ads1115Gain::ADS1115_GAIN_4 = 3
staticconstexpr

+/- 1.024 V

Definition at line 41 of file ads1115.h.

◆ ADS1115_GAIN_8

constexpr uint8_t Ads1115Gain::ADS1115_GAIN_8 = 4
staticconstexpr

+/- 0.512 V

Definition at line 42 of file ads1115.h.

◆ ADS1115_GAIN_16

constexpr uint8_t Ads1115Gain::ADS1115_GAIN_16 = 5
staticconstexpr

+/- 0.256 V

Definition at line 43 of file ads1115.h.


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