9#define PACKED __attribute__((packed))
12 unsigned channel1 : 11;
13 unsigned channel2 : 11;
14 unsigned channel3 : 11;
15 unsigned channel4 : 11;
16 unsigned channel5 : 11;
17 unsigned channel6 : 11;
18 unsigned channel7 : 11;
19 unsigned channel8 : 11;
20 unsigned channel9 : 11;
21 unsigned channel10 : 11;
22 unsigned channel11 : 11;
23 unsigned channel12 : 11;
24 unsigned channel13 : 11;
25 unsigned channel14 : 11;
26 unsigned channel15 : 11;
27 unsigned channel16 : 11;
49 SerialIO(Stream *rxPort,
int rxPin,
int txPin,
bool inverted);
79 void leftShift(uint8_t arr[],
size_t size);
80 void rightShift(uint8_t arr[],
size_t size);
Class that stores state and functions for initialising and decoding rc protocol.
Definition SerialIO.h:36
virtual void begin()=0
Initialises the pins and setup serial port.
virtual void processIncoming()=0
decode the incoming serial data.
SerialIO(Stream *rxPort, int rxPin, int txPin, bool inverted)
Constructor for the SerialIO class.
Definition SerialIO.cpp:3
virtual void getChannel(rc_channels_t *channelData)=0
Get the ChannelData.
Header file for the CRSF protocol implementation.
Header file for the FPort Protocol definations.
Header file for the Ibus protocol implementation.
Header file for the SBUS protocol implementation.