NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
GPDMA_Channel_CFG_Type Struct Reference
[GPDMA_Public_Types]
GPDMA Channel configuration structure type definition. More...
#include <lpc17xx_gpdma.h>
Data Fields | |
uint32_t | ChannelNum |
DMA channel number, should be in range from 0 to 7. | |
uint32_t | TransferSize |
Length/Size of transfer. | |
uint32_t | TransferWidth |
Transfer width - used for TransferType is GPDMA_TRANSFERTYPE_M2M only. | |
uint32_t | SrcMemAddr |
Physical Source Address, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_M2M or GPDMA_TRANSFERTYPE_M2P. | |
uint32_t | DstMemAddr |
Physical Destination Address, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_M2M or GPDMA_TRANSFERTYPE_P2M. | |
uint32_t | TransferType |
Transfer Type, should be one of the following:
| |
uint32_t | SrcConn |
Peripheral Source Connection type, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_P2M or GPDMA_TRANSFERTYPE_P2P, should be one of following:
| |
uint32_t | DstConn |
Peripheral Destination Connection type, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_M2P or GPDMA_TRANSFERTYPE_P2P, should be one of following:
| |
uint32_t | DMALLI |
Linker List Item structure data address if there's no Linker List, set as '0'. |
Detailed Description
GPDMA Channel configuration structure type definition.
Definition at line 165 of file lpc17xx_gpdma.h.
Field Documentation
uint32_t ChannelNum |
DMA channel number, should be in range from 0 to 7.
Note: DMA channel 0 has the highest priority and DMA channel 7 the lowest priority.
Definition at line 166 of file lpc17xx_gpdma.h.
uint32_t DMALLI |
Linker List Item structure data address if there's no Linker List, set as '0'.
Definition at line 223 of file lpc17xx_gpdma.h.
uint32_t DstConn |
Peripheral Destination Connection type, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_M2P or GPDMA_TRANSFERTYPE_P2P, should be one of following:
- GPDMA_CONN_SSP0_Tx: SSP0, Tx
- GPDMA_CONN_SSP0_Rx: SSP0, Rx
- GPDMA_CONN_SSP1_Tx: SSP1, Tx
- GPDMA_CONN_SSP1_Rx: SSP1, Rx
- GPDMA_CONN_ADC: ADC
- GPDMA_CONN_I2S_Channel_0: I2S Channel 0
- GPDMA_CONN_I2S_Channel_1: I2S Channel 1
- GPDMA_CONN_DAC: DAC
- GPDMA_CONN_UART0_Tx_MAT0_0: UART0 Tx / MAT0.0
- GPDMA_CONN_UART0_Rx_MAT0_1: UART0 Rx / MAT0.1
- GPDMA_CONN_UART1_Tx_MAT1_0: UART1 Tx / MAT1.0
- GPDMA_CONN_UART1_Rx_MAT1_1: UART1 Rx / MAT1.1
- GPDMA_CONN_UART2_Tx_MAT2_0: UART2 Tx / MAT2.0
- GPDMA_CONN_UART2_Rx_MAT2_1: UART2 Rx / MAT2.1
- GPDMA_CONN_UART3_Tx_MAT3_0: UART3 Tx / MAT3.0
- GPDMA_CONN_UART3_Rx_MAT3_1: UART3 Rx / MAT3.1.
Definition at line 203 of file lpc17xx_gpdma.h.
uint32_t DstMemAddr |
Physical Destination Address, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_M2M or GPDMA_TRANSFERTYPE_P2M.
Definition at line 175 of file lpc17xx_gpdma.h.
uint32_t SrcConn |
Peripheral Source Connection type, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_P2M or GPDMA_TRANSFERTYPE_P2P, should be one of following:
- GPDMA_CONN_SSP0_Tx: SSP0, Tx
- GPDMA_CONN_SSP0_Rx: SSP0, Rx
- GPDMA_CONN_SSP1_Tx: SSP1, Tx
- GPDMA_CONN_SSP1_Rx: SSP1, Rx
- GPDMA_CONN_ADC: ADC
- GPDMA_CONN_I2S_Channel_0: I2S Channel 0
- GPDMA_CONN_I2S_Channel_1: I2S Channel 1
- GPDMA_CONN_DAC: DAC
- GPDMA_CONN_UART0_Tx_MAT0_0: UART0 Tx / MAT0.0
- GPDMA_CONN_UART0_Rx_MAT0_1: UART0 Rx / MAT0.1
- GPDMA_CONN_UART1_Tx_MAT1_0: UART1 Tx / MAT1.0
- GPDMA_CONN_UART1_Rx_MAT1_1: UART1 Rx / MAT1.1
- GPDMA_CONN_UART2_Tx_MAT2_0: UART2 Tx / MAT2.0
- GPDMA_CONN_UART2_Rx_MAT2_1: UART2 Rx / MAT2.1
- GPDMA_CONN_UART3_Tx_MAT3_0: UART3 Tx / MAT3.0
- GPDMA_CONN_UART3_Rx_MAT3_1: UART3 Rx / MAT3.1.
Definition at line 183 of file lpc17xx_gpdma.h.
uint32_t SrcMemAddr |
Physical Source Address, used in case TransferType is chosen as GPDMA_TRANSFERTYPE_M2M or GPDMA_TRANSFERTYPE_M2P.
Definition at line 173 of file lpc17xx_gpdma.h.
uint32_t TransferSize |
Length/Size of transfer.
Definition at line 171 of file lpc17xx_gpdma.h.
uint32_t TransferType |
Transfer Type, should be one of the following:
- GPDMA_TRANSFERTYPE_M2M: Memory to memory - DMA control
- GPDMA_TRANSFERTYPE_M2P: Memory to peripheral - DMA control
- GPDMA_TRANSFERTYPE_P2M: Peripheral to memory - DMA control
- GPDMA_TRANSFERTYPE_P2P: Source peripheral to destination peripheral - DMA control.
Definition at line 177 of file lpc17xx_gpdma.h.
uint32_t TransferWidth |
Transfer width - used for TransferType is GPDMA_TRANSFERTYPE_M2M only.
Definition at line 172 of file lpc17xx_gpdma.h.
Generated on Tue Jul 12 2022 17:06:03 by 1.7.2