MSPM0G1X0X_G3X0X TI-Driver Library  1.20.01.06
Data Structures | Macros | Typedefs | Functions | Variables
DMAMSPM0.h File Reference

Detailed Description

DMA driver implementation for MSPM0.


#include <stdbool.h>
#include <stdint.h>
#include <ti/driverlib/dl_dma.h>
#include <ti/drivers/dpl/HwiP.h>
Include dependency graph for DMAMSPM0.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DMAMSPM0_HWAttrs
 DMAMSPM0 Hardware attributes. More...
 
struct  DMAMSPM0_Transfer
 DMAMSPM0 channel based Transfer configuration. More...
 
struct  DMAMSPM0_Object
 DMAMSPM0 object. More...
 
struct  DMAMSPM0_Cfg
 DMAMSPM0 Global configuration. More...
 

Macros

#define NUM_DMA_CHANNELS   (DMA_SYS_N_DMA_CHANNEL)
 Number of DMA channels supported by Device. The same can be used to define the number of interrupts. More...
 

Typedefs

typedef void(* DMAMSPM0_IsrFxn) (uintptr_t arg)
 DMA error function pointers.
 
typedef DMAMSPM0_CfgDMAMSPM0_Handle
 A handle that is returned from a DMAMSPM0_open() call.
 

Functions

void DMAMSPM0_close (DMA_Regs *handle, uint8_t channelNum)
 Function to close the DMA channel. More...
 
bool DMAMSPM0_init (void)
 Function to initialize the MSPM0 DMA driver. More...
 
DMAMSPM0_Handle DMAMSPM0_open (uint_least8_t index, uint8_t channelNum)
 Function to initialize the MSPM0 DMA peripheral and corresponding interrupt. More...
 
bool DMAMSPM0_setupTransfer (DMAMSPM0_Transfer *transfer, DL_DMA_Config *DMACfg)
 Function to set up a DMA channel for data transfer. More...
 
DMAMSPM0_Handle DMA_Init (DMAMSPM0_Transfer *dmaParams, DL_DMA_Config *DMACfg, uint8_t noOfChs)
 One Function that initialize DMA by calling all needed functions in sequence. User may call this function to initialize DMA without calling other needed functions separately. More...
 
void DMAMSPM0_disableChannel (DMAMSPM0_Handle handle, uint8_t dmaChannel)
 This function will disable the channel and related flags. More...
 
uint16_t DMAMSPM0_getCurrTransferSize (uint8_t dmaChannel)
 This function will return the DMA transfer size in bytes for given channel. More...
 
void DMA_Params_init (DMAMSPM0_Transfer *params)
 This function will initialize the default params. More...
 
void DMAMSPM0_copyDMAParams (DMAMSPM0_Transfer *dmaParams, DL_DMA_Config *dmaConfig)
 This function will extract parameters from DMA Config struct to DMA Transfer struct. More...
 

Variables

const DMAMSPM0_Cfg DMAMSPM0_Config []
 Instance of a DMA Config structure.
 
const uint_least8_t DMA_Count
 Number of DMA channels.
 
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale