325 #include "WProgram.h"
408 void handleRequest(uint8_t *msg, uint16_t len, uint16_t rssi);
438 uint8_t _numAnalogOutputs;
441 uint8_t _batteryVoltageAnalogPin;
444 unsigned int _replyInterval;
447 unsigned int _failInterval;
450 unsigned long _lastRequestTime;
453 unsigned long _lastReplyTime;
void run()
Definition: RCRx.cpp:62
RCRx()
Definition: RCRx.cpp:18
uint8_t version
Definition: RCOIP.h:215
virtual void input(int value)
This is where incoming values are set.
Definition: Setter.cpp:26
void failsafe()
Definition: RCRx.cpp:111
#define RC_VERSION1
Definition: RCOIP.h:155
void setOutputs(Setter **analogOutputs, uint8_t numAnalogOutputs)
Definition: RCRx.cpp:42
uint8_t version
Definition: RCOIP.h:192
#define RCOIP_DEFAULT_REPLY_INTERVAL
Definition: RCOIP.h:164
void sendReply()
Definition: RCRx.cpp:70
virtual void failsafe()
Definition: Setter.cpp:33
void handleRequest(uint8_t *msg, uint16_t len, uint16_t rssi)
Definition: RCRx.cpp:84
virtual void setAnalogOutput(uint8_t channel, int value)
Definition: RCRx.cpp:49
SetAnalogChannels command message structure.
Definition: RCOIP.h:188
ReceiverStatus reply message structure.
Definition: RCOIP.h:211
#define RCOIP_DEFAULT_FAIL_INTERVAL
Definition: RCOIP.h:169
uint8_t channels[0]
Definition: RCOIP.h:200
virtual void setDelegate(RCRx *delegate)
Definition: Transceiver.cpp:12
void periodicTask()
Definition: RCRx.cpp:122
Abstract base class for a transceiver device that will send and receive messages on behalf of RCRx cl...
Definition: Transceiver.h:25
Remote Control Receiver module for RCOIP protocol on Arduino.
Definition: RCRx.h:361
#define RC_VERSION
Definition: RCOIP.h:159
boolean connected()
Definition: RCRx.cpp:104
uint8_t batteryVoltage
Definition: RCOIP.h:223
virtual void sendReply(uint8_t *msg, uint16_t len)
void setTransceiver(Transceiver *transceiver)
Definition: RCRx.cpp:35
Virtual base class for classes that receive a value, maybe transform it and then do something with it...
Definition: Setter.h:25
uint8_t RSSI
Definition: RCOIP.h:219
void init()
Definition: RCRx.cpp:56