adi_jtag_dp_scan() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

adi_jtag_dp_scan() function

Scan DPACC or APACC using target ordered uint8_t buffers. No endianness conversions are performed. See section 4.4.3 of the ADIv5/ADIv6 spec, which discusses operations which access these registers. Note that only one scan is performed. If rnw is set, a separate scan will be needed to collect the data which was read; the "invalue" collects the posted result of a preceding operation, not the current one.

Syntax

static int adi_jtag_dp_scan(struct adiv5_dap *dap,     uint8_t instr,     uint16_t reg_addr,     uint8_t rnw,     uint8_t *outvalue,     uint8_t *invalue,     uint32_t memaccess_tck,     uint8_t *ack);

Arguments

dap

the DAP

instr

JTAG_DP_APACC (AP access) or JTAG_DP_DPACC (DP access)

reg_addr

two significant bits; A[3:2]; for APACC access, the SELECT register has more addressing bits.

rnw

false iff outvalue will be written to the DP or AP

outvalue

points to a 32-bit (little-endian) integer

invalue

NULL, or points to a 32-bit (little-endian) integer

memaccess_tck

number of idle cycles to add after AP access

ack

points to where the three bit JTAG_ACK_* code will be stored

References

LocationReferrerText
adi_v5_jtag.c:319
static int adi_jtag_dp_scan(struct adiv5_dap *dap,
adi_v5_jtag.c:368adi_jtag_dp_scan_u32()
retval = adi_jtag_dp_scan(dap, JTAG_DP_DPACC,
adi_v5_jtag.c:378adi_jtag_dp_scan_u32()
retval = adi_jtag_dp_scan(dap, instr, reg_addr, rnw,

Call Tree

Functions calling adi_jtag_dp_scan()
Functions called by adi_jtag_dp_scan()
all items filtered out
adi_jtag_dp_scan()
Data read by adi_jtag_dp_scan()
Data written by adi_jtag_dp_scan()
adi_jtag_dp_scan()
adi_jtag_dp_scan()::cmd
adi_jtag_dp_scan()::retval
all items filtered out
Type of adi_jtag_dp_scan()
adi_jtag_dp_scan()
all items filtered out