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

#include <RC_parser.h>

Inheritance diagram for F4Light::_parser:
[legend]

Public Member Functions

 _parser ()
 
virtual ~_parser ()
 
virtual void init (uint8_t ch)=0
 
virtual void late_init (uint8_t b)
 
virtual uint64_t get_last_signal () const
 
virtual uint64_t get_last_change () const
 
virtual uint8_t get_valid_channels () const
 
virtual uint16_t get_val (uint8_t ch) const
 
virtual bool bind (int dsmMode) const
 

Protected Attributes

volatile uint64_t _last_signal
 
volatile uint16_t _val [F4Light_RC_INPUT_NUM_CHANNELS]
 
uint64_t _last_change
 
volatile uint8_t _channels
 

Detailed Description

Definition at line 5 of file RC_parser.h.

Constructor & Destructor Documentation

◆ _parser()

F4Light::_parser::_parser ( )
inline

Definition at line 7 of file RC_parser.h.

◆ ~_parser()

virtual F4Light::_parser::~_parser ( )
inlinevirtual

Definition at line 8 of file RC_parser.h.

Here is the call graph for this function:

Member Function Documentation

◆ bind()

virtual bool F4Light::_parser::bind ( int  dsmMode) const
inlinevirtual

Reimplemented in F4Light::DSM_parser.

Definition at line 18 of file RC_parser.h.

Referenced by F4Light::RCInput::rc_bind().

Here is the caller graph for this function:

◆ get_last_change()

virtual uint64_t F4Light::_parser::get_last_change ( ) const
inlinevirtual

Definition at line 14 of file RC_parser.h.

Referenced by F4Light::RCInput::read().

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

◆ get_last_signal()

virtual uint64_t F4Light::_parser::get_last_signal ( ) const
inlinevirtual

Definition at line 13 of file RC_parser.h.

Referenced by F4Light::RCInput::new_input(), and F4Light::RCInput::read().

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

◆ get_val()

virtual uint16_t F4Light::_parser::get_val ( uint8_t  ch) const
inlinevirtual

Definition at line 16 of file RC_parser.h.

Referenced by F4Light::RCInput::_read_ppm(), and F4Light::RCInput::read().

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

◆ get_valid_channels()

virtual uint8_t F4Light::_parser::get_valid_channels ( ) const
inlinevirtual

Definition at line 15 of file RC_parser.h.

Referenced by F4Light::RCInput::_read_ppm(), and F4Light::RCInput::read().

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

◆ init()

virtual void F4Light::_parser::init ( uint8_t  ch)
pure virtual

Implemented in F4Light::PPM_parser, F4Light::DSM_parser, and F4Light::SBUS_parser.

Referenced by F4Light::RCInput::init(), and ~_parser().

Here is the caller graph for this function:

◆ late_init()

virtual void F4Light::_parser::late_init ( uint8_t  b)
inlinevirtual

Reimplemented in F4Light::SBUS_parser.

Definition at line 11 of file RC_parser.h.

Referenced by F4Light::RCInput::late_init().

Here is the caller graph for this function:

Member Data Documentation

◆ _channels

volatile uint8_t F4Light::_parser::_channels
protected

◆ _last_change

uint64_t F4Light::_parser::_last_change
protected

◆ _last_signal

volatile uint64_t F4Light::_parser::_last_signal
protected

◆ _val

volatile uint16_t F4Light::_parser::_val[F4Light_RC_INPUT_NUM_CHANNELS]
protected

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