dap_queue_read_reg() function
Helper to read CoreSight component's registers, either on the bus behind a MEM-AP or directly in the AP.
Arguments
mode
Method to access the component (AP or MEM-AP).
ap
Pointer to AP containing the component.
component_base
On MEM-AP access method, base address of the component.
reg
Offset of the component's register to read.
value
Pointer to the store the read value.
Return value
ERROR_OK on success, else a fault code.