![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "pdl.h"

Go to the source code of this file.
Data Structures | |
| struct | stc_dma_intern_data |
| Datatype for holding internal data needed for DMA. More... | |
| struct | stc_dma_instance_data |
| DMA instance data type. More... | |
| struct | stc_dma_config |
| DMA configuration. More... | |
Macros | |
| #define | DMA_DMACA_OFFSET 0x00ul |
| #define | DMA_DMACB_OFFSET 0x04ul |
| #define | DMA_DMASA_OFFSET 0x08ul |
| #define | DMA_DMADA_OFFSET 0x0Cul |
| #define | DMA_CHANNEL_ACTIVE 1u |
| #define | DMA_CHANNEL_INACTIVE 0u |
Typedefs | |
| typedef enum en_dma_transfermode | en_dma_transfermode_t |
| DMA transfer data width. More... | |
| typedef enum en_dma_transferwidth | en_dma_transferwidth_t |
| DMA transfer data width. More... | |
| typedef enum en_dma_idreq | en_dma_idreq_t |
| DMA IDREQ number. More... | |
| typedef struct stc_dma_intern_data | stc_dma_intern_data_t |
| Datatype for holding internal data needed for DMA. More... | |
| typedef struct stc_dma_instance_data | stc_dma_instance_data_t |
| DMA instance data type. More... | |
| typedef struct stc_dma_config | stc_dma_config_t |
| DMA configuration. More... | |
Enumerations | |
| enum | en_dma_transfermode { DmaBlockTransfer = 0, DmaBurstTransfer = 1, DmaDemandTransfer = 2 } |
| DMA transfer data width. More... | |
| enum | en_dma_transferwidth { Dma8Bit = 0, Dma16Bit = 1, Dma32Bit = 2 } |
| DMA transfer data width. More... | |
| enum | en_dma_idreq { Ep1DrqUsb0 = 0, Ep2DrqUsb0 = 1, Ep3DrqUsb0 = 2, Ep4DrqUsb0 = 3, Ep5DrqUsb0 = 4, Adc0 = 5, Adc1 = 6, Adc2 = 7, Bt0Irq0 = 8, Bt2Irq0 = 9, Bt4Irq0 = 10, Bt6Irq0 = 11, MfsRx0 = 12, MfsTx0 = 13, MfsRx1 = 14, MfsTx1 = 15, MfsRx2 = 16, MfsTx2 = 17, MfsRx3 = 18, MfsTx3 = 19, MfsRx4 = 20, MfsTx4 = 21, MfsRx5 = 22, MfsTx5 = 23, MfsRx6 = 24, MfsTx6 = 25, MfsRx7 = 26, MfsTx7 = 27, ExtIrq0 = 28, ExtIrq1 = 29, ExtIrq2 = 30, ExtIrq3 = 31, Software = 1234 } |
| DMA IDREQ number. More... | |
Functions | |
| void | DmaIrqHandler (uint8_t u8DmaChannel) |
| DMA interrupt handler. More... | |
| en_result_t | Dma_Init_Channel (volatile stc_dma_config_t *pstcConfig) |
| Initializes a DMA channel. More... | |
| en_result_t | Dma_Set_Channel (volatile stc_dma_config_t *pstcConfig) |
| Enable, disable, pause, or trigger a DMA channel via configuration. More... | |
| en_result_t | Dma_Enable (void) |
| Enable DMA globally. More... | |
| en_result_t | Dma_Disable (void) |
| Disable DMA globally. More... | |
| en_result_t | Dma_DeInit_Channel (volatile stc_dma_config_t *pstcConfig) |
| De-Initializes a DMA channel. More... | |
| en_result_t | Dma_Set_ChannelParam (uint8_t u8DmaChannel, boolean_t bEnable, boolean_t bPause, boolean_t bSoftwareTrigger) |
| Enable, disable, pause, or trigger a DMA channel via arguments. More... | |
| en_result_t | Dma_DeInit_ChannelParam (uint8_t u8DmaChannel) |
| De-Initializes a DMA channel via channel parameter. More... | |
Variables | |
| stc_dma_intern_data_t | stcDmaInternData |