brewco/brewco.h

changeset 438
7d1ec160d751
parent 435
4b1ed6897d80
child 441
bde74a8f2ad7
equal deleted inserted replaced
437:5664743eaf2f 438:7d1ec160d751
230 230
231 /* 231 /*
232 * Simulate a HLT and MLT. 232 * Simulate a HLT and MLT.
233 */ 233 */
234 typedef struct _simulator { 234 typedef struct _simulator {
235 struct _simulator *next;
236 int version; /* Version of this record */
237 char *uuid; /* Simulator uuid */
238 char *name; /* Simulator name */
239 double room_temperature; /* Simulated envionment temp */ 235 double room_temperature; /* Simulated envionment temp */
240 double hlt_temperature; /* Simulated HLT temperature */ 236 double hlt_temperature; /* Simulated HLT temperature */
241 double hlt_heater_temp; /* Maximum heater temp */ 237 double hlt_heater_temp; /* Maximum heater temp */
242 int hlt_heater_time; /* Time to reach temperature */ 238 int hlt_heater_time; /* Time to reach temperature */
243 float hlt_heater_size; /* Size of the heater */ 239 float hlt_heater_size; /* Size of the heater */
251 * Status values, maintained by the simulator but stored 247 * Status values, maintained by the simulator but stored
252 * here so they don't get lost over program restarts. 248 * here so they don't get lost over program restarts.
253 */ 249 */
254 double s_hlt_temp; /* Temp HLT */ 250 double s_hlt_temp; /* Temp HLT */
255 double s_mlt_temp; /* Temp MLT */ 251 double s_mlt_temp; /* Temp MLT */
256 } simulator_list; 252 } simulator_var;
257 253
258 #endif 254 #endif
259 255
260 256
261 257
268 int lcd_rows; /* LCD display rows */ 264 int lcd_rows; /* LCD display rows */
269 int lcd_address; /* LCD display i2c address */ 265 int lcd_address; /* LCD display i2c address */
270 units_list *units; /* Brewing units */ 266 units_list *units; /* Brewing units */
271 devices_list *devices; /* Sensors and switches */ 267 devices_list *devices; /* Sensors and switches */
272 #ifdef USE_SIMULATOR 268 #ifdef USE_SIMULATOR
273 simulator_list *simulators; /* Simulators */ 269 simulator_var *simulator; /* Simulator */
274 #endif 270 #endif
275 } sys_config; 271 } sys_config;
276 272
277 273
278 274

mercurial