code pour recevoir des trames et mettre les char sur le port usb
Dependencies: mbed
Fork of APP4 by
trame.hpp@2:7515831bb5f5, 2014-02-24 (annotated)
- Committer:
- joGenie
- Date:
- Mon Feb 24 14:08:10 2014 +0000
- Revision:
- 2:7515831bb5f5
- Child:
- 3:350f07072089
Add file;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joGenie | 2:7515831bb5f5 | 1 | #ifndef TRAME_HPP |
joGenie | 2:7515831bb5f5 | 2 | #define TRAME_HPP |
joGenie | 2:7515831bb5f5 | 3 | |
joGenie | 2:7515831bb5f5 | 4 | #include "mbed.h" |
joGenie | 2:7515831bb5f5 | 5 | |
joGenie | 2:7515831bb5f5 | 6 | using namespace std; |
joGenie | 2:7515831bb5f5 | 7 | |
joGenie | 2:7515831bb5f5 | 8 | class Trame |
joGenie | 2:7515831bb5f5 | 9 | { |
joGenie | 2:7515831bb5f5 | 10 | public: |
joGenie | 2:7515831bb5f5 | 11 | // Constructeur |
joGenie | 2:7515831bb5f5 | 12 | Trame(PinName _tx, PinName _rx); |
joGenie | 2:7515831bb5f5 | 13 | |
joGenie | 2:7515831bb5f5 | 14 | void sendATCommand(const char* command, int data = 0); |
joGenie | 2:7515831bb5f5 | 15 | |
joGenie | 2:7515831bb5f5 | 16 | unsigned int checksum(); |
joGenie | 2:7515831bb5f5 | 17 | private: |
joGenie | 2:7515831bb5f5 | 18 | PinName tx, rx; |
joGenie | 2:7515831bb5f5 | 19 | }; |
joGenie | 2:7515831bb5f5 | 20 | |
joGenie | 2:7515831bb5f5 | 21 | #endif |