APM:Libraries
|
#include <AP_RCProtocol_Backend.h>
Public Member Functions | |
AP_RCProtocol_Backend (AP_RCProtocol &_frontend) | |
virtual void | process_pulse (uint32_t width_s0, uint32_t width_s1)=0 |
uint16_t | read (uint8_t chan) |
bool | new_input () |
uint8_t | num_channels () |
virtual void | start_bind (void) |
virtual void | update (void) |
Protected Member Functions | |
void | add_input (uint8_t num_channels, uint16_t *values, bool in_failsafe) |
Private Attributes | |
AP_RCProtocol & | frontend |
unsigned int | rc_input_count |
unsigned int | last_rc_input_count |
uint16_t | _pwm_values [MAX_RCIN_CHANNELS] |
uint8_t | _num_channels |
Friends | |
class | AP_RCProtcol |
Definition at line 22 of file AP_RCProtocol_Backend.h.
AP_RCProtocol_Backend::AP_RCProtocol_Backend | ( | AP_RCProtocol & | _frontend | ) |
Definition at line 21 of file AP_RCProtocol_Backend.cpp.
|
protected |
Definition at line 50 of file AP_RCProtocol_Backend.cpp.
Referenced by AP_RCProtocol_PPMSum::process_pulse(), and update().
bool AP_RCProtocol_Backend::new_input | ( | void | ) |
Definition at line 28 of file AP_RCProtocol_Backend.cpp.
uint8_t AP_RCProtocol_Backend::num_channels | ( | void | ) |
Definition at line 37 of file AP_RCProtocol_Backend.cpp.
Referenced by AP_RCProtocol::num_channels(), and update().
|
pure virtual |
Implemented in AP_RCProtocol_PPMSum, AP_RCProtocol_DSM, AP_RCProtocol_SBUS, and AP_RCProtocol_SBUS_NI.
Referenced by AP_RCProtocol::process_pulse().
uint16_t AP_RCProtocol_Backend::read | ( | uint8_t | chan | ) |
Definition at line 42 of file AP_RCProtocol_Backend.cpp.
Referenced by AP_RCProtocol::read().
|
inlinevirtual |
Reimplemented in AP_RCProtocol_DSM.
Definition at line 34 of file AP_RCProtocol_Backend.h.
Referenced by AP_RCProtocol::start_bind().
|
inlinevirtual |
Reimplemented in AP_RCProtocol_DSM.
Definition at line 37 of file AP_RCProtocol_Backend.h.
Referenced by AP_RCProtocol::new_input().
|
friend |
Definition at line 24 of file AP_RCProtocol_Backend.h.
|
private |
Definition at line 48 of file AP_RCProtocol_Backend.h.
Referenced by add_input(), and num_channels().
|
private |
Definition at line 47 of file AP_RCProtocol_Backend.h.
Referenced by add_input(), and read().
|
private |
Definition at line 43 of file AP_RCProtocol_Backend.h.
|
private |
Definition at line 45 of file AP_RCProtocol_Backend.h.
Referenced by new_input().
|
private |
Definition at line 44 of file AP_RCProtocol_Backend.h.
Referenced by add_input(), and new_input().