XBee-Arduino
0.2
|
Public Member Functions | |
XBeeAddress64 & | getRemoteAddress64 () |
uint8_t | getRssiOffset () |
![]() | |
uint8_t | getSampleSize () |
Returns the number of samples in this packet. | |
bool | containsAnalog () |
bool | containsDigital () |
bool | isAnalogEnabled (uint8_t pin) |
Returns true if the specified analog pin is enabled. | |
bool | isDigitalEnabled (uint8_t pin) |
Returns true if the specified digital pin is enabled. | |
uint16_t | getAnalog (uint8_t pin, uint8_t sample) |
Returns the 10-bit analog reading of the specified pin. More... | |
bool | isDigitalOn (uint8_t pin, uint8_t sample) |
Returns true if the specified pin is high/on. More... | |
uint8_t | getSampleOffset () |
![]() | |
uint8_t | getRssi () |
uint8_t | getOption () |
bool | isAddressBroadcast () |
bool | isPanBroadcast () |
uint8_t | getDataLength () |
Returns the length of the payload. | |
uint8_t | getDataOffset () |
Returns the position in the frame data where the data begins. | |
![]() | |
uint8_t | getData (int index) |
Returns the specified index of the payload. More... | |
uint8_t * | getData () |
Returns the payload array. More... | |
![]() | |
XBeeResponse () | |
Default constructor. More... | |
uint8_t | getApiId () |
Returns Api Id of the response. | |
void | setApiId (uint8_t apiId) |
uint8_t | getMsbLength () |
Returns the MSB length of the packet. | |
void | setMsbLength (uint8_t msbLength) |
uint8_t | getLsbLength () |
Returns the LSB length of the packet. | |
void | setLsbLength (uint8_t lsbLength) |
uint8_t | getChecksum () |
Returns the packet checksum. | |
void | setChecksum (uint8_t checksum) |
uint8_t | getFrameDataLength () |
Returns the length of the frame data: all bytes after the api id, and prior to the checksum Note up to release 0.1.2, this was incorrectly including the checksum in the length. | |
void | setFrameData (uint8_t *frameDataPtr) |
uint8_t * | getFrameData () |
Returns the buffer that contains the response. More... | |
void | setFrameLength (uint8_t frameLength) |
uint16_t | getPacketLength () |
Returns the length of the packet. | |
void | reset () |
Resets the response to default values. | |
void | init () |
Initializes the response. | |
void | getZBTxStatusResponse (XBeeResponse &response) |
Call with instance of ZBTxStatusResponse class only if getApiId() == ZB_TX_STATUS_RESPONSE to populate response. | |
void | getZBRxResponse (XBeeResponse &response) |
Call with instance of ZBRxResponse class only if getApiId() == ZB_RX_RESPONSE to populate response. | |
void | getZBRxIoSampleResponse (XBeeResponse &response) |
Call with instance of ZBRxIoSampleResponse class only if getApiId() == ZB_IO_SAMPLE_RESPONSE to populate response. | |
void | getTxStatusResponse (XBeeResponse &response) |
Call with instance of TxStatusResponse only if getApiId() == TX_STATUS_RESPONSE. | |
void | getRx16Response (XBeeResponse &response) |
Call with instance of Rx16Response only if getApiId() == RX_16_RESPONSE. | |
void | getRx64Response (XBeeResponse &response) |
Call with instance of Rx64Response only if getApiId() == RX_64_RESPONSE. | |
void | getRx16IoSampleResponse (XBeeResponse &response) |
Call with instance of Rx16IoSampleResponse only if getApiId() == RX_16_IO_RESPONSE. | |
void | getRx64IoSampleResponse (XBeeResponse &response) |
Call with instance of Rx64IoSampleResponse only if getApiId() == RX_64_IO_RESPONSE. | |
void | getAtCommandResponse (XBeeResponse &responses) |
Call with instance of AtCommandResponse only if getApiId() == AT_COMMAND_RESPONSE. | |
void | getRemoteAtCommandResponse (XBeeResponse &response) |
Call with instance of RemoteAtCommandResponse only if getApiId() == REMOTE_AT_COMMAND_RESPONSE. | |
void | getModemStatusResponse (XBeeResponse &response) |
Call with instance of ModemStatusResponse only if getApiId() == MODEM_STATUS_RESPONSE. | |
bool | isAvailable () |
Returns true if the response has been successfully parsed and is complete and ready for use. | |
void | setAvailable (bool complete) |
bool | isError () |
Returns true if the response contains errors. | |
uint8_t | getErrorCode () |
Returns an error code, or zero, if successful. More... | |
void | setErrorCode (uint8_t errorCode) |
Additional Inherited Members | |
![]() | |
uint8_t * | _frameDataPtr |