|
APM:Libraries
|
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) |
RC protocol definition for Graupner HoTT transmitter
Definition in file sumd.h.
| 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
| 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 137 of file sumd.cpp.
Referenced by F4Light::PPM_parser::_process_dsm_pulse(), Linux::RCInput::add_sumd_input(), and F4Light::DSM_parser::init().
1.8.13