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

Go to the source code of this file.

Functions

int st24_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 Yuneec ST24 transmitter

Author
Lorenz Meier lm@in.nosp@m.f.et.nosp@m.hz.ch

Definition in file st24.h.

Function Documentation

◆ st24_decode()

int st24_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 ST24 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 195 of file st24.cpp.

Referenced by Linux::RCInput::add_st24_input().

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