tap_state_transition() function
Function tap_state_transition takes a current TAP state and returns the next state according to the tms value.
Arguments
current_state
is the state of a TAP currently.
tms
is either zero or non-zero, just like a real TMS line in a jtag interface.
Return value
tap_state_t - the next state a TAP would enter.