Laurent m
/
APP3
asd
CoordCommands.h@0:3c2ab0fec740, 2016-02-08 (annotated)
- Committer:
- manl2003
- Date:
- Mon Feb 08 16:13:38 2016 +0000
- Revision:
- 0:3c2ab0fec740
asdad
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
manl2003 | 0:3c2ab0fec740 | 1 | #include "mbed.h" |
manl2003 | 0:3c2ab0fec740 | 2 | |
manl2003 | 0:3c2ab0fec740 | 3 | class CoordinatorCommands |
manl2003 | 0:3c2ab0fec740 | 4 | { |
manl2003 | 0:3c2ab0fec740 | 5 | |
manl2003 | 0:3c2ab0fec740 | 6 | public: |
manl2003 | 0:3c2ab0fec740 | 7 | CoordinatorCommands(Serial* _serialXB, Serial* _pc, char* panID, int panIDLength); |
manl2003 | 0:3c2ab0fec740 | 8 | void SendCommand(char lengthMSB, char lengthLSB, char frameType, char frameID, char aTCommandMSB, char aTCommandLSB, char* parameterValue, int paramLength); |
manl2003 | 0:3c2ab0fec740 | 9 | void SetPanID(char* panID, int panIDLength); |
manl2003 | 0:3c2ab0fec740 | 10 | void LectureDeTrame(); |
manl2003 | 0:3c2ab0fec740 | 11 | |
manl2003 | 0:3c2ab0fec740 | 12 | private: |
manl2003 | 0:3c2ab0fec740 | 13 | Serial* m_Xbee; |
manl2003 | 0:3c2ab0fec740 | 14 | Serial* m_PC; |
manl2003 | 0:3c2ab0fec740 | 15 | bool m_InFrame; |
manl2003 | 0:3c2ab0fec740 | 16 | static const char START_DELIMITER = 0x7E; |
manl2003 | 0:3c2ab0fec740 | 17 | }; |