A class for handling IBUS protocol communication.
More...
#include <ibus.h>
|
| ibus (Stream *rxPort, int rxPin=-1, int txPin=-1, bool inverted=false) |
| Constructor for the IBUS class.
|
|
void | begin () override |
| Initializes the IBUS communication.
|
|
void | processIncoming () override |
| Processes incoming IBUS data.
|
|
void | getChannel (rc_channels_t *channelData) override |
| Gets the decoded RC channels from the IBUS 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 IBUS protocol communication.
◆ ibus()
ibus::ibus |
( |
Stream * | rxPort, |
|
|
int | rxPin = -1, |
|
|
int | txPin = -1, |
|
|
bool | inverted = false ) |
|
explicit |
Constructor for the IBUS 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 IBUS communication.
Implements SerialIO.
◆ getChannel()
Gets the decoded RC channels from the IBUS data.
- Parameters
-
channelData | Pointer to a crsf_channels_t struct where the decoded channel data will be stored. |
Implements SerialIO.
◆ processIncoming()
void ibus::processIncoming |
( |
| ) |
|
|
overridevirtual |
Processes incoming IBUS data.
Implements SerialIO.
The documentation for this class was generated from the following files:
- src/ibus/ibus.h
- src/ibus/ibus.cpp