ads1115  0.2.0
parameters.hpp File Reference
#include <cstdint>
#include <unordered_map>
Include dependency graph for parameters.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ADS1115
 

Enumerations

enum  ADS1115::ADDR : std::uint8_t { ADS1115::ADDR::GND = 0x48, ADS1115::ADDR::VDD = 0x49, ADS1115::ADDR::SDA = 0x4a, ADS1115::ADDR::SCL = 0x4b }
 This Enum describes the possible i2c bus addresses of a ADS1115. More...
 
enum  ADS1115::OS : std::uint16_t { ADS1115::OS::NON = 0x0000, ADS1115::OS::SINGLE_CONV = 0x8000 }
 
enum  ADS1115::MUX : std::uint16_t {
  ADS1115::MUX::AIN0_AIN1 = 0x0000, ADS1115::MUX::AIN0_AIN3 = 0x1000, ADS1115::MUX::AIN1_AIN3 = 0x2000, ADS1115::MUX::AIN2_AIN3 = 0x3000,
  ADS1115::MUX::AIN0_GND = 0x4000, ADS1115::MUX::AIN1_GND = 0x5000, ADS1115::MUX::AIN2_GND = 0x6000, ADS1115::MUX::AIN3_GND = 0x7000
}
 
enum  ADS1115::PGA : std::uint16_t {
  ADS1115::PGA::FS_6_144 = 0x0000, ADS1115::PGA::FS_4_096 = 0x0200, ADS1115::PGA::FS_2_048 = 0x0400, ADS1115::PGA::FS_1_024 = 0x0600,
  ADS1115::PGA::FS_0_512 = 0x0800, ADS1115::PGA::FS_0_256 = 0x0a00
}
 
enum  ADS1115::MODE : std::uint16_t { ADS1115::MODE::CONT_CONV = 0x0000, ADS1115::MODE::SINGLE_CONV = 0x0100 }
 
enum  ADS1115::DR : std::uint16_t {
  ADS1115::DR::SPS_8 = 0x0000, ADS1115::DR::SPS_16 = 0x0020, ADS1115::DR::SPS_32 = 0x0040, ADS1115::DR::SPS_64 = 0x0060,
  ADS1115::DR::SPS_128 = 0x0080, ADS1115::DR::SPS_250 = 0x00a0, ADS1115::DR::SPS_475 = 0x00c0, ADS1115::DR::SPS_860 = 0x00e0
}
 
enum  ADS1115::COMP_MODE : std::uint16_t { ADS1115::COMP_MODE::TRAD_COMP = 0x0000, ADS1115::COMP_MODE::WINDOW_COMP = 0x0010 }
 
enum  ADS1115::COMP_POL : std::uint16_t { ADS1115::COMP_POL::LOW = 0x0000, ADS1115::COMP_POL::HIGH = 0x0008 }
 
enum  ADS1115::COMP_LAT : std::uint16_t { ADS1115::COMP_LAT::NON_LATCHING = 0x0000, ADS1115::COMP_LAT::LATCHING = 0x0004 }
 
enum  ADS1115::COMP_QUE : std::uint16_t { ADS1115::COMP_QUE::ONE_CONV = 0x0000, ADS1115::COMP_QUE::TWO_CONV = 0x0001, ADS1115::COMP_QUE::FOUR_CONV = 0x0002, ADS1115::COMP_QUE::DISABLE_COMP = 0x0003 }
 

Variables

constexpr std::uint8_t ADS1115::conv_reg_addr = 0x00
 Address of the conversion register. More...
 
constexpr std::uint8_t ADS1115::conf_reg_addr = 0x01
 Address of the config register. More...
 
constexpr std::uint8_t ADS1115::lo_thresh_reg_addr = 0x02
 Address of the low threshold register. More...
 
constexpr std::uint8_t ADS1115::hi_thresh_reg_addr = 0x03
 Address of the high threshold register. More...
 
const static std::unordered_map< PGA, double > ADS1115::pga_voltage_map