code pour recevoir des trames et mettre les char sur le port usb
Dependencies: mbed
Fork of APP4 by
coordinateur.hpp@3:350f07072089, 2014-02-24 (annotated)
- Committer:
- joGenie
- Date:
- Mon Feb 24 15:40:33 2014 +0000
- Revision:
- 3:350f07072089
- Parent:
- 2:7515831bb5f5
- Child:
- 4:56b1ca37a175
NEW;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joGenie | 0:71df0feee697 | 1 | #ifndef COORDINATEUR_HPP |
joGenie | 0:71df0feee697 | 2 | #define COORDINATEUR_HPP |
joGenie | 0:71df0feee697 | 3 | |
joGenie | 0:71df0feee697 | 4 | #include <string> |
joGenie | 2:7515831bb5f5 | 5 | #include "trame.hpp" |
joGenie | 0:71df0feee697 | 6 | |
joGenie | 0:71df0feee697 | 7 | using namespace std; |
joGenie | 0:71df0feee697 | 8 | |
joGenie | 0:71df0feee697 | 9 | class Coordinateur |
joGenie | 0:71df0feee697 | 10 | { |
joGenie | 0:71df0feee697 | 11 | public: |
joGenie | 0:71df0feee697 | 12 | // Constructeur |
joGenie | 2:7515831bb5f5 | 13 | Coordinateur(PinName _tx, PinName _rx); |
joGenie | 0:71df0feee697 | 14 | |
joGenie | 3:350f07072089 | 15 | void setPanId(string _pan) { pan = _pan); } |
joGenie | 3:350f07072089 | 16 | |
joGenie | 0:71df0feee697 | 17 | private: |
joGenie | 2:7515831bb5f5 | 18 | Trame trame; |
joGenie | 0:71df0feee697 | 19 | string pan; |
joGenie | 0:71df0feee697 | 20 | }; |
joGenie | 0:71df0feee697 | 21 | |
joGenie | 0:71df0feee697 | 22 | #endif |