APM:Libraries
Public Member Functions | Private Member Functions | Private Attributes | List of all members
AnalogIn_ADS1115 Class Reference

#include <AnalogIn_ADS1115.h>

Inheritance diagram for AnalogIn_ADS1115:
[legend]
Collaboration diagram for AnalogIn_ADS1115:
[legend]

Public Member Functions

 AnalogIn_ADS1115 ()
 
void init () override
 
AP_HAL::AnalogSourcechannel (int16_t n) override
 
float board_voltage () override
 
- Public Member Functions inherited from AP_HAL::AnalogIn
virtual float servorail_voltage (void)
 
virtual uint16_t power_status_flags (void)
 

Private Member Functions

void _update ()
 

Private Attributes

uint8_t _channels_number
 
AP_ADC_ADS1115_adc
 
AnalogSource_ADS1115_channels [ADS1115_ADC_MAX_CHANNELS]
 
uint32_t _last_update_timestamp
 

Detailed Description

Definition at line 25 of file AnalogIn_ADS1115.h.

Constructor & Destructor Documentation

◆ AnalogIn_ADS1115()

AnalogIn_ADS1115::AnalogIn_ADS1115 ( )

Definition at line 44 of file AnalogIn_ADS1115.cpp.

Member Function Documentation

◆ _update()

void AnalogIn_ADS1115::_update ( void  )
private

Definition at line 72 of file AnalogIn_ADS1115.cpp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ board_voltage()

float AnalogIn_ADS1115::board_voltage ( void  )
inlineoverridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 33 of file AnalogIn_ADS1115.h.

◆ channel()

AP_HAL::AnalogSource * AnalogIn_ADS1115::channel ( int16_t  n)
overridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 50 of file AnalogIn_ADS1115.cpp.

Here is the call graph for this function:

◆ init()

void AnalogIn_ADS1115::init ( void  )
overridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 63 of file AnalogIn_ADS1115.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _adc

AP_ADC_ADS1115* AnalogIn_ADS1115::_adc
private

Definition at line 39 of file AnalogIn_ADS1115.h.

◆ _channels

AnalogSource_ADS1115* AnalogIn_ADS1115::_channels[ADS1115_ADC_MAX_CHANNELS]
private

Definition at line 40 of file AnalogIn_ADS1115.h.

◆ _channels_number

uint8_t AnalogIn_ADS1115::_channels_number
private

Definition at line 36 of file AnalogIn_ADS1115.h.

◆ _last_update_timestamp

uint32_t AnalogIn_ADS1115::_last_update_timestamp
private

Definition at line 41 of file AnalogIn_ADS1115.h.


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