XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.
Type/IOSamples.cpp
- Committer:
- yangcq88517
- Date:
- 2015-11-14
- Revision:
- 6:5f31ddc17239
- Parent:
- 2:700dc65ca3b1
File content as of revision 6:5f31ddc17239:
#include "IOSamples.h" map<Pin *, unsigned int> * IOSamples::getAnalogs() { return &analog; } unsigned int IOSamples::getAnalog(Pin * pin) { if (analog.count(pin)) return analog[pin]; else return 0xFFFF; } map<Pin *, unsigned char> * IOSamples::getDigitals() { return &digital; } unsigned char IOSamples::getDigital(Pin * pin) { if (digital.count(pin)) return digital[pin]; else return 2; } unsigned int IOSamples::getSupplyVoltage() { return SUPPLY_VOLTAGE; } void IOSamples::setSupplyVoltage(unsigned int voltage) { SUPPLY_VOLTAGE = voltage; } void IOSamples::clear() { analog.clear(); digital.clear(); }