SerialIO
Loading...
Searching...
No Matches
fport.h
Go to the documentation of this file.
1
7#pragma once
8#ifndef FPORT_H
9#define FPORT_H
10
11#include "../SerialIO.h"
12#include "fport_protocol.h"
13
14class fport : public SerialIO {
15private:
16 uint8_t _rxData[FPORT_MAX_PACKET_SIZE] = {0};
17 fport_channels_t _channelData;
18
19public:
20 explicit fport(Stream *rxPort, int rxPin = -1, int txPin = -1,
21 bool inverted = true);
22 void begin() override;
23 void processIncoming() override;
24 void getChannel(rc_channels_t *channelData) override;
25 void crc();
26};
27#endif
Header file for serial input/output (IO) functionality.
Class that stores state and functions for initialising and decoding rc protocol.
Definition SerialIO.h:36
Definition fport.h:14
void begin() override
Initialises the pins and setup serial port.
Definition fport.cpp:12
void getChannel(rc_channels_t *channelData) override
Get the ChannelData.
Definition fport.cpp:51
void processIncoming() override
decode the incoming serial data.
Definition fport.cpp:27
Header file for the F.Port protocol implementation.
#define FPORT_MAX_PACKET_SIZE
F.Port maximum packet length.
Definition fport_protocol.h:18
Definition fport_protocol.h:27
Definition SerialIO.h:11