| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*
- * Tab.h
- *
- * Created on: 14 janv. 2019
- * Author: e_rcluze
- */
- #ifndef TAB_H_
- #define TAB_H_
- #define NBLIGNEACTIVE 4
- #define ALLUME 0
- #define ETEIN 1
- #define ENALLUME 2
- #define ENETEIN 3
- #include <stdint.h>
- typedef struct {
- /*
- * Sortie OUT en binnaire
- * 0b 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- * X X X X X X S10 S9 S8 S7 S6 S5 S4 S3 S2 S1
- */
- uint16_t OUT;
- uint16_t Demmarage; //Heure de D�marage (en Minute)
- uint16_t Extinxtion; //Heure de D�xtintion (en Minute)
- uint8_t PuissanceMax; //Puissance Maximum (En pourcentage)
- uint8_t Pente; //Pente (en Minute)
- uint8_t PuissanceEssai; // puissance d'essai
- uint8_t Status;
- }Sortie;
- Sortie tabSortie[NBLIGNEACTIVE];
- uint8_t gl_Stop;
- uint8_t gl_Essai;
- /**
- * initialise les tableaus des sortie
- * utile pour les OUT
- */
- void initTab(Sortie *S);
- /*
- * renvoie le status dans laquelle la sortie devrai etre (mise a jour du status)
- */
- uint8_t newStatus(Sortie *S, uint16_t heure);
- #endif /* TAB_H_ */
|