Polytech school project. RICM4 students, see http://air.imag.fr/index.php/Projets-2016-2017-Station_de_pompage_connect%C3%A9e for more information
Dependencies: SX1272Lib mbed WakeUp
Fork of SX1272PingPong by
Diff: ordre.h
- Revision:
- 17:cce0eada6d82
- Parent:
- 15:79a78f997f18
--- a/ordre.h Fri Mar 03 13:42:44 2017 +0000 +++ b/ordre.h Sat Apr 01 12:29:59 2017 +0000 @@ -7,23 +7,23 @@ #define TAILLE_TRAME_ORDRE 3 //octets +//Representation d'un ordre (format de trame) 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(); //Voir si on peut faire un thread TODO - void executerOrdre(Pompe p, Niveau n); + void executerOrdre(Pompe p, Niveau n, char niveauCible); char getIdEmetteur(); char getIdRecepteur(); char getNiveauCuve(); + char getOrdreAFaire(); }; #endif // __ORDRE_H \ No newline at end of file