14 #ifndef OPENOCD_JTAG_COMMANDS_H
15 #define OPENOCD_JTAG_COMMANDS_H
struct jtag_command * jtag_command_queue
The current queue of jtag_command_s structures.
scan_type
The inferred type of a scan_command_s structure, indicating whether the command has the host scan in ...
@ SCAN_IN
From device to host,.
@ SCAN_OUT
From host to device,.
@ SCAN_IO
Full-duplex scan.
int jtag_build_buffer(const struct scan_command *cmd, uint8_t **buffer)
void jtag_queue_command(struct jtag_command *cmd)
void jtag_scan_field_clone(struct scan_field *dst, const struct scan_field *src)
Copy a struct scan_field for insertion into the queue.
enum scan_type jtag_scan_type(const struct scan_command *cmd)
jtag_command_type
The type of the jtag_command_container contained by a jtag_command_s structure.
int jtag_read_buffer(uint8_t *buffer, const struct scan_command *cmd)
int jtag_scan_size(const struct scan_command *cmd)
void jtag_command_queue_reset(void)
void * cmd_queue_alloc(size_t size)
enum tap_state tap_state_t
Defines JTAG Test Access Port states.
size_t size
Size of the control block search area.
tap_state_t end_state
state in which JTAG commands should finish
enum jtag_command_type type
struct jtag_command * next
union jtag_command_container cmd
int num_states
number of states in *path
tap_state_t * path
states that have to be passed
int trst
Set TRST output: 0 = deassert, 1 = assert, -1 = no change.
int srst
Set SRST output: 0 = deassert, 1 = assert, -1 = no change.
int num_cycles
number of cycles to spend in Run-Test/Idle state
tap_state_t end_state
state in which JTAG commands should finish
The scan_command provide a means of encapsulating a set of scan_field_s structures that should be sca...
bool ir_scan
instruction/not data scan
tap_state_t end_state
state in which JTAG commands should finish
struct scan_field * fields
pointer to an array of data scan fields
int num_fields
number of fields in *fields array
This structure defines a single scan field in the scan.
uint32_t us
number of microseconds to sleep
int num_cycles
number of clock cycles that should be sent
tap_state_t end_state
state in which JTAG commands should finish
Encapsulates a series of bits to be clocked out, affecting state and mode of the interface.
const uint8_t * bits
The bits to clock out; the LSB is bit 0 of bits[0].
unsigned num_bits
How many bits should be clocked out.
Defines a container type that hold a pointer to a JTAG command structure of any defined type.
struct end_state_command * end_state
struct runtest_command * runtest
struct pathmove_command * pathmove
struct stableclocks_command * stableclocks
struct statemove_command * statemove
struct sleep_command * sleep
struct reset_command * reset
struct scan_command * scan