brewco/brewco.h

changeset 457
24a34b7a693d
parent 455
f84501d8dd87
child 459
1f88be70f253
equal deleted inserted replaced
456:045db83dd013 457:24a34b7a693d
211 // B-amilasi 50 70 canskip 211 // B-amilasi 50 70 canskip
212 // A-amilasi 1 60 76 canskip 212 // A-amilasi 1 60 76 canskip
213 // A-amilasi 2 60 76 noskip 213 // A-amilasi 2 60 76 noskip
214 // mash-out 75 80 noskip 214 // mash-out 75 80 noskip
215 215
216 typedef struct _hop_stand {
217 char name[21]; /* Hop stand name */
218 int min; /* Minimum temperature */
219 int max; /* Maximum temperature */
220 int holdtemp; /* Hold temperature at */
221 float setpoint; /* Hold temperature setpoint */
222 int skip; /* Skip this one */
223 int duration; /* Hold time */
224 } hop_stand;
225
216 typedef struct _hop_addition { 226 typedef struct _hop_addition {
217 char name[21]; /* Hop name */ 227 char name[21]; /* Hop name */
218 int boil_duration; /* -1=fwh, 0..boiltime */ 228 int boil_duration; /* -1=fwh, 0..boiltime */
219 } hop_addition; 229 } hop_addition;
220 230
223 char code[21]; /* Recipe code */ 233 char code[21]; /* Recipe code */
224 char name[21]; /* Recipe name */ 234 char name[21]; /* Recipe name */
225 mash_step mash[8]; /* 8 mash steps */ 235 mash_step mash[8]; /* 8 mash steps */
226 hop_addition hops[10]; /* 10 hop additions */ 236 hop_addition hops[10]; /* 10 hop additions */
227 int boiltime; /* 1..240 minutes */ 237 int boiltime; /* 1..240 minutes */
238 hop_stand hopstand[3]; /* 3 hopstand slots */
228 time_t started; /* Start time */ 239 time_t started; /* Start time */
229 time_t endtime; /* Ending time */ 240 time_t endtime; /* Ending time */
230 } a_recipe; 241 } a_recipe;
231 242
232 243
288 #define STEP_BOILDONE 9 /* Boil done, hopstand */ 299 #define STEP_BOILDONE 9 /* Boil done, hopstand */
289 #define STEP_COOLING 10 /* Cooling */ 300 #define STEP_COOLING 10 /* Cooling */
290 #define STEP_WHIRLPOOL 11 /* Whirlpool */ 301 #define STEP_WHIRLPOOL 11 /* Whirlpool */
291 #define STEP_CLEANUP 12 /* Cleanup */ 302 #define STEP_CLEANUP 12 /* Cleanup */
292 #define STEP_BREWDONE 13 /* Final step */ 303 #define STEP_BREWDONE 13 /* Final step */
293 304 #define STEP_HOPSTAND1 14 /* Hopstand 88..100 */
294 #define MAISH_NA 0 /* Not in any state yet */ 305 #define STEP_HOPSTAND2 15 /* Hopstand 71..77 */
295 #define MASIH_PROMPT 1 /* Prompt the user */ 306 #define STEP_HOPSTAND3 16 /* Hopstand 60..66 */
296 #define MAISH_HEATING 2 /* Heating phase */ 307
297 #define MAISH_REST 3 /* Rest phase */ 308 #define MASH_NA 0 /* Not in any state yet */
298 #define MAISH_DONE 4 /* This step is done */ 309 #define MASH_PROMPT 1 /* Prompt the user */
310 #define MASH_HEATING 2 /* Heating phase */
311 #define MASH_REST 3 /* Rest phase */
312 #define MASH_DONE 4 /* This step is done */
299 313
300 314
301 315
302 typedef struct _brew_session { 316 typedef struct _brew_session {
303 char *uuid_recipe; /* Brewing this recipe */ 317 char *uuid_recipe; /* Brewing this recipe */

mercurial