OpenOCD
svf.h File Reference
Include dependency graph for svf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int svf_add_statemove (tap_state_t goal_state)
 svf_add_statemove() moves from the current state to goal_state. More...
 
int svf_register_commands (struct command_context *cmd_ctx)
 
bool svf_tap_state_is_stable (tap_state_t state)
 svf_tap_state_is_stable() returns true for stable non-SHIFT states More...
 

Function Documentation

◆ svf_add_statemove()

int svf_add_statemove ( tap_state_t  goal_state)

svf_add_statemove() moves from the current state to goal_state.

Parameters
goal_stateThe final TAP state.
Returns
ERROR_OK on success, or an error code on failure.

The current and goal states must satisfy svf_tap_state_is_stable(). State transition paths used by this routine are those given in the SVF specification for single-argument STATE commands (and also used for various other state transitions).

Definition at line 309 of file svf.c.

References ARRAY_SIZE, cmd_queue_cur_state, ERROR_FAIL, ERROR_OK, jtag_add_pathmove(), jtag_add_tlr(), LOG_ERROR, svf_nil, svf_statemoves, TAP_RESET, tap_state_name(), and svf_statemove::to.

Referenced by COMMAND_HANDLER().

◆ svf_register_commands()

int svf_register_commands ( struct command_context cmd_ctx)

Definition at line 1553 of file svf.c.

References NULL, register_commands(), and svf_command_handlers.

Referenced by jtag_select().

◆ svf_tap_state_is_stable()

bool svf_tap_state_is_stable ( tap_state_t  state)

svf_tap_state_is_stable() returns true for stable non-SHIFT states

Parameters
stateThe TAP state in question
Returns
true iff the state is stable and not a SHIFT state.

Definition at line 732 of file svf.c.

References state, TAP_DRPAUSE, TAP_IDLE, TAP_IRPAUSE, and TAP_RESET.

Referenced by COMMAND_HANDLER().