6 #ifndef __RCREMOTEPROTOCOL_H__ 7 #define __RCREMOTEPROTOCOL_H__ 15 #error "rcRemoteProtocol Requires the tmrh20 RF24 Library: https://github.com/nRF24/RF24" 29 #define RC_ERROR_PACKET_NOT_SENT -22 33 #define RC_INFO_TICK_TOO_SHORT 21 50 typedef void (
saveSettings)(
const uint8_t* id,
const uint8_t* settings);
181 int8_t
update(uint16_t channels[], uint8_t telemetry[] = NULL);
204 const uint8_t* _remoteId;
205 uint8_t _deviceId[5];
210 uint16_t _timerDelay;
227 int8_t send_packet(
void* data, uint8_t dataSize,
void* telemetry = NULL,
228 uint8_t telemetrySize = 0);
int8_t update(uint16_t channels[], uint8_t telemetry[]=NULL)
RemoteProtocol(RF24 *tranceiver, const uint8_t remoteId[])
int8_t disconnect(setLastConnection setLastConnection)
void() getLastConnection(uint8_t *id)
void() saveSettings(const uint8_t *id, const uint8_t *settings)
void() setLastConnection(const uint8_t *id)
int8_t pair(saveSettings saveSettings)
int8_t begin(getLastConnection getLastConnection, checkIfValid checkIfValid)
bool() checkIfValid(const uint8_t *id, uint8_t *settings)
RCSettings * getSettings()
int8_t connect(checkIfValid checkIfValid, setLastConnection setLastConnection)