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.
Fork of Repo_Noeud_Mobile by
Communication/Xbee.h@20:96280625532c, 2015-03-22 (annotated)
- Committer:
- llarose
- Date:
- Sun Mar 22 17:25:00 2015 +0000
- Revision:
- 20:96280625532c
- Parent:
- 9:b8503f5ad3bd
- Child:
- 21:98232c148ed6
to merge...
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pete1801 | 9:b8503f5ad3bd | 1 | #include "mbed.h" |
pete1801 | 9:b8503f5ad3bd | 2 | #include "rtos.h" |
llarose | 20:96280625532c | 3 | #include "Structure.h" |
pete1801 | 9:b8503f5ad3bd | 4 | |
pete1801 | 9:b8503f5ad3bd | 5 | class Xbee |
pete1801 | 9:b8503f5ad3bd | 6 | { |
pete1801 | 9:b8503f5ad3bd | 7 | public : |
pete1801 | 9:b8503f5ad3bd | 8 | Xbee(); |
pete1801 | 9:b8503f5ad3bd | 9 | Xbee(short panId, PinName pinTx, PinName pinRx); |
pete1801 | 9:b8503f5ad3bd | 10 | ~Xbee(); |
pete1801 | 9:b8503f5ad3bd | 11 | Mail<message,32> Mailbox; |
pete1801 | 9:b8503f5ad3bd | 12 | void Envoyer(char array[], int size); |
pete1801 | 9:b8503f5ad3bd | 13 | void Recevoir(); |
pete1801 | 9:b8503f5ad3bd | 14 | private: |
pete1801 | 9:b8503f5ad3bd | 15 | Serial* XbeePin; |
pete1801 | 9:b8503f5ad3bd | 16 | short PanId; |
pete1801 | 9:b8503f5ad3bd | 17 | void SetPanId(short panId); |
pete1801 | 9:b8503f5ad3bd | 18 | }; |