OpenOCD
algorithm.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2005 by Dominic Rath *
5  * Dominic.Rath@gmx.de *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_ALGORITHM_H
9 #define OPENOCD_TARGET_ALGORITHM_H
10 
11 #include "helper/types.h"
12 #include "helper/replacements.h"
13 
18 };
19 
20 struct mem_param {
22  uint32_t size;
23  uint8_t *value;
25 };
26 
27 struct reg_param {
28  const char *reg_name;
29  uint32_t size;
30  uint8_t *value;
32 };
33 
34 void init_mem_param(struct mem_param *param,
35  uint32_t address, uint32_t size, enum param_direction dir);
36 void destroy_mem_param(struct mem_param *param);
37 
38 void init_reg_param(struct reg_param *param,
39  char *reg_name, uint32_t size, enum param_direction dir);
40 void destroy_reg_param(struct reg_param *param);
41 
42 #endif /* OPENOCD_TARGET_ALGORITHM_H */
param_direction
Definition: algorithm.h:14
@ PARAM_OUT
Definition: algorithm.h:16
@ PARAM_IN
Definition: algorithm.h:15
@ PARAM_IN_OUT
Definition: algorithm.h:17
void destroy_mem_param(struct mem_param *param)
Definition: algorithm.c:23
void destroy_reg_param(struct reg_param *param)
Definition: algorithm.c:37
void init_mem_param(struct mem_param *param, uint32_t address, uint32_t size, enum param_direction dir)
Definition: algorithm.c:15
void init_reg_param(struct reg_param *param, char *reg_name, uint32_t size, enum param_direction dir)
Definition: algorithm.c:29
size_t size
Size of the control block search area.
Definition: rtt/rtt.c:30
enum param_direction direction
Definition: algorithm.h:24
uint32_t size
Definition: algorithm.h:22
target_addr_t address
Definition: algorithm.h:21
uint8_t * value
Definition: algorithm.h:23
uint32_t size
Definition: algorithm.h:29
uint8_t * value
Definition: algorithm.h:30
const char * reg_name
Definition: algorithm.h:28
enum param_direction direction
Definition: algorithm.h:31
uint64_t target_addr_t
Definition: types.h:335