thermferm/thermferm.h

changeset 654
e981d0185485
parent 645
49eb753a958b
child 660
a28ef4d9afa4
equal deleted inserted replaced
653:6c4c884be155 654:e981d0185485
56 * Thread locks 56 * Thread locks
57 */ 57 */
58 #define LOCK_DEVICES 0 58 #define LOCK_DEVICES 0
59 #define LOCK_LCD 1 59 #define LOCK_LCD 1
60 #define LOCK_MENU 2 60 #define LOCK_MENU 2
61 #define LOCK_SPARE2 3 61 #define LOCK_ONE_WIRE 3
62 #define LOCK_SPARE3 4 62 #define LOCK_SPARE3 4
63 63
64 64
65 /* 65 /*
66 * Frontpanel menu numbers 66 * Frontpanel menu numbers
302 #define DEVDIR_IN_ANALOG 3 /* Temperature input etc. */ 302 #define DEVDIR_IN_ANALOG 3 /* Temperature input etc. */
303 #define DEVDIR_OUT_ANALOG 4 /* Analog steering */ 303 #define DEVDIR_OUT_ANALOG 4 /* Analog steering */
304 #define DEVDIR_OUT_PWM 5 /* PWM outout */ 304 #define DEVDIR_OUT_PWM 5 /* PWM outout */
305 #define DEVDIR_INTERN 6 /* Internal function */ 305 #define DEVDIR_INTERN 6 /* Internal function */
306 306
307
308 /*
309 * Dynamic one-wire devices list
310 */
311 typedef struct _w1_list {
312 struct _w1_list *next;
313 char *address; ///< Device address
314 char family[3]; ///< Device family
315 int present; ///< Present on bus
316 int subdevices; ///< Number of subdevices
317 time_t timestamp; ///< Last seen
318 } w1_list;
319
320
321
307 #ifdef USE_SIMULATOR 322 #ifdef USE_SIMULATOR
308 323
309 /* 324 /*
310 * The frigo is a simulation of a fridge with a heating device. 325 * The frigo is a simulation of a fridge with a heating device.
311 * It has a volume air, a volume of your beer. There is a simulated 326 * It has a volume air, a volume of your beer. There is a simulated

mercurial