APM:Libraries
|
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) |
RC protocol definition for Yuneec ST24 transmitter
Definition in file st24.h.
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
byte | current char to read |
rssi | pointer to a byte where the RSSI value is written back to |
rx_count | pointer to a byte where the receive count of packets signce last wireless frame is written back to |
channels | pointer to a datastructure of size max_chan_count where channel values (12 bit) are written back to |
max_chan_count | maximum channels to decode - if more channels are decoded, the last n are skipped and success (0) is returned |
Definition at line 195 of file st24.cpp.
Referenced by Linux::RCInput::add_st24_input().