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 trigger selection driver

CHIP: LPC11u6x DMA trigger selection driver
[CHIP: LPC11u6x DMA Controller driver]

Data Structures

struct  LPC_DMATRIGMUX_T
 DMA trigger pin muxing structure. More...

Enumerations

enum  DMA_TRIGSRC_T {
  DMATRIG_ADC0_SEQA_IRQ = 0, DMATRIG_ADC0_SEQB_IRQ, DMATRIG_CT16B0_MAT0, DMATRIG_CT16B1_MAT0,
  DMATRIG_CT32B0_MAT0, DMATRIG_CT32B1_MAT0, DMATRIG_PINT0, DMATRIG_PINT1,
  DMATRIG_SCT0_DMA0, DMATRIG_SCT0_DMA1, DMATRIG_SCT1_DMA0, DMATRIG_SCT1_DMA1
}

Functions

STATIC INLINE void Chip_DMA_SetHWTrigger (LPC_DMATRIGMUX_T *pDMATRIG, DMA_CHID_T ch, DMA_TRIGSRC_T trig)
 Select a trigger source for a DMA channel.

Enumeration Type Documentation

Enumerator:
DMATRIG_ADC0_SEQA_IRQ 

ADC0 sequencer A interrupt as trigger

DMATRIG_ADC0_SEQB_IRQ 

ADC0 sequencer B interrupt as trigger

DMATRIG_CT16B0_MAT0 

16-bit counter/timer 0 interrupt as trigger

DMATRIG_CT16B1_MAT0 

16-bit counter/timer 1 interrupt as trigger

DMATRIG_CT32B0_MAT0 

32-bit counter/timer 0 interrupt as trigger

DMATRIG_CT32B1_MAT0 

32-bit counter/timer 1 interrupt as trigger

DMATRIG_PINT0 

Pin interrupt 0 as trigger

DMATRIG_PINT1 

Pin interrupt 1 as trigger

DMATRIG_SCT0_DMA0 

SCT 0, DMA 0 as trigger

DMATRIG_SCT0_DMA1 

SCT 1, DMA 1 as trigger

DMATRIG_SCT1_DMA0 

SCT 0, DMA 0 as trigger

DMATRIG_SCT1_DMA1 

SCT 1, DMA 1 as trigger

Definition at line 445 of file dma_11u6x.h.


Function Documentation

STATIC INLINE void Chip_DMA_SetHWTrigger ( LPC_DMATRIGMUX_T pDMATRIG,
DMA_CHID_T  ch,
DMA_TRIGSRC_T  trig 
)

Select a trigger source for a DMA channel.

Parameters:
pDMATRIG: The base of DMA trigger setup block on the chip
ch: DMA channel ID
trig: Trigger source for the DMA channel
Returns:
Nothing
Note:
A DMA trigger source only needs to be setup when the DMA is setup for hardware trigger mode (when Chip_DMA_SetupChannelConfig() is called with DMA_CFG_HWTRIGEN as OR'ed option).

Definition at line 470 of file dma_11u6x.h.