A small lib for switch xbee from transperant mode to api
XbeeConfig.h
- Committer:
- gert_lauritsen
- Date:
- 2017-01-30
- Revision:
- 0:31b3aca13b85
File content as of revision 0:31b3aca13b85:
/* * XbeeConfig.h * * Created on: 29/01/2017 * Author: gert */ #ifndef XBEECONFIG_XBEECONFIG_H_ #define XBEECONFIG_XBEECONFIG_H_ #include "mbed.h" class XbeeConfig { private: RawSerial _com; DigitalOut rst; int ConfigMode(); int ExitConfigMode(); int SetAPI(); void Reset(); int Wait4OK(); int SetZB(); int ResetSetAPI(); public: XbeeConfig(PinName tx, PinName rx, PinName Rst); virtual ~XbeeConfig(); int Switch2APImode(); int Switch2Transperantmode(); }; #endif /* XBEECONFIG_XBEECONFIG_H_ */