Subversion Repositories HomeAutomation

Rev

Rev 2167 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. #ifndef SNS_WATER
  2. #define SNS_WATER
  3.  
  4. /*-----------------------------------------------------------------------------
  5.  * Includes
  6.  *---------------------------------------------------------------------------*/
  7. /* system files */
  8. #include <avr/io.h>
  9. #include <avr/interrupt.h>
  10. #include <stdio.h>
  11. /* lib files */
  12. #include <config.h>
  13. #include <bios.h>
  14. #include <drivers/can/stdcan.h>
  15. #include <drivers/timer/timer.h>
  16. #include <drivers/mcu/gpio.h>
  17. #include <drivers/adc/adc.h>
  18. #include <drivers/mcu/pcint.h>
  19.  
  20. void sns_water_Init(void);
  21. void sns_water_Process(void);
  22. void sns_water_HandleMessage(StdCan_Msg_t *rxMsg);
  23. void sns_water_List(uint8_t ModuleSequenceNumber);
  24.  
  25.  
  26. #ifndef sns_water_USEEEPROM
  27. #define sns_water_USEEEPROM 0
  28. #endif
  29.  
  30. #define HIGH        1
  31. #define LOW         2
  32. //#define NOCHANGE  0
  33. //#define HIGH_NOCH 3
  34. //#define LOW_NOCH  4
  35.  
  36. #if sns_water_USEEEPROM==1
  37.     struct sns_water_Data{
  38.         uint8_t reportInterval;
  39.         uint16_t VolumeCounterUpper;
  40.         uint16_t VolumeCounterLower;
  41.     }; 
  42. #endif
  43.  
  44. #endif // SNS_WATER
  45.