OpenOCD
minidriver.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  * Copyright (C) 2007,2008 Øyvind Harboe *
8  * oyvind.harboe@zylin.com *
9  * *
10  * Copyright (C) 2009 Zachary T Welch *
11  * zw@superlucidity.net *
12  ***************************************************************************/
13 
14 #ifndef OPENOCD_JTAG_MINIDRIVER_H
15 #define OPENOCD_JTAG_MINIDRIVER_H
16 
35 /* this header will be provided by the minidriver implementation, */
36 /* and it may provide additional declarations that must be defined. */
38 
39 int interface_jtag_add_ir_scan(struct jtag_tap *active,
40  const struct scan_field *fields,
41  tap_state_t endstate);
43  int num_bits, const uint8_t *out_bits, uint8_t *in_bits,
44  tap_state_t endstate);
45 
46 int interface_jtag_add_dr_scan(struct jtag_tap *active,
47  int num_fields, const struct scan_field *fields,
48  tap_state_t endstate);
50  int num_bits, const uint8_t *out_bits, uint8_t *in_bits,
51  tap_state_t endstate);
52 
53 int interface_jtag_add_tlr(void);
54 int interface_jtag_add_pathmove(unsigned int num_states, const tap_state_t *path);
55 int interface_jtag_add_runtest(unsigned int num_cycles, tap_state_t endstate);
56 
57 int interface_add_tms_seq(unsigned int num_bits,
58  const uint8_t *bits, enum tap_state state);
59 
68 int interface_jtag_add_reset(int trst, int srst);
69 int interface_jtag_add_sleep(uint32_t us);
70 int interface_jtag_add_clocks(unsigned int num_cycles);
72 
78 
79 #endif /* OPENOCD_JTAG_MINIDRIVER_H */
tap_state
Defines JTAG Test Access Port states.
Definition: jtag.h:37
enum tap_state tap_state_t
Defines JTAG Test Access Port states.
int interface_jtag_execute_queue(void)
int interface_jtag_add_runtest(unsigned int num_cycles, tap_state_t endstate)
int interface_jtag_add_pathmove(unsigned int num_states, const tap_state_t *path)
int interface_jtag_add_plain_ir_scan(int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t endstate)
int interface_jtag_add_plain_dr_scan(int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t endstate)
int interface_add_tms_seq(unsigned int num_bits, const uint8_t *bits, enum tap_state state)
int interface_jtag_add_ir_scan(struct jtag_tap *active, const struct scan_field *fields, tap_state_t endstate)
see jtag_add_ir_scan()
int interface_jtag_add_sleep(uint32_t us)
int interface_jtag_add_reset(int trst, int srst)
This drives the actual srst and trst pins.
int interface_jtag_add_clocks(unsigned int num_cycles)
int default_interface_jtag_execute_queue(void)
Calls the interface callback to execute the queue.
Definition: jtag/core.c:938
int interface_jtag_add_dr_scan(struct jtag_tap *active, int num_fields, const struct scan_field *fields, tap_state_t endstate)
see jtag_add_dr_scan()
int interface_jtag_add_tlr(void)
uint8_t bits[QN908X_FLASH_MAX_BLOCKS *QN908X_FLASH_PAGES_PER_BLOCK/8]
Definition: qn908x.c:0
Definition: jtag.h:101
This structure defines a single scan field in the scan.
Definition: jtag.h:87
uint8_t state[4]
Definition: vdebug.c:21