A class for handling SBUS protocol communication.
More...
#include <sbus.h>
|
| sbus (Stream *rxPort, int rxPin=-1, int txPin=-1, bool inverted=true) |
| Constructor for the SBUS class.
|
|
void | begin () override |
| Initializes the SBUS communication.
|
|
void | processIncoming () override |
| Processes incoming SBUS data.
|
|
void | getChannel (rc_channels_t *channelData) override |
| Gets the decoded RC channels from the SBUS data.
|
|
| SerialIO (Stream *rxPort, int rxPin, int txPin, bool inverted) |
| Constructor for the SerialIO class.
|
|
|
void | leftShift (uint8_t arr[], size_t size) |
|
void | rightShift (uint8_t arr[], size_t size) |
|
Stream * | _rxPort |
|
bool | _inverted |
|
int | _rxPin |
|
int | _txPin |
|
A class for handling SBUS protocol communication.
◆ sbus()
sbus::sbus |
( |
Stream * | rxPort, |
|
|
int | rxPin = -1, |
|
|
int | txPin = -1, |
|
|
bool | inverted = true ) |
|
explicit |
Constructor for the SBUS class.
- Parameters
-
rxPort | Reference to the hardware serial port for RX communication. |
rxPin | The RX pin number. |
txPin | The TX pin number. |
inverted | Whether the serial signal is inverted (true) or not (false). |
◆ begin()
Initializes the SBUS communication.
Implements SerialIO.
◆ getChannel()
Gets the decoded RC channels from the SBUS data.
- Parameters
-
channelData | Pointer to a crsf_channels_t struct where the decoded channel data will be stored. |
Implements SerialIO.
◆ processIncoming()
void sbus::processIncoming |
( |
| ) |
|
|
overridevirtual |
Processes incoming SBUS data.
Implements SerialIO.
The documentation for this class was generated from the following files: