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: trame.h
- Revision:
- 15:79a78f997f18
- Child:
- 17:cce0eada6d82
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trame.h Tue Feb 28 13:40:13 2017 +0000 @@ -0,0 +1,24 @@ +#ifndef __TRAME_H +#define __TRAME_H + +#include "mbed.h" +#define TAILLE_TRAME_DATA 3 //octets + +class TrameData { + private: + char idEmetteur; // 1 octet + char etatPompe; //1 bit + char nombreNiveau; //5 bits + char niveauCuve; //5 bits + char niveauBatterie; //4bits + char trame[TAILLE_TRAME_DATA]; + + public: + TrameData(char id, int nbNiveau, char etatP, char niveau, char batterie); + char* creerTrame(); + void mettreAJourEtatPompe(char etatP); + void mettreAJourNiveauCuve(char niveau); + void mettreAJourNiveauBatterie(char niveau); +}; + +#endif // __TRAME_H \ No newline at end of file