10#include "crsf_protocol.h"
12#include "crsf_protocol.h"
14#define CRC8_POLY_D5 0xD5
22 uint8_t _rxData[CRSF_MAX_PACKET_SIZE]={0};
37 explicit crsf(Stream *rxPort,
int rxPin = -1,
int txPin = -1,
38 bool inverted =
false);
43 void begin()
override;
53 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:37
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
decode the incoming serial data.
Definition crsf.cpp:23
void getChannel(rc_channels_t *channelData) override
Retrieves the decoded RC channels from the received CRSF data.
Definition crsf.cpp:50
Definition crsf_protocol.h:105