Subversion Repositories HomeAutomation

Rev

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

  1. #ifndef ACT_RGBW
  2. #define ACT_RGBW
  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.  
  19. //to use PCINT lib. uncomment the line below
  20. //#include <drivers/mcu/pcint.h>
  21.  
  22. void act_RGBW_Init(void);
  23. void act_RGBW_Process(void);
  24. void act_RGBW_HandleMessage(StdCan_Msg_t *rxMsg);
  25. void act_RGBW_List(uint8_t ModuleSequenceNumber);
  26.  
  27. #define ACT_RGBW_DEMO_STATE_NOT_RUNNING 0
  28. #define ACT_RGBW_DEMO_STATE_DECREASE        1
  29. #define ACT_RGBW_DEMO_STATE_INCREASE        2
  30. #define ACT_RGBW_DEMO_STATE_GOBACK      3
  31.  
  32. #define ACT_RGBW_MAX_DIM                10000UL
  33. #define ACT_RGBW_MIN_DIM                0
  34.  
  35. #ifndef act_RGBW_USEEEPROM
  36. #define act_RGBW_USEEEPROM 0
  37. #endif
  38.  
  39. #if act_RGBW_USEEEPROM==1
  40.     struct act_RGBW_Data{
  41.         ///TODO: Define EEPROM variables needed by the module
  42.         uint16_t ch1;
  43.         uint16_t ch2;
  44.         uint16_t ch3;
  45.         uint16_t ch4;
  46.     }; 
  47. #endif
  48.  
  49. #endif // ACT_RGBW
  50.