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@44:0862bc49ffa7, 2015-04-08 (annotated)
- Committer:
- Thierry19
- Date:
- Wed Apr 08 19:38:12 2015 +0000
- Revision:
- 44:0862bc49ffa7
- Parent:
- 39:558cd5780490
- Child:
- 50:48e8da5fc1ae
Ajout de reception de communication dans Communication->Xbee. Test awaiting.
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 | 37:28f1122a858c | 11 | |
Thierry19 | 44:0862bc49ffa7 | 12 | Mail<Fixe_Vers_Mobile, 8> mailbox_TypeDeJeu; |
pete1801 | 9:b8503f5ad3bd | 13 | void Recevoir(); |
Thierry19 | 23:5bb76b7c35da | 14 | void EnvoyerStructure(Mobile_Vers_Fixe mvf); |
pete1801 | 39:558cd5780490 | 15 | void EnvoyerStructure(Mobile_Vers_Fixe *mvf); |
pete1801 | 9:b8503f5ad3bd | 16 | private: |
pete1801 | 9:b8503f5ad3bd | 17 | Serial* XbeePin; |
pete1801 | 9:b8503f5ad3bd | 18 | short PanId; |
pete1801 | 37:28f1122a858c | 19 | |
pete1801 | 37:28f1122a858c | 20 | void EnvoyerDonnees(char data[], int messageSize); |
pete1801 | 37:28f1122a858c | 21 | void Envoyer(char array[], int size); |
pete1801 | 9:b8503f5ad3bd | 22 | void SetPanId(short panId); |
pete1801 | 9:b8503f5ad3bd | 23 | }; |