#include <rcGlobal.h>
Contains functions and variables used by both DeviceProtocal and RemoteProtocol.
Everything in RCGlobal is protected, so only DeviceProtocol and RemoteProtocol have access to these members.
You can also find Global constants in rcGlobal.h
Definition at line 54 of file rcGlobal.h.
◆ RCGlobal()
◆ force_send()
| int8_t RCGlobal::force_send |
( |
void * |
buf, |
|
|
uint8_t |
size, |
|
|
unsigned long |
timeout |
|
) |
| |
|
protected |
repeatidly send a packet of buf until the packet has been received.
- Parameters
-
| buf | data to send |
| size | size of data in bytes |
| timeout | how long before giving up. (millis) |
- Returns
- 0 if successful
-
-1 if not
Definition at line 15 of file rcGlobal.cpp.
◆ wait_till_available()
| int8_t RCGlobal::wait_till_available |
( |
unsigned long |
timeout | ) |
|
|
protected |
Wait until a packet has been received
- Parameters
-
| timeout | how long before giving up (millis) |
Definition at line 28 of file rcGlobal.cpp.
◆ apply_settings()
| void RCGlobal::apply_settings |
( |
RCSettings * |
settings | ) |
|
|
protected |
apply the given settings to the radio
- Parameters
-
Definition at line 40 of file rcGlobal.cpp.
◆ flush_buffer()
| void RCGlobal::flush_buffer |
( |
| ) |
|
|
protected |
Flush the radio's input buffer
Definition at line 65 of file rcGlobal.cpp.
◆ _PAIR_ADDRESS
| const uint8_t RCGlobal::_PAIR_ADDRESS[5] = {'P', 'a', 'i', 'r', '0'} |
|
protected |
◆ _DISCONNECT
| const uint8_t RCGlobal::_DISCONNECT[5] = {255, 255, 255, 255, 255} |
|
protected |
◆ _ACK
| const uint8_t RCGlobal::_ACK = 0x06 |
|
protected |
◆ _NACK
| const uint8_t RCGlobal::_NACK = 0x15 |
|
protected |
◆ _TEST
| const uint8_t RCGlobal::_TEST = 0x02 |
|
protected |
◆ _PACKET_CHANNELS
| const uint8_t RCGlobal::_PACKET_CHANNELS = 0xA0 |
|
protected |
◆ _PACKET_UPDATE_TRANS_SETTINGS
| const uint8_t RCGlobal::_PACKET_UPDATE_TRANS_SETTINGS = 0xB1 |
|
protected |
◆ _PACKET_UPDATE_RECVR_SETTINGS
| const uint8_t RCGlobal::_PACKET_UPDATE_RECVR_SETTINGS = 0xB2 |
|
protected |
◆ _PACKET_DISCONNECT
| const uint8_t RCGlobal::_PACKET_DISCONNECT = 0xC0 |
|
protected |
◆ _PACKET_RECONNECT
| const uint8_t RCGlobal::_PACKET_RECONNECT = 0xCA |
|
protected |
◆ _settings
◆ _pairSettings
◆ _radio
The documentation for this class was generated from the following files: