decode the bit stream displayed by idcode into hex values automatically for the user

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1614 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 16 years ago
parent 1eef94ea87
commit 994fb1b818

@ -16,6 +16,9 @@
convert the local bits_to_uint64() to a proper urj_tap_register_get_value()
so everyone can use it
* src/tap/idcode.c: decode the bit stream into hex values so people don't
have to do this manually
2009-05-19 Arnim Laeuger <arniml>
* data/Makefile.am, data/broadcom/bcm6348/bcm6348,

@ -57,9 +57,12 @@ urj_tap_idcode (urj_chain_t *chain, unsigned int bytes)
urj_log (URJ_LOG_LEVEL_NORMAL, _("Read"));
for (i = 0; i < ((bytes) ? bytes : 1000); i++)
{
uint8_t val;
urj_tap_shift_register (chain, rz, rout, 0);
urj_log (URJ_LOG_LEVEL_NORMAL, _(" %s"),
urj_tap_register_get_string (rout));
val = urj_tap_register_get_value (rout);
urj_log (URJ_LOG_LEVEL_NORMAL, N_(" %s(0x%x%x)"),
urj_tap_register_get_string (rout),
(val >> 4) & 0xf, val & 0xf);
if (!bytes)
{
/* Abort Reading when a null IDCODE has been read */

Loading…
Cancel
Save