LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gpdma_18xx_43xx.h File Reference
#include "chip.h"

Go to the source code of this file.

Data Structures

struct  DMA_ChannelHandle_t
 

Macros

#define GPDMA_NUMBER_CHANNELS   8
 
#define GPDMA_CONN_MEMORY   ((0UL))
 
#define GPDMA_CONN_MAT0_0   ((1UL))
 
#define GPDMA_CONN_UART0_Tx   ((2UL))
 
#define GPDMA_CONN_MAT0_1   ((3UL))
 
#define GPDMA_CONN_UART0_Rx   ((4UL))
 
#define GPDMA_CONN_MAT1_0   ((5UL))
 
#define GPDMA_CONN_UART1_Tx   ((6UL))
 
#define GPDMA_CONN_MAT1_1   ((7UL))
 
#define GPDMA_CONN_UART1_Rx   ((8UL))
 
#define GPDMA_CONN_MAT2_0   ((9UL))
 
#define GPDMA_CONN_UART2_Tx   ((10UL))
 
#define GPDMA_CONN_MAT2_1   ((11UL))
 
#define GPDMA_CONN_UART2_Rx   ((12UL))
 
#define GPDMA_CONN_MAT3_0   ((13UL))
 
#define GPDMA_CONN_UART3_Tx   ((14UL))
 
#define GPDMA_CONN_SCT_0   ((15UL))
 
#define GPDMA_CONN_MAT3_1   ((16UL))
 
#define GPDMA_CONN_UART3_Rx   ((17UL))
 
#define GPDMA_CONN_SCT_1   ((18UL))
 
#define GPDMA_CONN_SSP0_Rx   ((19UL))
 
#define GPDMA_CONN_I2S_Tx_Channel_0   ((20UL))
 
#define GPDMA_CONN_SSP0_Tx   ((21UL))
 
#define GPDMA_CONN_I2S_Rx_Channel_1   ((22UL))
 
#define GPDMA_CONN_SSP1_Rx   ((23UL))
 
#define GPDMA_CONN_SSP1_Tx   ((24UL))
 
#define GPDMA_CONN_ADC_0   ((25UL))
 
#define GPDMA_CONN_ADC_1   ((26UL))
 
#define GPDMA_CONN_DAC   ((27UL))
 
#define GPDMA_CONN_I2S_Tx_Channel_1   ((28UL))
 
#define GPDMA_CONN_I2S_Rx_Channel_0   ((29UL))
 
#define GPDMA_BSIZE_1   ((0UL))
 
#define GPDMA_BSIZE_4   ((1UL))
 
#define GPDMA_BSIZE_8   ((2UL))
 
#define GPDMA_BSIZE_16   ((3UL))
 
#define GPDMA_BSIZE_32   ((4UL))
 
#define GPDMA_BSIZE_64   ((5UL))
 
#define GPDMA_BSIZE_128   ((6UL))
 
#define GPDMA_BSIZE_256   ((7UL))
 
#define GPDMA_WIDTH_BYTE   ((0UL))
 
#define GPDMA_WIDTH_HALFWORD   ((1UL))
 
#define GPDMA_WIDTH_WORD   ((2UL))
 
#define DMA_CONTROLLER   0
 
#define SRC_PER_CONTROLLER   1
 
#define DST_PER_CONTROLLER   2
 
#define Chip_GPDMA_IntGetStatus(type, channel)   IP_GPDMA_IntGetStatus(LPC_GPDMA, type, channel)
 
#define Chip_GPDMA_ClearIntPending(type, channel)   IP_GPDMA_ClearIntPending(LPC_GPDMA, type, channel)
 
#define Chip_GPDMA_ChannelCmd(channelNum, NewState)   IP_GPDMA_ChannelCmd(LPC_GPDMA, channelNum, NewState)
 

Functions

void Chip_GPDMA_Init (void)
 Initialize the GPDMA.
 
void Chip_DMA_Stop (uint8_t ChannelNum)
 Stop a stream DMA transfer.
 
Status Chip_DMA_Interrupt (uint8_t ChannelNum)
 The GPDMA stream interrupt status checking.
 
uint8_t Chip_DMA_GetFreeChannel (uint32_t PeripheralConnection_ID)
 Get a free GPDMA channel for one DMA connection.
 
void Chip_DMA_Transfer (uint8_t ChannelNum, uint32_t src, uint32_t dst, FlowControlType TransferType, uint32_t Size)
 Do a DMA transfer M2M, M2P,P2M or P2P.