14#define CRC8_POLY_D5 0xD5
37 explicit crsf(Stream *rxPort,
int rxPin = -1,
int txPin = -1,
38 bool inverted =
false);
43 void begin()
override;
57 uint8_t crc8(uint8_t *data, uint8_t len);
Header file for serial input/output (IO) functionality.
Class that stores state and functions for initialising and decoding rc protocol.
Definition SerialIO.h:36
A class for handling CRSF protocol communication.
Definition crsf.h:19
crsf(Stream *rxPort, int rxPin=-1, int txPin=-1, bool inverted=false)
Constructor for the CRSF class.
Definition crsf.cpp:3
void begin() override
Initializes the CRSF communication.
Definition crsf.cpp:6
void processIncoming() override
Processes incoming CRSF data.
Definition crsf.cpp:21
void getChannel(rc_channels_t *channelData) override
Retrieves the decoded RC channels from the received CRSF data.
Definition crsf.cpp:54
Header file for the CRSF protocol implementation.
#define CRSF_MAX_PACKET_SIZE
max declared len is 62+DEST+LEN on top of that = 64
Definition crsf_protocol.h:29
Definition crsf_protocol.h:109