APM:Libraries
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes | Static Private Attributes | List of all members
F4Light::AnalogIn Class Reference

#include <AnalogIn.h>

Inheritance diagram for F4Light::AnalogIn:
[legend]
Collaboration diagram for F4Light::AnalogIn:
[legend]

Public Member Functions

 AnalogIn ()
 
void init ()
 
AP_HAL::AnalogSourcechannel (int16_t n)
 
float board_voltage (void)
 
float servorail_voltage (void)
 
uint16_t power_status_flags (void)
 

Protected Member Functions

AnalogSource_create_channel (uint8_t num)
 
void _register_channel (AnalogSource *)
 
void _timer_event (void)
 

Protected Attributes

int16_t _num_channels
 
int16_t _active_channel
 
uint16_t _channel_repeat_count
 

Static Protected Attributes

static AnalogSource_channels [F4Light_INPUT_MAX_CHANNELS]
 

Private Attributes

bool cnv_started
 

Static Private Attributes

static AnalogSource _vcc
 

Detailed Description

Definition at line 104 of file AnalogIn.h.

Constructor & Destructor Documentation

◆ AnalogIn()

AnalogIn::AnalogIn ( )

Definition at line 55 of file AnalogIn.cpp.

Member Function Documentation

◆ _create_channel()

AnalogSource * AnalogIn::_create_channel ( uint8_t  num)
protected

Definition at line 73 of file AnalogIn.cpp.

Referenced by channel().

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

◆ _register_channel()

void AnalogIn::_register_channel ( AnalogSource ch)
protected

Definition at line 86 of file AnalogIn.cpp.

Referenced by _create_channel(), and init().

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

◆ _timer_event()

void AnalogIn::_timer_event ( void  )
protected

Definition at line 98 of file AnalogIn.cpp.

Referenced by init().

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

◆ board_voltage()

float F4Light::AnalogIn::board_voltage ( void  )
inlinevirtual

Implements AP_HAL::AnalogIn.

Definition at line 109 of file AnalogIn.h.

◆ channel()

AP_HAL::AnalogSource * AnalogIn::channel ( int16_t  n)
virtual

Implements AP_HAL::AnalogIn.

Definition at line 152 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ init()

void AnalogIn::init ( void  )
virtual

Implements AP_HAL::AnalogIn.

Definition at line 58 of file AnalogIn.cpp.

Here is the call graph for this function:

◆ power_status_flags()

uint16_t F4Light::AnalogIn::power_status_flags ( void  )
inlinevirtual

Reimplemented from AP_HAL::AnalogIn.

Definition at line 113 of file AnalogIn.h.

◆ servorail_voltage()

float F4Light::AnalogIn::servorail_voltage ( void  )
inlinevirtual

Reimplemented from AP_HAL::AnalogIn.

Definition at line 112 of file AnalogIn.h.

Member Data Documentation

◆ _active_channel

int16_t F4Light::AnalogIn::_active_channel
protected

Definition at line 121 of file AnalogIn.h.

Referenced by _timer_event().

◆ _channel_repeat_count

uint16_t F4Light::AnalogIn::_channel_repeat_count
protected

Definition at line 122 of file AnalogIn.h.

Referenced by _timer_event().

◆ _channels

AnalogSource *IN_CCM AnalogIn::_channels
staticprotected

Definition at line 119 of file AnalogIn.h.

Referenced by _register_channel(), and _timer_event().

◆ _num_channels

int16_t F4Light::AnalogIn::_num_channels
protected

Definition at line 120 of file AnalogIn.h.

Referenced by _register_channel(), and _timer_event().

◆ _vcc

AnalogSource IN_CCM AnalogIn::_vcc
staticprivate

Definition at line 125 of file AnalogIn.h.

Referenced by channel(), and init().

◆ cnv_started

bool F4Light::AnalogIn::cnv_started
private

Definition at line 127 of file AnalogIn.h.

Referenced by _timer_event(), and init().


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