diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-03-06 11:29:59 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-03-08 08:12:26 +0100 |
commit | 50dc56a488c6e4d5acdfd73f12e3502e1586c51e (patch) | |
tree | 4a7d9fbaa62d442eb8bb968903f85b9c0b959e31 /src/jtag/jtag.h | |
parent | 57d7743639d5092770d79f7c4b12ae694c482750 (diff) | |
download | openocd_libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.tar.gz openocd_libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.tar.bz2 openocd_libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.tar.xz openocd_libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.zip |
jtag: simplify jtag_add_plain_ir/dr_scan
These fn's now clearly just clock out/in bits. No mystical
fields are involved.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r-- | src/jtag/jtag.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index fe57db10..ae859618 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -359,12 +359,12 @@ void jtag_add_ir_scan(struct jtag_tap* tap, void jtag_add_ir_scan_noverify(struct jtag_tap* tap, const struct scan_field *fields, tap_state_t state); /** - * Duplicate the scan fields passed into the function into an IR SCAN - * command. This function assumes that the caller handles extra fields - * for bypassed TAPs. + * Scan out the bits in ir scan mode. + * + * If in_bits == NULL, discard incoming bits. */ -void jtag_add_plain_ir_scan(int num_fields, - const struct scan_field* fields, tap_state_t endstate); +void jtag_add_plain_ir_scan(int num_bits, const uint8_t *out_bits, uint8_t *in_bits, + tap_state_t endstate); /** @@ -390,12 +390,12 @@ void jtag_add_dr_scan(struct jtag_tap* tap, int num_fields, void jtag_add_dr_scan_check(struct jtag_tap* tap, int num_fields, struct scan_field* fields, tap_state_t endstate); /** - * Duplicate the scan fields passed into the function into a DR SCAN - * command. Unlike jtag_add_dr_scan(), this function assumes that the - * caller handles extra fields for bypassed TAPs. + * Scan out the bits in ir scan mode. + * + * If in_bits == NULL, discard incoming bits. */ -void jtag_add_plain_dr_scan(int num_fields, - const struct scan_field* fields, tap_state_t endstate); +void jtag_add_plain_dr_scan(int num_bits, + const uint8_t *out_bits, uint8_t *in_bits, tap_state_t endstate); /** * Defines the type of data passed to the jtag_callback_t interface. |