Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Coordinator_node Router_node
xbee.h@20:e119856dbc5e, 2017-02-15 (annotated)
- Committer:
- EmileArseneault
- Date:
- Wed Feb 15 05:55:34 2017 +0000
- Revision:
- 20:e119856dbc5e
- Parent:
- 19:8da8068315da
Essaie de wait for response et cleanage
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ShaolinPoutine | 2:0000443a78fe | 1 | #include "mbed.h" |
| ShaolinPoutine | 2:0000443a78fe | 2 | #include "rtos.h" |
| ShaolinPoutine | 2:0000443a78fe | 3 | #define FRAMEDELIMITER 0x7E |
| ShaolinPoutine | 2:0000443a78fe | 4 | |
| EmileArseneault | 18:39c72589645f | 5 | char GetTransmissionNumber(); |
| ShaolinPoutine | 2:0000443a78fe | 6 | |
| EmileArseneault | 20:e119856dbc5e | 7 | |
| ShaolinPoutine | 2:0000443a78fe | 8 | class XBee { |
| ShaolinPoutine | 2:0000443a78fe | 9 | public: |
| ShaolinPoutine | 2:0000443a78fe | 10 | DigitalOut rst; // Pin corresponding to the reset pin |
| ShaolinPoutine | 2:0000443a78fe | 11 | Serial comm; // UART communication |
| ShaolinPoutine | 2:0000443a78fe | 12 | Mail<char, 250>* mail; |
| ShaolinPoutine | 15:04e892ae9361 | 13 | Mail<char[256], 16>* webmail; |
| EmileArseneault | 20:e119856dbc5e | 14 | Mail<char[254], 25>* frameresponsemail; |
| EmileArseneault | 20:e119856dbc5e | 15 | |
| ShaolinPoutine | 15:04e892ae9361 | 16 | char buffer[256]; |
| ShaolinPoutine | 15:04e892ae9361 | 17 | |
| EmileArseneault | 20:e119856dbc5e | 18 | XBee(PinName reset, PinName transfer, PinName receive, Mail<char, 250>* m, Mail<char[256], 16>* w, Mail<char[254], 25>* r); |
| EmileArseneault | 20:e119856dbc5e | 19 | char SendATCommand(char firstChar, char secondChar, char *optionalParam = NULL, int paramLen = 0); |
| EmileArseneault | 9:902d0f74333c | 20 | void ZigBeeTransmit(int adresse16, int adresse64msb, int adresse64lsb, char *data, int dataLength); |
| EmileArseneault | 9:902d0f74333c | 21 | void BroadcastHelloWorld(); |
| EmileArseneault | 18:39c72589645f | 22 | void InterpretMessage(); |
| ShaolinPoutine | 15:04e892ae9361 | 23 | void appendBuffer(char* c); |
| ShaolinPoutine | 15:04e892ae9361 | 24 | void sendBuffer(); |
| ShaolinPoutine | 2:0000443a78fe | 25 | |
| ShaolinPoutine | 2:0000443a78fe | 26 | private: |
| ShaolinPoutine | 2:0000443a78fe | 27 | void ATCommandResponse(int len); |
| ShaolinPoutine | 3:4c1dec78117b | 28 | void ZigBeeTransmitStatus(int len); |
| ShaolinPoutine | 3:4c1dec78117b | 29 | void ZigBeeReceivePacket(int len); |
| ShaolinPoutine | 2:0000443a78fe | 30 | void ModemStatus(int len); |
| ShaolinPoutine | 2:0000443a78fe | 31 | void printHexa(char c); |
| EmileArseneault | 5:9b4d93bd6725 | 32 | void printInt(int i); |
| EmileArseneault | 5:9b4d93bd6725 | 33 | void pcPrint(char* c); |
| EmileArseneault | 9:902d0f74333c | 34 | char getChar(); |
| ShaolinPoutine | 2:0000443a78fe | 35 | }; |