tap_set_state is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

tap_set_state macro

This function sets the state of a "state follower" which tracks the state of the TAPs connected to the cable. The state follower is hopefully always in the same state as the actual TAPs in the jtag chain, and will be so if there are no bugs in the tracking logic within that cable driver. All the cable drivers call this function to indicate the state they think the TAPs attached to their cables are in. Because this function can also log transitions, it will be helpful to call this function with every transition that the TAPs being manipulated are expected to traverse, not just end points of a multi-step state path.

Syntax

#define tap_set_state(new_state) \     do { \     LOG_DEBUG_IO("tap_set_state(%s)", tap_state_name(new_state)); \     tap_set_state_impl(new_state); \     } while (0)

Arguments

new_state

The state we think the TAPs are currently in (or are about to enter).

References

LocationText
interface.h:49
#define tap_set_state(new_state) \
arm-jtag-ew.c:147
tap_set_state(TAP_RESET);
arm-jtag-ew.c:279
tap_set_state(tap_get_end_state());
arm-jtag-ew.c:300
tap_set_state(path[i]);
arm-jtag-ew.c:353
tap_set_state(ir_scan ? TAP_IRPAUSE : TAP_DRPAUSE);
cmsis_dap.c:1510
tap_set_state(TAP_RESET);
cmsis_dap.c:1738
tap_set_state(tap_get_end_state());
cmsis_dap.c:1809
tap_set_state(tap_state_transition(tap_get_state(), 1));
cmsis_dap.c:1819
tap_set_state(tap_state_transition(tap_get_state(), 0));
cmsis_dap.c:1860
tap_set_state(path[i]);
core.c:738
tap_set_state(TAP_RESET);
core.c:851
tap_set_state(TAP_RESET);
ftdi.c:259
tap_set_state(tap_state_transition(tap_get_state(), (tms_bits >> i) & 1));
ftdi.c:406
tap_set_state(path[state_count]);
ftdi.c:487
tap_set_state(tap_state_transition(tap_get_state(), 1));
ftdi.c:495
tap_set_state(tap_state_transition(tap_get_state(), 1));
ftdi.c:496
tap_set_state(tap_state_transition(tap_get_state(), 0));
ftdi.c:504
tap_set_state(tap_state_transition(tap_get_state(), 0));
jlink.c:214
tap_set_state(tap_state_transition(tap_get_state(), 1));
jlink.c:222
tap_set_state(tap_state_transition(tap_get_state(), 0));
jlink.c:899
tap_set_state(tap_get_end_state());
jlink.c:917
tap_set_state(path[i]);
opendous.c:297
tap_set_state(TAP_RESET);
opendous.c:419
tap_set_state(tap_get_end_state());
opendous.c:435
tap_set_state(path[i]);
opendous.c:483
tap_set_state(ir_scan ? TAP_IRPAUSE : TAP_DRPAUSE);
osbdm.c:407
tap_set_state(path[i]);
osbdm.c:448
tap_set_state(tap_get_end_state());
rlink.c:867
tap_set_state(tap_get_end_state());
rlink.c:891
tap_set_state(cmd->path[state_count]);
rlink.c:1256
tap_set_state(ir_scan ? TAP_IRPAUSE : TAP_DRPAUSE);
rlink.c:1306
tap_set_state(TAP_RESET);
ulink.c:1429
tap_set_state(tap_get_end_state());
ulink.c:1496
tap_set_state(TAP_IRSHIFT);
ulink.c:1511
tap_set_state(TAP_DRSHIFT);
ulink.c:1608
tap_set_state(cmd->cmd.scan->end_state);
ulink.c:1628
tap_set_state(TAP_RESET);
ulink.c:1681
tap_set_state(TAP_RESET);
ulink.c:1739
tap_set_state(path[state_count]);
usb_blaster.c:484
tap_set_state(cmd->path[i]);
usb_blaster.c:509
tap_set_state(state);
usb_blaster.c:763
tap_set_state(TAP_RESET);
usb_blaster.c:874
tap_set_state(TAP_RESET);
usbprog.c:100
tap_set_state(TAP_RESET);
usbprog.c:187
tap_set_state(tap_get_end_state());
usbprog.c:217
tap_set_state(cmd->path[state_count]);
usbprog.c:294
tap_set_state(TAP_IRPAUSE);
usbprog.c:296
tap_set_state(TAP_DRPAUSE);
vsllink.c:371
tap_set_state(tap_get_end_state());
vsllink.c:388
tap_set_state(path[i]);
vsllink.c:448
tap_set_state(ir_scan ? TAP_IRPAUSE : TAP_DRPAUSE);