routeur done

Dependencies:   mbed

Fork of APP4 by S5info_H14

trame.hpp

Committer:
joGenie
Date:
2014-02-24
Revision:
3:350f07072089
Parent:
2:7515831bb5f5

File content as of revision 3:350f07072089:

#ifndef TRAME_HPP
#define TRAME_HPP

#include "mbed.h"

using namespace std;

class Trame
{
public:
    // Constructeur
    Trame(PinName _tx, PinName _rx);
    
    // Envoie une trame pour une commande AT
    void sendATCommand(const char* command, const char* data, int length);
    
    // 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;
};

#endif