routeur done
Dependencies: mbed
Fork of APP4 by
Diff: trame.hpp
- Revision:
- 3:350f07072089
- Parent:
- 2:7515831bb5f5
--- a/trame.hpp Mon Feb 24 14:08:10 2014 +0000 +++ b/trame.hpp Mon Feb 24 15:40:33 2014 +0000 @@ -11,9 +11,15 @@ // Constructeur Trame(PinName _tx, PinName _rx); - void sendATCommand(const char* command, int data = 0); + // Envoie une trame pour une commande AT + void sendATCommand(const char* command, const char* data, int length); - unsigned int checksum(); + // Envoie une trame pour une requete transmition + void sendTransmitRequest(const char* destination, const char* data, int length); + + //Effectue le checksum d'un AT command + unsigned char crc8(const char* data, int length); + private: PinName tx, rx; };