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:   SX1276Lib mbed

Fork of SX1276PingPong by Semtech

Committer:
chevamax
Date:
Sat Apr 01 12:14:27 2017 +0000
Revision:
16:1643ac8ba29f
Version finale

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chevamax 16:1643ac8ba29f 1 #ifndef __ORDRE_H
chevamax 16:1643ac8ba29f 2 #define __ORDRE_H
chevamax 16:1643ac8ba29f 3
chevamax 16:1643ac8ba29f 4 #include "mbed.h"
chevamax 16:1643ac8ba29f 5
chevamax 16:1643ac8ba29f 6 #define TAILLE_TRAME_ORDRE 3 //octets
chevamax 16:1643ac8ba29f 7
chevamax 16:1643ac8ba29f 8 class Ordre {
chevamax 16:1643ac8ba29f 9 private:
chevamax 16:1643ac8ba29f 10 char idEmetteur; // 1 octet
chevamax 16:1643ac8ba29f 11 char idRecepteur; //1 octet
chevamax 16:1643ac8ba29f 12 char niveauCuve; //5 bits
chevamax 16:1643ac8ba29f 13 char ordreAFaire; // 1 bit
chevamax 16:1643ac8ba29f 14 char trame[TAILLE_TRAME_ORDRE];
chevamax 16:1643ac8ba29f 15
chevamax 16:1643ac8ba29f 16 public:
chevamax 16:1643ac8ba29f 17 Ordre(char id, char idR, char niveau);
chevamax 16:1643ac8ba29f 18 Ordre(char* trameRecu);
chevamax 16:1643ac8ba29f 19 char* creerTrame();
chevamax 16:1643ac8ba29f 20 void mettreAJourNiveauCuve();
chevamax 16:1643ac8ba29f 21 char getIdEmetteur();
chevamax 16:1643ac8ba29f 22 char getIdRecepteur();
chevamax 16:1643ac8ba29f 23 char getNiveauCuve();
chevamax 16:1643ac8ba29f 24 char getOrdreAFaire();
chevamax 16:1643ac8ba29f 25 };
chevamax 16:1643ac8ba29f 26
chevamax 16:1643ac8ba29f 27 #endif // __ORDRE_H