RxIoSampleBaseResponse Class Reference

Represents a Series 1 RX I/O Sample packet. More...

#include <XBee.h>

Inheritance diagram for RxIoSampleBaseResponse:

RxResponse RxDataResponse XBeeResponse

List of all members.

Public Member Functions

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.
bool isDigitalOn (uint8_t pin, uint8_t sample)
 Returns true if the specified pin is high/on.
uint8_t getSampleOffset ()


Detailed Description

Represents a Series 1 RX I/O Sample packet.

Member Function Documentation

uint16_t RxIoSampleBaseResponse::getAnalog ( uint8_t  pin,
uint8_t  sample 
)

Returns the 10-bit analog reading of the specified pin.

Valid pins include ADC:0-5. Sample index starts at 0

bool RxIoSampleBaseResponse::isDigitalOn ( uint8_t  pin,
uint8_t  sample 
)

Returns true if the specified pin is high/on.

Valid pins include DIO:0-8. Sample index starts at 0


The documentation for this class was generated from the following files:

Generated on Wed Dec 21 17:21:21 2011 for XBee-Arduino by  doxygen 1.5.8