APM:Libraries
|
#include <AP_ADC_ADS1115.h>
Public Member Functions | |
AP_ADC_ADS1115 () | |
~AP_ADC_ADS1115 () | |
bool | init () |
size_t | read (adc_report_s *report, size_t length) const |
uint8_t | get_channels_number () const |
Private Member Functions | |
void | _update () |
bool | _start_conversion (uint8_t channel) |
float | _convert_register_data_to_mv (int16_t word) const |
Private Attributes | |
AP_HAL::OwnPtr< AP_HAL::I2CDevice > | _dev |
uint16_t | _gain |
int | _channel_to_read |
adc_report_s * | _samples |
Static Private Attributes | |
static const uint8_t | _channels_number = ADS1115_CHANNELS_COUNT |
Definition at line 15 of file AP_ADC_ADS1115.h.
AP_ADC_ADS1115::AP_ADC_ADS1115 | ( | ) |
Definition at line 111 of file AP_ADC_ADS1115.cpp.
AP_ADC_ADS1115::~AP_ADC_ADS1115 | ( | ) |
Definition at line 119 of file AP_ADC_ADS1115.cpp.
|
private |
Definition at line 163 of file AP_ADC_ADS1115.cpp.
Referenced by _update().
|
private |
Definition at line 138 of file AP_ADC_ADS1115.cpp.
Referenced by _update().
|
private |
Definition at line 203 of file AP_ADC_ADS1115.cpp.
Referenced by init().
|
inline |
Definition at line 24 of file AP_ADC_ADS1115.h.
bool AP_ADC_ADS1115::init | ( | ) |
size_t AP_ADC_ADS1115::read | ( | adc_report_s * | report, |
size_t | length | ||
) | const |
Definition at line 153 of file AP_ADC_ADS1115.cpp.
|
private |
Definition at line 35 of file AP_ADC_ADS1115.h.
Referenced by _update(), and AP_ADC_ADS1115().
|
staticprivate |
Definition at line 30 of file AP_ADC_ADS1115.h.
Referenced by _update(), and AP_ADC_ADS1115().
|
private |
Definition at line 32 of file AP_ADC_ADS1115.h.
Referenced by _start_conversion(), _update(), and init().
|
private |
Definition at line 34 of file AP_ADC_ADS1115.h.
Referenced by _convert_register_data_to_mv(), _start_conversion(), AP_ADC_ADS1115(), and init().
|
private |
Definition at line 36 of file AP_ADC_ADS1115.h.
Referenced by _update(), AP_ADC_ADS1115(), read(), and ~AP_ADC_ADS1115().