Open Garden  0.10.1-21
program.h
Go to the documentation of this file.
1 /* This file is part of OpenGarden
2  * Copyright (C) 2011-2014 Enrico Rossi
3  *
4  * OpenGarden is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * OpenGarden is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
22 #ifndef PROGS_H
23 #define PROGS_H
24 
25 #include <avr/eeprom.h>
26 #include <util/crc16.h>
27 #include "ogstruct.h"
28 #include "io_pin.h"
29 #include "debug.h"
30 #include "date.h"
31 #include "temperature.h"
32 #include "queue.h"
33 
34 uint8_t *serno_read(uint8_t *serno, struct debug_t *debug);
35 uint8_t *serno_write(uint8_t *serno);
36 void serno_print(uint8_t *serno, struct debug_t *debug);
37 uint8_t serno_check(uint8_t *serno);
38 uint8_t *serno_init(uint8_t *serno);
39 struct programs_t *prog_init(struct programs_t *progs);
40 void prog_free(struct programs_t *progs);
41 void prog_load(struct programs_t *progs);
42 void prog_save(struct programs_t *progs);
43 void prog_list(struct programs_t *progs, struct debug_t *debug);
44 void prog_clear(struct programs_t *progs);
45 void prog_add(struct programs_t *progs, const char *s);
46 uint8_t prog_del(struct programs_t *progs, const uint8_t n);
47 void prog_run(struct programs_t *progs, struct tm *tm_clock, struct debug_t *debug);
48 uint8_t prog_alarm(struct programs_t *progs);
49 
50 #endif
uint8_t prog_alarm(struct programs_t *progs)
Definition: program.c:308
void prog_save(struct programs_t *progs)
Store the programs into the eeprom area.
Definition: program.c:169
Functions to activare and display (rs232) debug.
temperature handling functions.
void prog_list(struct programs_t *progs, struct debug_t *debug)
Definition: program.c:220
uint8_t * serno_init(uint8_t *serno)
Definition: program.c:92
struct programs_t * prog_init(struct programs_t *progs)
initialize the program area and IO lines
Definition: program.c:175
uint8_t * serno_read(uint8_t *serno, struct debug_t *debug)
Definition: program.c:37
Definition: debug.h:59
uint8_t serno_check(uint8_t *serno)
Definition: program.c:74
Functions to handle queues.
uint8_t prog_del(struct programs_t *progs, const uint8_t n)
remove a program from the memory
Definition: program.c:276
void prog_clear(struct programs_t *progs)
Definition: program.c:232
uint8_t * serno_write(uint8_t *serno)
Definition: program.c:48
Definition: time.h:42
Definition: ogstruct.h:170
structures.
void prog_run(struct programs_t *progs, struct tm *tm_clock, struct debug_t *debug)
Definition: program.c:195
void prog_load(struct programs_t *progs)
Load or re-load the programs from the eeprom.
Definition: program.c:136
time high level functions.
IO lines definitions.
void prog_free(struct programs_t *progs)
Definition: program.c:184
void prog_add(struct programs_t *progs, const char *s)
Definition: program.c:249