|
APM:Libraries
|
#include <AP_Radio.h>
Classes | |
| struct | stats |
Public Types | |
| enum | ap_radio_type { RADIO_TYPE_NONE =0, RADIO_TYPE_CYRF6936 =1, RADIO_TYPE_CC2500 =2 } |
| enum | ap_radio_protocol { PROTOCOL_AUTO =0, PROTOCOL_DSM2 =1, PROTOCOL_DSMX =2, PROTOCOL_D16 =3 } |
Public Member Functions | |
| AP_Radio (void) | |
| bool | init (void) |
| bool | reset (void) |
| bool | send (const uint8_t *pkt, uint16_t len) |
| void | start_recv_bind (void) |
| uint32_t | last_recv_us (void) |
| uint8_t | num_channels (void) |
| uint16_t | read (uint8_t chan) |
| void | update (void) |
| uint32_t | get_tx_version (void) |
| const struct stats & | get_stats (void) |
| void | handle_data_packet (mavlink_channel_t chan, const mavlink_data96_t &m) |
| void | set_wifi_channel (uint8_t channel) |
Static Public Member Functions | |
| static AP_Radio * | instance (void) |
Static Public Attributes | |
| static const struct AP_Param::GroupInfo | var_info [] |
Private Attributes | |
| AP_Radio_backend * | driver |
| AP_Int8 | radio_type |
| AP_Int8 | protocol |
| AP_Int8 | debug_level |
| AP_Int8 | disable_crc |
| AP_Int8 | rssi_chan |
| AP_Int8 | pps_chan |
| AP_Int8 | tx_rssi_chan |
| AP_Int8 | tx_pps_chan |
| AP_Int8 | telem_enable |
| AP_Int8 | transmit_power |
| AP_Int8 | tx_max_power |
| AP_Int8 | fcc_test |
| AP_Int8 | stick_mode |
| AP_Int8 | factory_test |
| AP_Int8 | tx_buzzer_adjust |
| AP_Int8 | auto_bind_time |
| AP_Int8 | auto_bind_rssi |
Static Private Attributes | |
| static AP_Radio * | _instance |
Friends | |
| class | AP_Radio_backend |
Definition at line 27 of file AP_Radio.h.
| Enumerator | |
|---|---|
| PROTOCOL_AUTO | |
| PROTOCOL_DSM2 | |
| PROTOCOL_DSMX | |
| PROTOCOL_D16 | |
Definition at line 76 of file AP_Radio.h.
| Enumerator | |
|---|---|
| RADIO_TYPE_NONE | |
| RADIO_TYPE_CYRF6936 | |
| RADIO_TYPE_CC2500 | |
Definition at line 70 of file AP_Radio.h.
| AP_Radio::AP_Radio | ( | void | ) |
| const struct stats& AP_Radio::get_stats | ( | void | ) |
| uint32_t AP_Radio::get_tx_version | ( | void | ) |
| void AP_Radio::handle_data_packet | ( | mavlink_channel_t | chan, |
| const mavlink_data96_t & | m | ||
| ) |
Referenced by GCS_MAVLINK::handle_data_packet(), and instance().
| bool AP_Radio::init | ( | void | ) |
|
inlinestatic |
Definition at line 89 of file AP_Radio.h.
Referenced by GCS_MAVLINK::handle_data_packet(), PX4::PX4RCInput::init(), and ChibiOS::RCInput::new_input().
| uint32_t AP_Radio::last_recv_us | ( | void | ) |
| uint8_t AP_Radio::num_channels | ( | void | ) |
| uint16_t AP_Radio::read | ( | uint8_t | chan | ) |
| bool AP_Radio::reset | ( | void | ) |
| bool AP_Radio::send | ( | const uint8_t * | pkt, |
| uint16_t | len | ||
| ) |
| void AP_Radio::set_wifi_channel | ( | uint8_t | channel | ) |
| void AP_Radio::start_recv_bind | ( | void | ) |
| void AP_Radio::update | ( | void | ) |
|
friend |
Definition at line 30 of file AP_Radio.h.
|
staticprivate |
Definition at line 120 of file AP_Radio.h.
Referenced by instance().
|
private |
Definition at line 118 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_autobind_rssi().
|
private |
Definition at line 117 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_autobind_time().
|
private |
Definition at line 104 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_debug_level().
|
private |
Definition at line 105 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_disable_crc().
|
private |
Definition at line 100 of file AP_Radio.h.
|
private |
Definition at line 115 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_factory_test().
|
private |
Definition at line 113 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_fcc_test().
|
private |
Definition at line 107 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_pps_chan().
|
private |
Definition at line 103 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_protocol().
|
private |
Definition at line 102 of file AP_Radio.h.
|
private |
Definition at line 106 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_rssi_chan().
|
private |
Definition at line 114 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_stick_mode().
|
private |
Definition at line 110 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_telem_enable().
|
private |
Definition at line 111 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_transmit_power().
|
private |
Definition at line 116 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_tx_buzzer_adjust().
|
private |
Definition at line 112 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_tx_max_power(), and AP_Radio_backend::set_tx_max_power_default().
|
private |
Definition at line 109 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_tx_pps_chan().
|
private |
Definition at line 108 of file AP_Radio.h.
Referenced by AP_Radio_backend::get_tx_rssi_chan().
|
static |
Definition at line 86 of file AP_Radio.h.
1.8.13