168 #define DEVDIR_IN_ANALOG 3 /* Temperature input etc. */ |
168 #define DEVDIR_IN_ANALOG 3 /* Temperature input etc. */ |
169 #define DEVDIR_OUT_ANALOG 4 /* Analog steering */ |
169 #define DEVDIR_OUT_ANALOG 4 /* Analog steering */ |
170 #define DEVDIR_OUT_PWM 5 /* PWM outout */ |
170 #define DEVDIR_OUT_PWM 5 /* PWM outout */ |
171 #define DEVDIR_INTERN 6 /* Internal function */ |
171 #define DEVDIR_INTERN 6 /* Internal function */ |
172 |
172 |
173 typedef struct _w1_therm { |
|
174 struct _w1_therm *next; |
|
175 char *master; /* Master for this device */ |
|
176 int bus; /* Reserved for ds2482-800 */ |
|
177 char *name; /* Name of this device */ |
|
178 char *alias; /* Friendly name */ |
|
179 int present; /* 1=present, 0=absent */ |
|
180 int lastval; /* Last valid value */ |
|
181 int update; /* Value updated */ |
|
182 } w1_therm; |
|
183 |
173 |
184 typedef struct _sys_config { |
174 typedef struct _sys_config { |
185 char *name; /* Configuration name */ |
175 char *name; /* Configuration name */ |
186 int my_port; /* my client/server port */ |
176 int my_port; /* my client/server port */ |
187 unsigned char tempFormat; /* Temperature format, C or F */ |
177 unsigned char tempFormat; /* Temperature format, C or F */ |
188 char *air_address; /* 1-wire environment sensor */ |
178 char *air_address; /* 1-wire environment sensor */ |
189 int air_state; /* 0=ok, 1=missing, 2=error */ |
179 int air_state; /* 0=ok, 1=missing, 2=error */ |
190 int air_temperature; /* Air temperature in C * 1000 */ |
180 int air_temperature; /* Air temperature in C * 1000 */ |
191 w1_therm *w1therms; /* 1-wire temp sensors */ |
|
192 #ifdef HAVE_WIRINGPI_H |
181 #ifdef HAVE_WIRINGPI_H |
193 int lcd_cols; /* LCD display columns */ |
182 int lcd_cols; /* LCD display columns */ |
194 int lcd_rows; /* LCD display rows */ |
183 int lcd_rows; /* LCD display rows */ |
195 int lcd_address; /* LCD display i2c address */ |
184 int lcd_address; /* LCD display i2c address */ |
196 #endif |
185 #endif |