APM:Libraries
Public Member Functions | List of all members
AP_HAL::AnalogSource Class Referenceabstract

#include <AnalogIn.h>

Inheritance diagram for AP_HAL::AnalogSource:
[legend]

Public Member Functions

virtual float read_average ()=0
 
virtual float read_latest ()=0
 
virtual void set_pin (uint8_t p)=0
 
virtual void set_stop_pin (uint8_t p)=0
 
virtual void set_settle_time (uint16_t settle_time_ms)=0
 
virtual float voltage_average ()=0
 
virtual float voltage_latest ()=0
 
virtual float voltage_average_ratiometric ()=0
 

Detailed Description

Definition at line 7 of file AnalogIn.h.

Member Function Documentation

◆ read_average()

virtual float AP_HAL::AnalogSource::read_average ( )
pure virtual

◆ read_latest()

virtual float AP_HAL::AnalogSource::read_latest ( )
pure virtual

◆ set_pin()

virtual void AP_HAL::AnalogSource::set_pin ( uint8_t  p)
pure virtual

◆ set_settle_time()

virtual void AP_HAL::AnalogSource::set_settle_time ( uint16_t  settle_time_ms)
pure virtual

Implemented in F4Light::AnalogSource, ChibiOS::AnalogSource, AnalogSource_IIO, VRBRAIN::VRBRAINAnalogSource, PX4::PX4AnalogSource, HALSITL::ADCSource, AnalogSource_Navio2, AnalogSource_ADS1115, and Empty::AnalogSource.

Referenced by AP_RangeFinder_analog::AP_RangeFinder_analog(), and AP_RangeFinder_analog::update_voltage().

Here is the caller graph for this function:

◆ set_stop_pin()

virtual void AP_HAL::AnalogSource::set_stop_pin ( uint8_t  p)
pure virtual

Implemented in F4Light::AnalogSource, ChibiOS::AnalogSource, AnalogSource_IIO, VRBRAIN::VRBRAINAnalogSource, PX4::PX4AnalogSource, HALSITL::ADCSource, AnalogSource_Navio2, AnalogSource_ADS1115, and Empty::AnalogSource.

Referenced by AP_RangeFinder_analog::AP_RangeFinder_analog(), and AP_RangeFinder_analog::update_voltage().

Here is the caller graph for this function:

◆ voltage_average()

virtual float AP_HAL::AnalogSource::voltage_average ( )
pure virtual

Implemented in F4Light::AnalogSource, ChibiOS::AnalogSource, AnalogSource_IIO, VRBRAIN::VRBRAINAnalogSource, PX4::PX4AnalogSource, AnalogSource_Navio2, HALSITL::ADCSource, AnalogSource_ADS1115, and Empty::AnalogSource.

Referenced by loop(), AP_LeakDetector_Analog::read(), AP_BattMonitor_Analog::read(), AP_RSSI::read_pin_rssi(), and AP_RangeFinder_analog::update_voltage().

Here is the caller graph for this function:

◆ voltage_average_ratiometric()

virtual float AP_HAL::AnalogSource::voltage_average_ratiometric ( )
pure virtual

Implemented in F4Light::AnalogSource, ChibiOS::AnalogSource, AnalogSource_IIO, VRBRAIN::VRBRAINAnalogSource, PX4::PX4AnalogSource, AnalogSource_Navio2, HALSITL::ADCSource, AnalogSource_ADS1115, and Empty::AnalogSource.

Referenced by AP_Airspeed_Analog::get_differential_pressure(), and AP_RangeFinder_analog::update_voltage().

Here is the caller graph for this function:

◆ voltage_latest()

virtual float AP_HAL::AnalogSource::voltage_latest ( )
pure virtual

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