| Electronic Components Datasheet Search |
|
AN3117 Datasheet(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3117 Datasheet(HTML) 13 Page - STMicroelectronics |
|
13 / 28 page ![]() AN3117 Programming the DMA using the standard peripheral library Doc ID 16846 Rev 4 13/28 Note: PPP refers to a peripheral that supports DMA transfers, such as ADC1, DAC, USARTx (x=1...3), I2C, SPIx (x=1;2), TIMx(x=1...5) and AES. 3.1.1 Configuring the DMA channels The DMA driver provides the DMA_Init() function which can be used to configure all DMA channels. DMA_Init(DMA_Channelx. /* select Channel to be configured */ DMA_Memory0BaseAddr,/* RAM memory Base Address */ DMA_PeripheralMemory1BaseAddr, /* (case1) Peripheral base address for memory to peripheral transfer (case2) Memory base address for memory to memory transfer (this feature exist only in Channel 3 */ DMA_BufferSize, /* number of transactions */ DMA_DIR, /* Direction of the transfer */ DMA_Mode, /* simple or circular transfer. */ DMA_MemoryIncMode, /* memory increment mode */ DMA_Priority, /* software priority */ DMA_MemoryDataSize ); /* number of transfers */ Table 4 describes the DMA_lnit function parameters and their corresponding parameter types. Note: Refer to the stm8l15x_dma.h file for more details about the DMA functions and their parameters. Table 4. DMA_lnit parameters Parameter name Parameter type DMA_Channelx DMA_Channel_TypeDef DMA_Memory0BaseAddr uint16_t DMA_PeripheralMemory1BaseAddr uint16_t DMA_BufferSize uint8_t DMA_DIR DMA_DIR_TypeDef DMA_Mode DMA_Mode_TypeDef DMA_MemoryIncMode DMA_MemoryIncMode_TypeDef DMA_Priority DMA_Priority_TypeDef DMA_MemoryDataSize DMA_MemoryDataSize_TypeDef |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |