APM:Libraries
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
AP_RCProtocol_Backend Class Referenceabstract

#include <AP_RCProtocol_Backend.h>

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

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_RCProtocolfrontend
 
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
 

Detailed Description

Definition at line 22 of file AP_RCProtocol_Backend.h.

Constructor & Destructor Documentation

◆ AP_RCProtocol_Backend()

AP_RCProtocol_Backend::AP_RCProtocol_Backend ( AP_RCProtocol _frontend)

Definition at line 21 of file AP_RCProtocol_Backend.cpp.

Member Function Documentation

◆ add_input()

void AP_RCProtocol_Backend::add_input ( uint8_t  num_channels,
uint16_t *  values,
bool  in_failsafe 
)
protected

Definition at line 50 of file AP_RCProtocol_Backend.cpp.

Referenced by AP_RCProtocol_PPMSum::process_pulse(), and update().

Here is the caller graph for this function:

◆ new_input()

bool AP_RCProtocol_Backend::new_input ( void  )

Definition at line 28 of file AP_RCProtocol_Backend.cpp.

◆ num_channels()

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().

Here is the caller graph for this function:

◆ process_pulse()

virtual void AP_RCProtocol_Backend::process_pulse ( uint32_t  width_s0,
uint32_t  width_s1 
)
pure virtual

Implemented in AP_RCProtocol_PPMSum, AP_RCProtocol_DSM, AP_RCProtocol_SBUS, and AP_RCProtocol_SBUS_NI.

Referenced by AP_RCProtocol::process_pulse().

Here is the caller graph for this function:

◆ read()

uint16_t AP_RCProtocol_Backend::read ( uint8_t  chan)

Definition at line 42 of file AP_RCProtocol_Backend.cpp.

Referenced by AP_RCProtocol::read().

Here is the caller graph for this function:

◆ start_bind()

virtual void AP_RCProtocol_Backend::start_bind ( void  )
inlinevirtual

Reimplemented in AP_RCProtocol_DSM.

Definition at line 34 of file AP_RCProtocol_Backend.h.

Referenced by AP_RCProtocol::start_bind().

Here is the caller graph for this function:

◆ update()

virtual void AP_RCProtocol_Backend::update ( void  )
inlinevirtual

Reimplemented in AP_RCProtocol_DSM.

Definition at line 37 of file AP_RCProtocol_Backend.h.

Referenced by AP_RCProtocol::new_input().

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

Friends And Related Function Documentation

◆ AP_RCProtcol

friend class AP_RCProtcol
friend

Definition at line 24 of file AP_RCProtocol_Backend.h.

Member Data Documentation

◆ _num_channels

uint8_t AP_RCProtocol_Backend::_num_channels
private

Definition at line 48 of file AP_RCProtocol_Backend.h.

Referenced by add_input(), and num_channels().

◆ _pwm_values

uint16_t AP_RCProtocol_Backend::_pwm_values[MAX_RCIN_CHANNELS]
private

Definition at line 47 of file AP_RCProtocol_Backend.h.

Referenced by add_input(), and read().

◆ frontend

AP_RCProtocol& AP_RCProtocol_Backend::frontend
private

Definition at line 43 of file AP_RCProtocol_Backend.h.

◆ last_rc_input_count

unsigned int AP_RCProtocol_Backend::last_rc_input_count
private

Definition at line 45 of file AP_RCProtocol_Backend.h.

Referenced by new_input().

◆ rc_input_count

unsigned int AP_RCProtocol_Backend::rc_input_count
private

Definition at line 44 of file AP_RCProtocol_Backend.h.

Referenced by add_input(), and new_input().


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