![]() |
NUC472_NUC442_BSP V3.03.003
The Board Support Package for NUC472/NUC442
|

Macros | |
| #define | PDMA_GET_INT_STATUS() |
| Get PDMA Interrupt Status. More... | |
| #define | PDMA_GET_TD_STS() |
| Get Transfer Done Interrupt Status. More... | |
| #define | PDMA_CLR_TD_FLAG(u32Mask) |
| Clear Transfer Done Interrupt Status. More... | |
| #define | PDMA_GET_ABORT_STS() |
| Get Target Abort Interrupt Status. More... | |
| #define | PDMA_CLR_ABORT_FLAG(u32Mask) |
| Clear Target Abort Interrupt Status. More... | |
| #define | PDMA_GET_EMPTY_STS() |
| Get Scatter-Gather Table Empty Interrupt Status. More... | |
| #define | PDMA_CLR_EMPTY_FLAG(u32Mask) |
| Clear Scatter-Gather Table Empty Interrupt Status. More... | |
| #define | PDMA_IS_CH_BUSY(u32Ch) |
| Check Channel Status. More... | |
| #define | PDMA_SET_SRC_ADDR(u32Ch, u32Addr) |
| Set Source Address. More... | |
| #define | PDMA_SET_DST_ADDR(u32Ch, u32Addr) |
| Set Destination Address. More... | |
| #define | PDMA_SET_TRANS_CNT(u32Ch, u32Count) |
| Set Transfer Count. More... | |
| #define | PDMA_SET_SCATTER_DESC(u32Ch, u32Addr) |
| Set Scatter-gather descriptor Address. More... | |
| #define | PDMA_STOP(u32Ch) |
| Stop the channel. More... | |
Functions | |
| void | PDMA_Open (uint32_t u32Mask) |
| PDMA Open. More... | |
| void | PDMA_Close (void) |
| PDMA Close. More... | |
| void | PDMA_SetTransferCnt (uint32_t u32Ch, uint32_t u32Width, uint32_t u32TransCount) |
| Set PDMA Transfer Count. More... | |
| void | PDMA_SetTransferAddr (uint32_t u32Ch, uint32_t u32SrcAddr, uint32_t u32SrcCtrl, uint32_t u32DstAddr, uint32_t u32DstCtrl) |
| Set PDMA Transfer Address. More... | |
| void | PDMA_SetTransferMode (uint32_t u32Ch, uint32_t u32Peripheral, uint32_t u32ScatterEn, uint32_t u32DescAddr) |
| Set PDMA Transfer Mode. More... | |
| void | PDMA_SetBurstType (uint32_t u32Ch, uint32_t u32BurstType, uint32_t u32BurstSize) |
| Set PDMA Burst Type. More... | |
| void | PDMA_Trigger (uint32_t u32Ch) |
| Trigger PDMA. More... | |
| void | PDMA_EnableInt (uint32_t u32Ch, uint32_t u32Mask) |
| Enable Interrupt. More... | |
| void | PDMA_DisableInt (uint32_t u32Ch, uint32_t u32Mask) |
| Disable Interrupt. More... | |
| #define PDMA_CLR_ABORT_FLAG | ( | u32Mask | ) |
| #define PDMA_CLR_EMPTY_FLAG | ( | u32Mask | ) |
| #define PDMA_CLR_TD_FLAG | ( | u32Mask | ) |
| #define PDMA_GET_ABORT_STS | ( | ) |
| #define PDMA_GET_EMPTY_STS | ( | ) |
| #define PDMA_GET_INT_STATUS | ( | ) |
| #define PDMA_GET_TD_STS | ( | ) |
| #define PDMA_IS_CH_BUSY | ( | u32Ch | ) |
| #define PDMA_SET_DST_ADDR | ( | u32Ch, | |
| u32Addr | |||
| ) |
| #define PDMA_SET_SCATTER_DESC | ( | u32Ch, | |
| u32Addr | |||
| ) |
| #define PDMA_SET_SRC_ADDR | ( | u32Ch, | |
| u32Addr | |||
| ) |
| #define PDMA_SET_TRANS_CNT | ( | u32Ch, | |
| u32Count | |||
| ) |
| #define PDMA_STOP | ( | u32Ch | ) |
| void PDMA_Close | ( | void | ) |
| void PDMA_DisableInt | ( | uint32_t | u32Ch, |
| uint32_t | u32Mask | ||
| ) |
| void PDMA_EnableInt | ( | uint32_t | u32Ch, |
| uint32_t | u32Mask | ||
| ) |
| void PDMA_Open | ( | uint32_t | u32Mask | ) |
| void PDMA_SetBurstType | ( | uint32_t | u32Ch, |
| uint32_t | u32BurstType, | ||
| uint32_t | u32BurstSize | ||
| ) |
| void PDMA_SetTransferAddr | ( | uint32_t | u32Ch, |
| uint32_t | u32SrcAddr, | ||
| uint32_t | u32SrcCtrl, | ||
| uint32_t | u32DstAddr, | ||
| uint32_t | u32DstCtrl | ||
| ) |
Set PDMA Transfer Address.
| [in] | u32Ch | The selected channel |
| [in] | u32SrcAddr | Source address |
| [in] | u32SrcCtrl | Source control attribute. PDMA_SAR_INC or PDMA_SAR_FIX |
| [in] | u32DstAddr | destination address |
| [in] | u32DstCtrl | destination control attribute. PDMA_DAR_INC or PDMA_DAR_FIX |
This function set the selected channel source/destination address and attribute.
| void PDMA_SetTransferCnt | ( | uint32_t | u32Ch, |
| uint32_t | u32Width, | ||
| uint32_t | u32TransCount | ||
| ) |
| void PDMA_SetTransferMode | ( | uint32_t | u32Ch, |
| uint32_t | u32Peripheral, | ||
| uint32_t | u32ScatterEn, | ||
| uint32_t | u32DescAddr | ||
| ) |
Set PDMA Transfer Mode.
| [in] | u32Ch | The selected channel |
| [in] | u32Peripheral | The selected peripheral. PDMA_SPI0_TX, PDMA_UART0_TX, PDMA_I2S_TX,...PDMA_MEM |
| [in] | u32ScatterEn | Scatter-gather mode enable |
| [in] | u32DescAddr | Scatter-gather descriptor address |
This function set the selected channel transfer mode. Include peripheral setting.