mem_ap_setup_transfer_verify_size_packing() function
Queue transactions setting up transfer parameters for the currently selected MEM-AP. If transfer size or packing has not been probed, run the queue, read back CSW and check if the requested transfer mode is supported.
Arguments
size
Transfer width in bytes. Corresponding CSW.Size will be set.
address
Transfer address, MEM-AP TAR will be set to this value.
addrinc
TAR will be autoincremented.
pack
Try to setup packed transfer.
this_size
Points to a variable set to the size of single transfer or to 4 when transferring packed bytes or halfwords
Return value
ERROR_OK if the transaction was properly queued, else a fault code.