mem_ap_setup_transfer_verify_size_packing_fallback() 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. If packing is not supported fallback and prepare CSW for unpacked transfer.
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.