Polytech school project. RICM4 students, see http://air.imag.fr/index.php/Projets-2016-2017-Station_de_pompage_connect%C3%A9e for more information
Fork of SX1276PingPong by
ordre.h
- Committer:
- chevamax
- Date:
- 2017-04-01
- Revision:
- 16:1643ac8ba29f
File content as of revision 16:1643ac8ba29f:
#ifndef __ORDRE_H #define __ORDRE_H #include "mbed.h" #define TAILLE_TRAME_ORDRE 3 //octets class Ordre { private: char idEmetteur; // 1 octet char idRecepteur; //1 octet char niveauCuve; //5 bits char ordreAFaire; // 1 bit char trame[TAILLE_TRAME_ORDRE]; public: Ordre(char id, char idR, char niveau); Ordre(char* trameRecu); char* creerTrame(); void mettreAJourNiveauCuve(); char getIdEmetteur(); char getIdRecepteur(); char getNiveauCuve(); char getOrdreAFaire(); }; #endif // __ORDRE_H