Subversion Repositories HomeAutomation

Rev

Rev 165 | Blame | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * Defines functs, funccs and other global definitions
  3.  * This is the one for eqnet
  4.  *
  5.  */
  6.  
  7. /* TODO temporary FUNCT, NID (until global_funcdefs.h is fixed) */
  8. #define FUNCT_SENSORS                           0x01
  9. #define NID                                     0x05
  10. #define FUNCC_DEFAULT                           0x00
  11.  
  12. /* <FUNCC> 10 bits, 0x3FF */
  13. #define FUNCC_SENSORS_IR                        0x001
  14.  
  15. #define FUNCC_SENSORS_TEMPERATURE_INSIDE        0x002
  16. #define FUNCC_SENSORS_TEMPERATURE_OUTSIDE       0x003
  17. #define FUNCC_SENSORS_TEMPERATURE_FREEZER       0x004
  18. #define FUNCC_SENSORS_TEMPERATURE_REFRIGERATOR  0x005
  19.  
  20. /* LCD: strings */
  21. #define LCD_SENSOR_TEMPERATURE_INSIDE           "Inne      "
  22. #define LCD_SENSOR_TEMPERATURE_OUTSIDE          "Ute       "
  23. #define LCD_SENSOR_TEMPERATURE_FREEZER          "Frys      "
  24. #define LCD_SENSOR_TEMPERATURE_REFRIGERATOR     "Kyl       "
  25.  
  26. /* LCD: layout */
  27. #define LCD_TOP                                 0,0
  28.  
  29. #define LCD_LINE0_0                             0,0
  30. #define LCD_LINE0_1                             4,0
  31. #define LCD_LINE0_2                             10,0
  32. #define LCD_LINE0_3                             14,0
  33.  
  34. #define LCD_LINE1_0                             0,1
  35. #define LCD_LINE1_1                             4,1
  36. #define LCD_LINE1_2                             10,1
  37. #define LCD_LINE1_3                             14,1
  38.  
  39. #define LCD_LINE2_0                             0,2
  40. #define LCD_LINE2_1                             4,2
  41. #define LCD_LINE2_2                             10,2
  42. #define LCD_LINE2_3                             14,2
  43.  
  44. #define LCD_LINE3_0                             0,3
  45. #define LCD_LINE3_1                             4,3
  46. #define LCD_LINE3_2                             10,3
  47. #define LCD_LINE3_3                             14,3
  48.  
  49. /* DS18S20 serial ID */
  50. #define DS18S20_FREEZER                         0x10A7022601080005
  51. #define DS18S20_OUTSIDE                         0x100901E50008001E
  52. #define DS18S20_INSIDE_1                        0x1061C125010800CC
  53. //#define DS18S20_INSIDE_2
  54. //#define DS18S20_REFRIGERATOR
  55. #define DS18S20_UNDEF                           0x00
  56.  
  57. /* Node IDs */
  58. #define NODE_SENSOR_1                           0x0F
  59. #define NODE_LCD_1                              0x02
  60.  
  61.