uDMA driver implementation for MSP432E4.
============================================================================
This driver is intended for use only by drivers that use the uDMA peripheral (e.g., SPI). This driver is mainly used for management of the control table base address of the UDMA peripheral, and to create the DMA error Hwi.
The application should only define the memory for the control table and set up the UDMAMSP432E4_HWAttrs and UDMAMSP432E4_Config structures.
The UDMAMSP432E4 header file should be included in an application as follows:
#include <stdbool.h>
#include <stdint.h>
#include <ti/drivers/dpl/HwiP.h>
Go to the source code of this file.
Data Structures | |
struct | UDMAMSP432E4_HWAttrs |
UDMAMSP432E4 Hardware attributes. More... | |
struct | UDMAMSP432E4_Config |
UDMAMSP432E4 Global configuration. More... | |
struct | UDMAMSP432E4_Object |
UDMAMSP432E4 object. More... | |
Typedefs | |
typedef void(* | UDMAMSP432E4_ErrorFxn) (uintptr_t arg) |
UDMA error function pointer. More... | |
typedef UDMAMSP432E4_Config * | UDMAMSP432E4_Handle |
A handle that is returned from a UDMAMSP432E4_open() call. More... | |
Functions | |
void | UDMAMSP432E4_close (UDMAMSP432E4_Handle handle) |
Function to close the DMA driver. More... | |
void | UDMAMSP432E4_init () |
Function to initialize the MSP432E4 DMA driver. More... | |
UDMAMSP432E4_Handle | UDMAMSP432E4_open () |
Function to initialize the MSP432E4 DMA peripheral. More... | |
typedef void(* UDMAMSP432E4_ErrorFxn) (uintptr_t arg) |
UDMA error function pointer.
typedef UDMAMSP432E4_Config* UDMAMSP432E4_Handle |
A handle that is returned from a UDMAMSP432E4_open() call.
void UDMAMSP432E4_close | ( | UDMAMSP432E4_Handle | handle | ) |
Function to close the DMA driver.
Close a DMA handle returned from UDMAMSP432E4_open().
handle | A UDMAMSP432E4_Handle returned from UDMAMSP432E4_open() |
void UDMAMSP432E4_init | ( | ) |
Function to initialize the MSP432E4 DMA driver.
The function should be called prior to opening the DMA driver.
UDMAMSP432E4_Handle UDMAMSP432E4_open | ( | ) |
Function to initialize the MSP432E4 DMA peripheral.
UDMAMSP432E4_open() can be called multiple times. *