Testeur.h 856 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __TESTEUR_H__
  2. #define __TESTEUR_H__
  3. #include <stdint.h>
  4. #define MINUTE (long)75
  5. #define DELAYLOOP (long)500
  6. #define NBPIN 11
  7. typedef struct {
  8. uint8_t num;
  9. uint8_t last;
  10. }newPin;
  11. uint8_t tab[MAXEEPROM];
  12. void initTabPin(void);
  13. const unsigned long intervalleMinimum = 5000; // durée minimale du signal haut en millisecondes
  14. const unsigned long intervalleMaximum = 15000; // durée maximale du signal haut en millisecondes
  15. const unsigned long intervalleAttenteMinimum = 6000000; // temps d'attente minimum entre les signaux en millisecondes (1 heure)
  16. const unsigned long intervalleAttenteMaximum = 172800000; // temps d'attente maximum entre les signaux en millisecondes (2 jours)
  17. unsigned long tempsPrecedent = 0;
  18. unsigned long tempsSignal = 0;
  19. unsigned long tempsAttente = 0;
  20. int nbSignaux = 0;
  21. uint8_t toogle(uint8_t pin);
  22. #endif