rcProtocol  V.0.3.0
A protocol for diy transmitters/receivers
Classes | Macros
rcGlobal.h File Reference
#include <RF24.h>
#include "rcSettings.h"

Go to the source code of this file.

Classes

class  RCGlobal
 

Macros

#define RC_TIMEOUT   15000
 
#define RC_CONNECT_TIMEOUT   2500
 
#define RC_ERROR_LOST_CONNECTION   -11
 
#define RC_ERROR_TIMEOUT   -12
 
#define RC_ERROR_BAD_DATA   -13
 
#define RC_ERROR_CONNECTION_REFUSED   -14
 
#define RC_ERROR_NOT_CONNECTED   -21
 
#define RC_ERROR_ALREADY_CONNECTED   -22
 

Macro Definition Documentation

◆ RC_TIMEOUT

#define RC_TIMEOUT   15000

Definition at line 11 of file rcGlobal.h.

◆ RC_CONNECT_TIMEOUT

#define RC_CONNECT_TIMEOUT   2500

Definition at line 15 of file rcGlobal.h.

◆ RC_ERROR_LOST_CONNECTION

#define RC_ERROR_LOST_CONNECTION   -11

Communications have been established, but since lost it

Definition at line 23 of file rcGlobal.h.

◆ RC_ERROR_TIMEOUT

#define RC_ERROR_TIMEOUT   -12

No connection has been made

Definition at line 27 of file rcGlobal.h.

◆ RC_ERROR_BAD_DATA

#define RC_ERROR_BAD_DATA   -13

Data that was received does not match expectations

Definition at line 31 of file rcGlobal.h.

◆ RC_ERROR_CONNECTION_REFUSED

#define RC_ERROR_CONNECTION_REFUSED   -14

Receiver was refused to connect

Definition at line 35 of file rcGlobal.h.

◆ RC_ERROR_NOT_CONNECTED

#define RC_ERROR_NOT_CONNECTED   -21

Transmitter is not connected, so the function could not operate properly

Definition at line 39 of file rcGlobal.h.

◆ RC_ERROR_ALREADY_CONNECTED

#define RC_ERROR_ALREADY_CONNECTED   -22

Transmitter is already connected, so the function should not be run.

Definition at line 43 of file rcGlobal.h.