2.30 Direct Memory Access Controller (DMAC)
This Plib implements software abstraction for DMAC Peripheral.
Library Interface
Direct Memory Access Controller peripheral library provides the following interfaces:
Functions
Name | Description |
---|---|
DMAC_Initialize | This function initializes the DMAC controller of the device |
DMAC_ChannelCallbackRegister | This function allows a DMAC PLIB client to set an event handler |
DMAC_ChannelTransfer | Schedules a DMA transfer on the specified DMA channel |
DMAC_ChainTransferSetup | Setup a DMA channel for chain transfer |
DMAC_ChannelPatternMatchSetup | Sets up DMA channel for pattern matching |
DMAC_ChannelPatternMatchDisable | Disables the DMA pattern matching |
DMAC_ChannelDisable | This function disables the DMA channel |
DMAC_ChannelIsBusy | Reads the busy status of a channel |
DMAC_ChannelTransferStatusGet | Returns the DMA channel's transfer status |
DMAC_ChannelGetTransferredCount | Returns transfer count of the ongoing DMAC transfer |
DMAC_ChannelSuspend | This function Suspends the DMA channel |
DMAC_ChannelResume | This function Resumes the DMA channel |
DMAC_ChannelCRCSetup | DMA Channel CRC setup and enable function |
DMAC_LinkedListDescriptorSetup | Sets up linked list descriptor |
DMAC_ChannelLinkedListTransfer | The function submit a list of DMA transfers |
DMAC_ChannelSettingsGet | Returns the current channel settings for the specified DMAC Channel |
DMAC_ChannelSettingsSet | Changes the current transfer settings of the specified DMAC channel |
DMAC_ChannelCRCSetup | DMA Channel CRC setup and enable function |
DMAC_CRCDisable | DMA CRC disable function |
DMAC_CRCRead | DMA CRC read function |
DMAC_CRCCalculate | Function to calculate CRC using I/O Interface |
Data types and constants
Name | Type | Description |
---|---|---|
DMAC_ERROR | Enum | Identifies the available DMA operating modes |
DMAC_TRANSFER_EVENT | Enum | Identifies the status of the transfer event |
DMAC_DATA_PATTERN_SIZE | Enum | Identifies the pattern size for data matching |
DMAC_CHANNEL_CALLBACK | Typedef | Pointer to a DMAC Transfer Event handler function |
DMAC_CHANNEL_CONFIG | Typedef | DMAC Block Transfer Control configuration value |
DMAC_CHANNEL | Enum | Fundamental data object that represents DMA channel number |
DMAC_CRC_POLYNOMIAL_TYPE | Enum | Enumeration of Supported CRC polynomials |
DMAC_CRC_BEAT_SIZE | Enum | Enumeration of Supported CRC Beat Size |
DMAC_CRC_MODE | Enum | Enumeration of Supported CRC modes |
DMAC_CRC_SETUP | Struct | Fundamental data object that represents DMA CRC setup parameters |
Note: Not all APIs maybe implemented. See the specific device
family section for available APIs.