X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fjtag.h;h=1dae00fa31607a7a783b88a4c8ca24065444573d;hp=7253c3eaa7452d7f93906336607edcdfab484ffd;hb=814183a5c41cad14b83c29c9473084e6d1a11d9b;hpb=7556a93aed97c3fad2c0a904a115168cd3dd61a8 diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index 7253c3eaa7..1dae00fa31 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -102,7 +102,10 @@ typedef enum tap_state * Function tap_state_name * Returns a string suitable for display representing the JTAG tap_state */ -const char* tap_state_name(tap_state_t state); +const char *tap_state_name(tap_state_t state); + +/// Provides user-friendly name lookup of TAP states. +tap_state_t tap_state_by_name(const char *name); /// The current TAP state of the pending JTAG command queue. extern tap_state_t cmd_queue_cur_state;