Subversion Repositories HomeAutomation

Rev

Go to most recent revision | 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. #ifdef act_RGBW_USEEEPROM
  36.     struct act_RGBW_Data{
  37.         ///TODO: Define EEPROM variables needed by the module
  38.         uint16_t ch1;
  39.         uint16_t ch2;
  40.         uint16_t ch3;
  41.         uint16_t ch4;
  42.     }; 
  43. #endif
  44.  
  45. #endif // ACT_RGBW
  46.