uDMA Controller
23.2.1.14 ROM_uDMAChannelSizeGet
Gets the current transfer size for a uDMA channel control structure.
Prototype:
uint32_t
ROM_uDMAChannelSizeGet(uint32_t ui32ChannelStructIndex)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_UDMATABLE is an array of pointers located at ROM_APITABLE[17].
ROM_uDMAChannelSizeGet is a function pointer located at ROM_UDMATABLE[15].
Parameters:
ui32ChannelStructIndex is the logical OR of the uDMA channel number with either
UDMA_PRI_SELECT or UDMA_ALT_SELECT.
Description:
This function is used to get the uDMA transfer size for a channel. The transfer size is the
number of items to transfer, where the size of an item might be 8, 16, or 32 bits. If a partial
transfer has already occurred, then the number of remaining items is returned. If the transfer
is complete, then 0 is returned.
Returns:
Returns the number of items remaining to transfer.
23.2.1.15 ROM_uDMAChannelTransferSet
Sets the transfer parameters for a uDMA channel control structure.
Prototype:
void
ROM_uDMAChannelTransferSet(uint32_t ui32ChannelStructIndex,
uint32_t ui32Mode,
void
*
pvSrcAddr,
void
*
pvDstAddr,
uint32_t ui32TransferSize)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_UDMATABLE is an array of pointers located at ROM_APITABLE[17].
ROM_uDMAChannelTransferSet is a function pointer located at ROM_UDMATABLE[0].
Parameters:
ui32ChannelStructIndex is the logical OR of the uDMA channel number with either
UDMA_PRI_SELECT or UDMA_ALT_SELECT.
ui32Mode is the type of uDMA transfer.
pvSrcAddr is the source address for the transfer.
pvDstAddr is the destination address for the transfer.
ui32TransferSize is the number of data items to transfer.
290 April 8, 2013