code pour recevoir des trames et mettre les char sur le port usb
Dependencies: mbed
Fork of APP4 by
Diff: trame.hpp
- Revision:
- 2:7515831bb5f5
- Child:
- 3:350f07072089
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trame.hpp Mon Feb 24 14:08:10 2014 +0000 @@ -0,0 +1,21 @@ +#ifndef TRAME_HPP +#define TRAME_HPP + +#include "mbed.h" + +using namespace std; + +class Trame +{ +public: + // Constructeur + Trame(PinName _tx, PinName _rx); + + void sendATCommand(const char* command, int data = 0); + + unsigned int checksum(); +private: + PinName tx, rx; +}; + +#endif \ No newline at end of file