This is an experimental driver for the XBee 900 HP pro module's SPI connection. This driver is unfinished and stability is not guaranteed. Use with caution.
Dependents: Sentinel_BASE Sentinel_NODE
Diff: xbee900hp.cpp
- Revision:
- 6:3873db4a0164
- Parent:
- 5:c8bb6b5d7fa0
- Child:
- 7:3cb67634fa4e
diff -r c8bb6b5d7fa0 -r 3873db4a0164 xbee900hp.cpp --- a/xbee900hp.cpp Thu Apr 30 14:02:35 2015 +0000 +++ b/xbee900hp.cpp Thu Apr 30 17:01:46 2015 +0000 @@ -420,4 +420,11 @@ return 0; +} + +void xbee900hp::clearBuff() +{ + while(_pin_attn == 0) { + _xbeespi.write(0x00); + } } \ No newline at end of file