]> git.sur5r.net Git - openocd/blob - src/helper/interpreter.h
- prepare OpenOCD for branching, created ./trunk/
[openocd] / src / helper / interpreter.h
1 /***************************************************************************
2  *   Copyright (C) 2005 by Dominic Rath                                    *
3  *   Dominic.Rath@gmx.de                                                   *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20 #ifndef INTERPRETER_H
21 #define INTERPRETER_H
22
23 #include "types.h"
24 #include "command.h"
25 #include "log.h"
26
27 typedef struct var_field_s
28 {
29         int num_bits;
30         u32 value;
31 } var_field_t;
32
33 typedef struct var_s
34 {
35         char *name;
36         int num_fields;
37         var_field_t *fields;
38         struct var_s *next;
39 } var_t;
40
41 extern var_t *variables;
42
43 extern int field_le_to_host(u8 *buffer, void *priv);
44
45 extern var_t* get_var_by_namenum(char *namenum);
46 extern int interpreter_register_commands(struct command_context_s *cmd_ctx);
47
48 #endif /* INTERPRETER_H */