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

#include <AnalogIn.h>

Inheritance diagram for VRBRAIN::VRBRAINAnalogIn:
[legend]
Collaboration diagram for VRBRAIN::VRBRAINAnalogIn:
[legend]

Public Member Functions

 VRBRAINAnalogIn ()
 
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
 
VRBRAIN::VRBRAINAnalogSource_channels [VRBRAIN_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 53 of file AnalogIn.h.

Constructor & Destructor Documentation

◆ VRBRAINAnalogIn()

VRBRAINAnalogIn::VRBRAINAnalogIn ( )

Definition at line 184 of file AnalogIn.cpp.

Member Function Documentation

◆ _timer_tick()

void VRBRAINAnalogIn::_timer_tick ( void  )

Definition at line 239 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ board_voltage()

float VRBRAIN::VRBRAINAnalogIn::board_voltage ( void  )
inlineoverridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 59 of file AnalogIn.h.

◆ channel()

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

Implements AP_HAL::AnalogIn.

Definition at line 290 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ init()

void VRBRAINAnalogIn::init ( void  )
overridevirtual

Implements AP_HAL::AnalogIn.

Definition at line 191 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ next_stop_pin()

void VRBRAINAnalogIn::next_stop_pin ( void  )
private

Definition at line 206 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 VRBRAIN::VRBRAINAnalogIn::power_status_flags ( void  )
inlineoverridevirtual

Reimplemented from AP_HAL::AnalogIn.

Definition at line 61 of file AnalogIn.h.

◆ servorail_voltage()

float VRBRAIN::VRBRAINAnalogIn::servorail_voltage ( void  )
inlineoverridevirtual

Reimplemented from AP_HAL::AnalogIn.

Definition at line 60 of file AnalogIn.h.

Member Data Documentation

◆ _adc_fd

int VRBRAIN::VRBRAINAnalogIn::_adc_fd = -1
private

Definition at line 64 of file AnalogIn.h.

Referenced by _timer_tick(), and init().

◆ _battery_handle

int VRBRAIN::VRBRAINAnalogIn::_battery_handle
private

Definition at line 65 of file AnalogIn.h.

Referenced by init().

◆ _battery_timestamp

uint64_t VRBRAIN::VRBRAINAnalogIn::_battery_timestamp
private

Definition at line 68 of file AnalogIn.h.

◆ _board_voltage

float VRBRAIN::VRBRAINAnalogIn::_board_voltage
private

Definition at line 77 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _channels

VRBRAIN::VRBRAINAnalogSource* VRBRAIN::VRBRAINAnalogIn::_channels[VRBRAIN_ANALOG_MAX_CHANNELS]
private

Definition at line 70 of file AnalogIn.h.

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

◆ _current_stop_pin_i

uint8_t VRBRAIN::VRBRAINAnalogIn::_current_stop_pin_i
private

Definition at line 73 of file AnalogIn.h.

Referenced by _timer_tick(), and next_stop_pin().

◆ _last_run

uint32_t VRBRAIN::VRBRAINAnalogIn::_last_run
private

Definition at line 76 of file AnalogIn.h.

Referenced by _timer_tick().

◆ _power_flags

uint16_t VRBRAIN::VRBRAINAnalogIn::_power_flags
private

Definition at line 79 of file AnalogIn.h.

◆ _servorail_handle

int VRBRAIN::VRBRAINAnalogIn::_servorail_handle
private

Definition at line 66 of file AnalogIn.h.

Referenced by init().

◆ _servorail_timestamp

uint64_t VRBRAIN::VRBRAINAnalogIn::_servorail_timestamp
private

Definition at line 69 of file AnalogIn.h.

◆ _servorail_voltage

float VRBRAIN::VRBRAINAnalogIn::_servorail_voltage
private

Definition at line 78 of file AnalogIn.h.

◆ _stop_pin_change_time

uint32_t VRBRAIN::VRBRAINAnalogIn::_stop_pin_change_time
private

Definition at line 74 of file AnalogIn.h.

Referenced by _timer_tick(), and next_stop_pin().

◆ _system_power_handle

int VRBRAIN::VRBRAINAnalogIn::_system_power_handle
private

Definition at line 67 of file AnalogIn.h.

Referenced by init().


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