APM:Libraries
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AP_Radio_backend Class Referenceabstract

#include <AP_Radio_backend.h>

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

Public Member Functions

 AP_Radio_backend (AP_Radio &radio)
 
virtual ~AP_Radio_backend ()
 
virtual bool init (void)=0
 
virtual bool reset (void)=0
 
virtual bool send (const uint8_t *pkt, uint16_t len)=0
 
virtual void start_recv_bind (void)=0
 
virtual uint32_t last_recv_us (void)=0
 
virtual uint8_t num_channels (void)=0
 
virtual uint16_t read (uint8_t chan)=0
 
virtual void handle_data_packet (mavlink_channel_t chan, const mavlink_data96_t &m)
 
virtual void update (void)=0
 
virtual uint32_t get_tx_version (void)=0
 
virtual const AP_Radio::statsget_stats (void)=0
 
virtual void set_wifi_channel (uint8_t channel)=0
 

Protected Member Functions

AP_Radio::ap_radio_protocol get_protocol (void) const
 
uint8_t get_debug_level (void) const
 
bool get_disable_crc (void) const
 
uint8_t get_rssi_chan (void) const
 
uint8_t get_pps_chan (void) const
 
uint8_t get_tx_rssi_chan (void) const
 
uint8_t get_tx_pps_chan (void) const
 
bool get_telem_enable (void) const
 
uint8_t get_transmit_power (void) const
 
uint8_t get_tx_max_power (void) const
 
void set_tx_max_power_default (uint8_t v)
 
int8_t get_fcc_test (void) const
 
uint8_t get_stick_mode (void) const
 
uint8_t get_factory_test (void) const
 
uint8_t get_tx_buzzer_adjust (void) const
 
uint8_t get_autobind_time (void) const
 
uint8_t get_autobind_rssi (void) const
 

Protected Attributes

AP_Radioradio
 

Detailed Description

Definition at line 24 of file AP_Radio_backend.h.

Constructor & Destructor Documentation

◆ AP_Radio_backend()

AP_Radio_backend::AP_Radio_backend ( AP_Radio radio)

Definition at line 22 of file AP_Radio_backend.cpp.

◆ ~AP_Radio_backend()

AP_Radio_backend::~AP_Radio_backend ( void  )
virtual

Definition at line 27 of file AP_Radio_backend.cpp.

Member Function Documentation

◆ get_autobind_rssi()

uint8_t AP_Radio_backend::get_autobind_rssi ( void  ) const
inlineprotected

Definition at line 132 of file AP_Radio_backend.h.

◆ get_autobind_time()

uint8_t AP_Radio_backend::get_autobind_time ( void  ) const
inlineprotected

Definition at line 128 of file AP_Radio_backend.h.

◆ get_debug_level()

uint8_t AP_Radio_backend::get_debug_level ( void  ) const
inlineprotected

Definition at line 72 of file AP_Radio_backend.h.

◆ get_disable_crc()

bool AP_Radio_backend::get_disable_crc ( void  ) const
inlineprotected

Definition at line 76 of file AP_Radio_backend.h.

◆ get_factory_test()

uint8_t AP_Radio_backend::get_factory_test ( void  ) const
inlineprotected

Definition at line 120 of file AP_Radio_backend.h.

◆ get_fcc_test()

int8_t AP_Radio_backend::get_fcc_test ( void  ) const
inlineprotected

Definition at line 112 of file AP_Radio_backend.h.

◆ get_pps_chan()

uint8_t AP_Radio_backend::get_pps_chan ( void  ) const
inlineprotected

Definition at line 84 of file AP_Radio_backend.h.

◆ get_protocol()

AP_Radio::ap_radio_protocol AP_Radio_backend::get_protocol ( void  ) const
inlineprotected

Definition at line 68 of file AP_Radio_backend.h.

◆ get_rssi_chan()

uint8_t AP_Radio_backend::get_rssi_chan ( void  ) const
inlineprotected

Definition at line 80 of file AP_Radio_backend.h.

◆ get_stats()

virtual const AP_Radio::stats& AP_Radio_backend::get_stats ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

Referenced by handle_data_packet().

Here is the caller graph for this function:

◆ get_stick_mode()

uint8_t AP_Radio_backend::get_stick_mode ( void  ) const
inlineprotected

Definition at line 116 of file AP_Radio_backend.h.

◆ get_telem_enable()

bool AP_Radio_backend::get_telem_enable ( void  ) const
inlineprotected

Definition at line 96 of file AP_Radio_backend.h.

◆ get_transmit_power()

uint8_t AP_Radio_backend::get_transmit_power ( void  ) const
inlineprotected

Definition at line 100 of file AP_Radio_backend.h.

Here is the call graph for this function:

◆ get_tx_buzzer_adjust()

uint8_t AP_Radio_backend::get_tx_buzzer_adjust ( void  ) const
inlineprotected

Definition at line 124 of file AP_Radio_backend.h.

◆ get_tx_max_power()

uint8_t AP_Radio_backend::get_tx_max_power ( void  ) const
inlineprotected

Definition at line 104 of file AP_Radio_backend.h.

Here is the call graph for this function:

◆ get_tx_pps_chan()

uint8_t AP_Radio_backend::get_tx_pps_chan ( void  ) const
inlineprotected

Definition at line 92 of file AP_Radio_backend.h.

◆ get_tx_rssi_chan()

uint8_t AP_Radio_backend::get_tx_rssi_chan ( void  ) const
inlineprotected

Definition at line 88 of file AP_Radio_backend.h.

◆ get_tx_version()

virtual uint32_t AP_Radio_backend::get_tx_version ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

Referenced by handle_data_packet().

Here is the caller graph for this function:

◆ handle_data_packet()

virtual void AP_Radio_backend::handle_data_packet ( mavlink_channel_t  chan,
const mavlink_data96_t &  m 
)
inlinevirtual

Reimplemented in AP_Radio_cypress, and AP_Radio_cc2500.

Definition at line 52 of file AP_Radio_backend.h.

Here is the call graph for this function:

◆ init()

virtual bool AP_Radio_backend::init ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

◆ last_recv_us()

virtual uint32_t AP_Radio_backend::last_recv_us ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

◆ num_channels()

virtual uint8_t AP_Radio_backend::num_channels ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

◆ read()

virtual uint16_t AP_Radio_backend::read ( uint8_t  chan)
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

◆ reset()

virtual bool AP_Radio_backend::reset ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

◆ send()

virtual bool AP_Radio_backend::send ( const uint8_t *  pkt,
uint16_t  len 
)
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

◆ set_tx_max_power_default()

void AP_Radio_backend::set_tx_max_power_default ( uint8_t  v)
inlineprotected

Definition at line 108 of file AP_Radio_backend.h.

◆ set_wifi_channel()

virtual void AP_Radio_backend::set_wifi_channel ( uint8_t  channel)
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

Referenced by handle_data_packet().

Here is the caller graph for this function:

◆ start_recv_bind()

virtual void AP_Radio_backend::start_recv_bind ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

◆ update()

virtual void AP_Radio_backend::update ( void  )
pure virtual

Implemented in AP_Radio_cypress, and AP_Radio_cc2500.

Referenced by handle_data_packet().

Here is the caller graph for this function:

Member Data Documentation

◆ radio

AP_Radio& AP_Radio_backend::radio
protected

Definition at line 136 of file AP_Radio_backend.h.


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