thermferm/thermferm.h

changeset 162
6fc9e3f7962f
parent 158
f1b7e2ef90be
child 165
e97829d0f8f9
equal deleted inserted replaced
161:493e39bb0a08 162:6fc9e3f7962f
98 #define UNITMODE_NONE 1 /* Unit on but does nothing */ 98 #define UNITMODE_NONE 1 /* Unit on but does nothing */
99 #define UNITMODE_FRIDGE 2 /* Unit acts as a fridge */ 99 #define UNITMODE_FRIDGE 2 /* Unit acts as a fridge */
100 #define UNITMODE_BEER 3 /* Unit acts as beer cooler */ 100 #define UNITMODE_BEER 3 /* Unit acts as beer cooler */
101 #define UNITMODE_PROFILE 4 /* Unit runs in profile mode */ 101 #define UNITMODE_PROFILE 4 /* Unit runs in profile mode */
102 102
103 #define UNITIO1_HEATER 0x01 /* Heater bit */
104 #define UNITIO1_COOLER 0x02 /* Cooler bit */
105 #define UNITIO2_FAN 0x01 /* Fan bit */
106 #define UNITIO2_DOOR 0x02 /* Door status */
107
108
109 103
110 /* 104 /*
111 * Fermenting steps 105 * Fermenting steps
112 */ 106 */
113 typedef struct _prof_step { 107 typedef struct _prof_step {
172 #define DEVDIR_IN_BIN 1 /* Binary input */ 166 #define DEVDIR_IN_BIN 1 /* Binary input */
173 #define DEVDIR_OUT_BIN 2 /* Binary output */ 167 #define DEVDIR_OUT_BIN 2 /* Binary output */
174 #define DEVDIR_IN_ANALOG 3 /* Temperature input etc. */ 168 #define DEVDIR_IN_ANALOG 3 /* Temperature input etc. */
175 #define DEVDIR_OUT_ANALOG 4 /* Analog steering */ 169 #define DEVDIR_OUT_ANALOG 4 /* Analog steering */
176 #define DEVDIR_OUT_PWM 5 /* PWM outout */ 170 #define DEVDIR_OUT_PWM 5 /* PWM outout */
177 171 #define DEVDIR_INTERN 6 /* Internal function */
178 172
179 typedef struct _w1_therm { 173 typedef struct _w1_therm {
180 struct _w1_therm *next; 174 struct _w1_therm *next;
181 char *master; /* Master for this device */ 175 char *master; /* Master for this device */
182 int bus; /* Reserved for ds2482-800 */ 176 int bus; /* Reserved for ds2482-800 */

mercurial