PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Embed: (wiki syntax)

« Back to documentation index

CHIP: LPC11u6x DMA Controller driver common functions

CHIP: LPC11u6x DMA Controller driver common functions
[CHIP: LPC11u6x DMA Controller driver]

Functions

STATIC INLINE void Chip_DMA_Init (LPC_DMA_T *pDMA)
 Initialize DMA controller.
STATIC INLINE void Chip_DMA_DeInit (LPC_DMA_T *pDMA)
 De-Initialize DMA controller.
STATIC INLINE void Chip_DMA_Enable (LPC_DMA_T *pDMA)
 Enable DMA controller.
STATIC INLINE void Chip_DMA_Disable (LPC_DMA_T *pDMA)
 Disable DMA controller.
STATIC INLINE uint32_t Chip_DMA_GetIntStatus (LPC_DMA_T *pDMA)
 Get pending interrupt or error interrupts.
STATIC INLINE void Chip_DMA_SetSRAMBase (LPC_DMA_T *pDMA, uint32_t base)
 Set DMA controller SRAM base address.
STATIC INLINE uint32_t Chip_DMA_GetSRAMBase (LPC_DMA_T *pDMA)
 Returns DMA controller SRAM base address.

Function Documentation

STATIC INLINE void Chip_DMA_DeInit ( LPC_DMA_T pDMA )

De-Initialize DMA controller.

Parameters:
pDMA: The base of DMA controller on the chip
Returns:
Nothing

Definition at line 125 of file dma_11u6x.h.

STATIC INLINE void Chip_DMA_Disable ( LPC_DMA_T pDMA )

Disable DMA controller.

Parameters:
pDMA: The base of DMA controller on the chip
Returns:
Nothing

Definition at line 146 of file dma_11u6x.h.

STATIC INLINE void Chip_DMA_Enable ( LPC_DMA_T pDMA )

Enable DMA controller.

Parameters:
pDMA: The base of DMA controller on the chip
Returns:
Nothing

Definition at line 136 of file dma_11u6x.h.

STATIC INLINE uint32_t Chip_DMA_GetIntStatus ( LPC_DMA_T pDMA )

Get pending interrupt or error interrupts.

Parameters:
pDMA: The base of DMA controller on the chip
Returns:
An Or'ed value of DMA_INTSTAT_* types
Note:
If any DMA channels have an active interrupt or error interrupt pending, this functional will a common status that applies to all channels.

Definition at line 163 of file dma_11u6x.h.

STATIC INLINE uint32_t Chip_DMA_GetSRAMBase ( LPC_DMA_T pDMA )

Returns DMA controller SRAM base address.

Parameters:
pDMA: The base of DMA controller on the chip
Returns:
The base address where the DMA descriptors are stored

Definition at line 196 of file dma_11u6x.h.

STATIC INLINE void Chip_DMA_Init ( LPC_DMA_T pDMA )

Initialize DMA controller.

Parameters:
pDMA: The base of DMA controller on the chip
Returns:
Nothing

Definition at line 114 of file dma_11u6x.h.

STATIC INLINE void Chip_DMA_SetSRAMBase ( LPC_DMA_T pDMA,
uint32_t  base 
)

Set DMA controller SRAM base address.

Parameters:
pDMA: The base of DMA controller on the chip
base: The base address where the DMA descriptors will be stored
Returns:
Nothing
Note:
A 256 byte block of memory aligned on a 256 byte boundary must be provided for this function. It sets the base address used for DMA descriptor table (16 descriptors total that use 16 bytes each).

A pre-defined table with correct alignment can be used for this function by calling Chip_DMA_SetSRAMBase(LPC_DMA, DMA_ADDR(Chip_DMA_Table));

Definition at line 186 of file dma_11u6x.h.