6 #ifndef __RCDEVICEPROTOCOL_H__ 7 #define __RCDEVICEPROTOCOL_H__ 15 #error "rcDeviceProtocol Requires the tmrh20 RF24 Library: https://github.com/nRF24/RF24" 152 int8_t
update(uint16_t channels[], uint8_t telemetry[],
163 const uint8_t* _deviceId;
164 uint8_t _remoteId[5];
181 int8_t check_packet(
void* returnData, uint8_t dataSize,
void* telemetry,
182 uint8_t telemetrySize);
183 int8_t check_packet(
void* returnData, uint8_t dataSize);
DeviceProtocol(RF24 *tranceiver, const uint8_t deviceId[])
int8_t connect(loadRemoteID loadRemoteID, setConnected setConnected)
int8_t pair(saveRemoteID saveRemoteID)
void() setConnected(bool connected)
void() loadRemoteID(uint8_t *id)
RCSettings * getSettings()
int8_t update(uint16_t channels[], uint8_t telemetry[], setConnected setConnected)
void() saveRemoteID(const uint8_t *id)
int8_t begin(RCSettings *settings, checkConnected checkConnected, loadRemoteID loadRemoteID)