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

#include <AnalogIn_ADS1115.h>

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

Public Member Functions

 AnalogSource_ADS1115 (int16_t pin)
 
float read_average ()
 
float read_latest ()
 
void set_pin (uint8_t p)
 
void set_stop_pin (uint8_t p)
 
void set_settle_time (uint16_t settle_time_ms)
 
float voltage_average ()
 
float voltage_latest ()
 
float voltage_average_ratiometric ()
 

Private Attributes

int16_t _pin
 
float _value
 

Friends

class AnalogIn_ADS1115
 

Detailed Description

Definition at line 8 of file AnalogIn_ADS1115.h.

Constructor & Destructor Documentation

◆ AnalogSource_ADS1115()

AnalogSource_ADS1115::AnalogSource_ADS1115 ( int16_t  pin)

Definition at line 3 of file AnalogIn_ADS1115.cpp.

Referenced by AnalogIn_ADS1115::channel().

Here is the caller graph for this function:

Member Function Documentation

◆ read_average()

float AnalogSource_ADS1115::read_average ( )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 17 of file AnalogIn_ADS1115.cpp.

Here is the call graph for this function:

◆ read_latest()

float AnalogSource_ADS1115::read_latest ( )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 22 of file AnalogIn_ADS1115.cpp.

Referenced by read_average().

Here is the caller graph for this function:

◆ set_pin()

void AnalogSource_ADS1115::set_pin ( uint8_t  p)
virtual

Implements AP_HAL::AnalogSource.

Definition at line 9 of file AnalogIn_ADS1115.cpp.

◆ set_settle_time()

void AnalogSource_ADS1115::set_settle_time ( uint16_t  settle_time_ms)
inlinevirtual

Implements AP_HAL::AnalogSource.

Definition at line 16 of file AnalogIn_ADS1115.h.

Here is the call graph for this function:

◆ set_stop_pin()

void AnalogSource_ADS1115::set_stop_pin ( uint8_t  p)
inlinevirtual

Implements AP_HAL::AnalogSource.

Definition at line 15 of file AnalogIn_ADS1115.h.

◆ voltage_average()

float AnalogSource_ADS1115::voltage_average ( void  )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 27 of file AnalogIn_ADS1115.cpp.

Referenced by set_settle_time().

Here is the caller graph for this function:

◆ voltage_average_ratiometric()

float AnalogSource_ADS1115::voltage_average_ratiometric ( void  )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 37 of file AnalogIn_ADS1115.cpp.

Referenced by set_settle_time().

Here is the caller graph for this function:

◆ voltage_latest()

float AnalogSource_ADS1115::voltage_latest ( void  )
virtual

Implements AP_HAL::AnalogSource.

Definition at line 32 of file AnalogIn_ADS1115.cpp.

Referenced by set_settle_time().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ AnalogIn_ADS1115

friend class AnalogIn_ADS1115
friend

Definition at line 10 of file AnalogIn_ADS1115.h.

Member Data Documentation

◆ _pin

int16_t AnalogSource_ADS1115::_pin
private

Definition at line 21 of file AnalogIn_ADS1115.h.

Referenced by AnalogIn_ADS1115::_update(), and set_pin().

◆ _value

float AnalogSource_ADS1115::_value
private

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