This API copies an existing transaction instance and returns a copy of the instance with all the commands for users to save the commands and use them at a later point.
Note: The copy of the transaction instance must be explicitly freed using the XAie_FreeTransactionInstance API. If Auto flush was enabled during the creating of the initial transaction, the instance returned by this API will not have the commands that are already flushed. The transaction instance must be exported before it is submitted as the XAie_SubmitTransaction API will free all the resources associated with it.
Prototype
XAie_TxnInst * XAie_ExportTransactionInstance(XAie_DevInst *DevInst);
Parameters
The following table lists the XAie_ExportTransactionInstance
function arguments.
Type | Member | Description |
---|---|---|
XAie_DevInst * | DevInst | Device instance pointer. |
Returns
Pointer to copy of transaction instance on success andNULL
on error.