Open Garden  0.10.1-21
cmdli.h
Go to the documentation of this file.
1 /* This file is part of OpenGarden
2  * Copyright (C) 2011, 2012 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 CMDLI_H
23 #define CMDLI_H
24 
25 #include "debug.h"
26 #include "date.h"
27 #include "temperature.h"
28 #include "program.h"
29 #include "queue.h"
30 
32 #define MAX_CMD_LENGHT 20
33 
35 struct cmdli_t {
37  char *cmd;
39  uint8_t idx;
40 };
41 
42 struct cmdli_t *cmdli_init(struct cmdli_t *cmdli);
43 void cmdli_free(struct cmdli_t *cmdli);
44 void cmdli_help(struct debug_t *debug);
45 void cmdli_exec(char c, struct cmdli_t *cmdli, struct programs_t *progs,
46  struct debug_t *debug, uint8_t *serno);
47 
48 #endif
Definition: cmdli.h:35
uint8_t idx
Definition: cmdli.h:39
Functions to activare and display (rs232) debug.
temperature handling functions.
void cmdli_exec(char c, struct cmdli_t *cmdli, struct programs_t *progs, struct debug_t *debug, uint8_t *serno)
Definition: cmdli.c:314
char * cmd
Definition: cmdli.h:37
void cmdli_free(struct cmdli_t *cmdli)
Definition: cmdli.c:109
Functions to handle programs.
Definition: debug.h:59
Functions to handle queues.
void cmdli_help(struct debug_t *debug)
Definition: cmdli.c:116
Definition: ogstruct.h:170
time high level functions.
struct cmdli_t * cmdli_init(struct cmdli_t *cmdli)
Definition: cmdli.c:99