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

#include <AnalogIn.h>

Inheritance diagram for PX4::PX4AnalogIn:
[legend]
Collaboration diagram for PX4::PX4AnalogIn:
[legend]

Public Member Functions

 PX4AnalogIn ()
 
void init () override
 
AP_HAL::AnalogSourcechannel (int16_t pin) override
 
void _timer_tick (void)
 
float board_voltage (void) override
 
float servorail_voltage (void) override
 
uint16_t power_status_flags (void) override
 

Private Member Functions

void next_stop_pin (void)
 

Private Attributes

int _adc_fd = -1
 
int _battery_handle
 
int _servorail_handle
 
int _system_power_handle
 
uint64_t _battery_timestamp
 
uint64_t _servorail_timestamp
 
PX4::PX4AnalogSource_channels [PX4_ANALOG_MAX_CHANNELS]
 
uint8_t _current_stop_pin_i
 
uint32_t _stop_pin_change_time
 
uint32_t _last_run
 
float _board_voltage
 
float _servorail_voltage
 
uint16_t _power_flags
 

Detailed Description

Definition at line 52 of file AnalogIn.h.

Constructor & Destructor Documentation

◆ PX4AnalogIn()

PX4AnalogIn::PX4AnalogIn ( )

Definition at line 195 of file AnalogIn.cpp.

Member Function Documentation

◆ _timer_tick()

void PX4AnalogIn::_timer_tick ( void  )

Definition at line 250 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ board_voltage()

float PX4::PX4AnalogIn::board_voltage ( void  )
inlineoverridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 58 of file AnalogIn.h.

◆ channel()

AP_HAL::AnalogSource * PX4AnalogIn::channel ( int16_t  pin)
overridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 381 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ init()

void PX4AnalogIn::init ( void  )
overridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 202 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ next_stop_pin()

void PX4AnalogIn::next_stop_pin ( void  )
private

Definition at line 217 of file AnalogIn.cpp.

Referenced by _timer_tick().

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

◆ power_status_flags()

uint16_t PX4::PX4AnalogIn::power_status_flags ( void  )
inlineoverridevirtual

Reimplemented from AP_HAL::AnalogIn.

Definition at line 60 of file AnalogIn.h.

◆ servorail_voltage()

float PX4::PX4AnalogIn::servorail_voltage ( void  )
inlineoverridevirtual

Reimplemented from AP_HAL::AnalogIn.

Definition at line 59 of file AnalogIn.h.

Member Data Documentation

◆ _adc_fd

int PX4::PX4AnalogIn::_adc_fd = -1
private

Definition at line 63 of file AnalogIn.h.

Referenced by _timer_tick(), and init().

◆ _battery_handle

int PX4::PX4AnalogIn::_battery_handle
private

Definition at line 64 of file AnalogIn.h.

Referenced by _timer_tick(), and init().

◆ _battery_timestamp

uint64_t PX4::PX4AnalogIn::_battery_timestamp
private

Definition at line 67 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _board_voltage

float PX4::PX4AnalogIn::_board_voltage
private

Definition at line 76 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _channels

PX4::PX4AnalogSource* PX4::PX4AnalogIn::_channels[PX4_ANALOG_MAX_CHANNELS]
private

Definition at line 69 of file AnalogIn.h.

Referenced by _timer_tick(), channel(), and next_stop_pin().

◆ _current_stop_pin_i

uint8_t PX4::PX4AnalogIn::_current_stop_pin_i
private

Definition at line 72 of file AnalogIn.h.

Referenced by _timer_tick(), and next_stop_pin().

◆ _last_run

uint32_t PX4::PX4AnalogIn::_last_run
private

Definition at line 75 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _power_flags

uint16_t PX4::PX4AnalogIn::_power_flags
private

Definition at line 78 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _servorail_handle

int PX4::PX4AnalogIn::_servorail_handle
private

Definition at line 65 of file AnalogIn.h.

Referenced by _timer_tick(), and init().

◆ _servorail_timestamp

uint64_t PX4::PX4AnalogIn::_servorail_timestamp
private

Definition at line 68 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _servorail_voltage

float PX4::PX4AnalogIn::_servorail_voltage
private

Definition at line 77 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _stop_pin_change_time

uint32_t PX4::PX4AnalogIn::_stop_pin_change_time
private

Definition at line 73 of file AnalogIn.h.

Referenced by _timer_tick(), and next_stop_pin().

◆ _system_power_handle

int PX4::PX4AnalogIn::_system_power_handle
private

Definition at line 66 of file AnalogIn.h.

Referenced by _timer_tick(), and init().


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