SerialIO
Loading...
Searching...
No Matches
ibus Class Reference

A class for handling IBUS protocol communication. More...

#include <ibus.h>

Inheritance diagram for ibus:
[legend]
Collaboration diagram for ibus:
[legend]

Public Member Functions

 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.
 
- Public Member Functions inherited from SerialIO
 SerialIO (Stream *rxPort, int rxPin, int txPin, bool inverted)
 Constructor for the SerialIO class.
 

Additional Inherited Members

- Protected Member Functions inherited from SerialIO
void leftShift (uint8_t arr[], size_t size)
 
void rightShift (uint8_t arr[], size_t size)
 
- Protected Attributes inherited from SerialIO
Stream * _rxPort
 
bool _inverted
 
int _rxPin
 
int _txPin
 

Detailed Description

A class for handling IBUS protocol communication.

Constructor & Destructor Documentation

◆ ibus()

ibus::ibus ( Stream * rxPort,
int rxPin = -1,
int txPin = -1,
bool inverted = false )
explicit

Constructor for the IBUS class.

Parameters
rxPortReference to the hardware serial port for RX communication.
rxPinThe RX pin number.
txPinThe TX pin number.
invertedWhether the serial signal is inverted (true) or not (false).

Member Function Documentation

◆ begin()

void ibus::begin ( )
overridevirtual

Initializes the IBUS communication.

Implements SerialIO.

◆ getChannel()

void ibus::getChannel ( rc_channels_t * channelData)
overridevirtual

Gets the decoded RC channels from the IBUS data.

Parameters
channelDataPointer 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: