APM:Libraries
Functions
sumd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int sumd_decode (uint8_t byte, uint8_t *rssi, uint8_t *rx_count, uint16_t *channel_count, uint16_t *channels, uint16_t max_chan_count)
 

Detailed Description

RC protocol definition for Graupner HoTT transmitter

Author
Marco Bauer marco.nosp@m.@wtn.nosp@m.s.de

Definition in file sumd.h.

Function Documentation

◆ sumd_decode()

int sumd_decode ( uint8_t  byte,
uint8_t *  rssi,
uint8_t *  rx_count,
uint16_t *  channel_count,
uint16_t *  channels,
uint16_t  max_chan_count 
)

Decoder for SUMD/SUMH protocol

Parameters
bytecurrent char to read
rssipointer to a byte where the RSSI value is written back to
rx_countpointer to a byte where the receive count of packets signce last wireless frame is written back to
channelspointer to a datastructure of size max_chan_count where channel values (12 bit) are written back to
max_chan_countmaximum channels to decode - if more channels are decoded, the last n are skipped and success (0) is returned
Returns
0 for success (a decoded packet), 1 for no packet yet (accumulating), 2 for unknown packet, 3 for out of sync, 4 for checksum error

Definition at line 137 of file sumd.cpp.

Referenced by F4Light::PPM_parser::_process_dsm_pulse(), Linux::RCInput::add_sumd_input(), and F4Light::DSM_parser::init().

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