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 Semtech

Committer:
chevamax
Date:
Tue Feb 28 13:40:13 2017 +0000
Revision:
15:79a78f997f18
Child:
17:cce0eada6d82
Application de test.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chevamax 15:79a78f997f18 1 #ifndef __TRAME_H
chevamax 15:79a78f997f18 2 #define __TRAME_H
chevamax 15:79a78f997f18 3
chevamax 15:79a78f997f18 4 #include "mbed.h"
chevamax 15:79a78f997f18 5 #define TAILLE_TRAME_DATA 3 //octets
chevamax 15:79a78f997f18 6
chevamax 15:79a78f997f18 7 class TrameData {
chevamax 15:79a78f997f18 8 private:
chevamax 15:79a78f997f18 9 char idEmetteur; // 1 octet
chevamax 15:79a78f997f18 10 char etatPompe; //1 bit
chevamax 15:79a78f997f18 11 char nombreNiveau; //5 bits
chevamax 15:79a78f997f18 12 char niveauCuve; //5 bits
chevamax 15:79a78f997f18 13 char niveauBatterie; //4bits
chevamax 15:79a78f997f18 14 char trame[TAILLE_TRAME_DATA];
chevamax 15:79a78f997f18 15
chevamax 15:79a78f997f18 16 public:
chevamax 15:79a78f997f18 17 TrameData(char id, int nbNiveau, char etatP, char niveau, char batterie);
chevamax 15:79a78f997f18 18 char* creerTrame();
chevamax 15:79a78f997f18 19 void mettreAJourEtatPompe(char etatP);
chevamax 15:79a78f997f18 20 void mettreAJourNiveauCuve(char niveau);
chevamax 15:79a78f997f18 21 void mettreAJourNiveauBatterie(char niveau);
chevamax 15:79a78f997f18 22 };
chevamax 15:79a78f997f18 23
chevamax 15:79a78f997f18 24 #endif // __TRAME_H