![]() |
M480 BSP V3.05.005
The Board Support Package for M480 Series
|
Macros | |
#define | PDMA_GET_INT_STATUS(pdma) |
Get PDMA Interrupt Status. More... | |
#define | PDMA_GET_TD_STS(pdma) |
Get Transfer Done Interrupt Status. More... | |
#define | PDMA_CLR_TD_FLAG(pdma, u32Mask) |
Clear Transfer Done Interrupt Status. More... | |
#define | PDMA_GET_ABORT_STS(pdma) |
Get Target Abort Interrupt Status. More... | |
#define | PDMA_CLR_ABORT_FLAG(pdma, u32Mask) |
Clear Target Abort Interrupt Status. More... | |
#define | PDMA_GET_ALIGN_STS(pdma) |
Get Alignment Interrupt Status. More... | |
#define | PDMA_CLR_ALIGN_FLAG(pdma, u32Mask) |
Clear Alignment Interrupt Status. More... | |
#define | PDMA_CLR_TMOUT_FLAG(pdma, u32Ch) |
Clear Timeout Interrupt Status. More... | |
#define | PDMA_IS_CH_BUSY(pdma, u32Ch) |
Check Channel Status. More... | |
#define | PDMA_SET_SRC_ADDR(pdma, u32Ch, u32Addr) |
Set Source Address. More... | |
#define | PDMA_SET_DST_ADDR(pdma, u32Ch, u32Addr) |
Set Destination Address. More... | |
#define | PDMA_SET_TRANS_CNT(pdma, u32Ch, u32TransCount) |
Set Transfer Count. More... | |
#define | PDMA_SET_SCATTER_DESC(pdma, u32Ch, u32Addr) |
Set Scatter-gather descriptor Address. More... | |
#define | PDMA_STOP(pdma, u32Ch) |
Stop the channel. More... | |
#define | PDMA_PAUSE(pdma, u32Ch) |
Pause the channel. More... | |
Functions | |
void | PDMA_Open (PDMA_T *pdma, uint32_t u32Mask) |
PDMA Open. More... | |
void | PDMA_Close (PDMA_T *pdma) |
PDMA Close. More... | |
void | PDMA_SetTransferCnt (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32Width, uint32_t u32TransCount) |
Set PDMA Transfer Count. More... | |
void | PDMA_SetTransferAddr (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32SrcAddr, uint32_t u32SrcCtrl, uint32_t u32DstAddr, uint32_t u32DstCtrl) |
Set PDMA Transfer Address. More... | |
void | PDMA_SetTransferMode (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32Peripheral, uint32_t u32ScatterEn, uint32_t u32DescAddr) |
Set PDMA Transfer Mode. More... | |
void | PDMA_SetBurstType (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32BurstType, uint32_t u32BurstSize) |
Set PDMA Burst Type and Size. More... | |
void | PDMA_EnableTimeout (PDMA_T *pdma, uint32_t u32Mask) |
Enable timeout function. More... | |
void | PDMA_DisableTimeout (PDMA_T *pdma, uint32_t u32Mask) |
Disable timeout function. More... | |
void | PDMA_SetTimeOut (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32OnOff, uint32_t u32TimeOutCnt) |
Set PDMA Timeout Count. More... | |
void | PDMA_Trigger (PDMA_T *pdma, uint32_t u32Ch) |
Trigger PDMA. More... | |
void | PDMA_EnableInt (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32Mask) |
Enable Interrupt. More... | |
void | PDMA_DisableInt (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32Mask) |
Disable Interrupt. More... | |
void | PDMA_SetStride (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32DestLen, uint32_t u32SrcLen, uint32_t u32TransCount) |
Set PDMA Stride Mode. More... | |
void | PDMA_SetRepeat (PDMA_T *pdma, uint32_t u32Ch, uint32_t u32DestInterval, uint32_t u32SrcInterval, uint32_t u32RepeatCount) |
Set PDMA Repeat. More... | |
#define PDMA_CLR_ABORT_FLAG | ( | pdma, | |
u32Mask | |||
) |
#define PDMA_CLR_ALIGN_FLAG | ( | pdma, | |
u32Mask | |||
) |
#define PDMA_CLR_TD_FLAG | ( | pdma, | |
u32Mask | |||
) |
#define PDMA_CLR_TMOUT_FLAG | ( | pdma, | |
u32Ch | |||
) |
#define PDMA_GET_ABORT_STS | ( | pdma | ) |
#define PDMA_GET_ALIGN_STS | ( | pdma | ) |
#define PDMA_GET_INT_STATUS | ( | pdma | ) |
#define PDMA_GET_TD_STS | ( | pdma | ) |
#define PDMA_IS_CH_BUSY | ( | pdma, | |
u32Ch | |||
) |
#define PDMA_PAUSE | ( | pdma, | |
u32Ch | |||
) |
#define PDMA_SET_DST_ADDR | ( | pdma, | |
u32Ch, | |||
u32Addr | |||
) |
#define PDMA_SET_SCATTER_DESC | ( | pdma, | |
u32Ch, | |||
u32Addr | |||
) |
#define PDMA_SET_SRC_ADDR | ( | pdma, | |
u32Ch, | |||
u32Addr | |||
) |
#define PDMA_SET_TRANS_CNT | ( | pdma, | |
u32Ch, | |||
u32TransCount | |||
) |
#define PDMA_STOP | ( | pdma, | |
u32Ch | |||
) |
void PDMA_Close | ( | PDMA_T * | pdma | ) |
void PDMA_DisableInt | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32Mask | ||
) |
Disable Interrupt.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel |
[in] | u32Mask | The Interrupt Type. Valid values are |
This function disable the selected channel interrupt.
void PDMA_DisableTimeout | ( | PDMA_T * | pdma, |
uint32_t | u32Mask | ||
) |
void PDMA_EnableInt | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32Mask | ||
) |
Enable Interrupt.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel |
[in] | u32Mask | The Interrupt Type. Valid values are |
This function enable the selected channel interrupt.
void PDMA_EnableTimeout | ( | PDMA_T * | pdma, |
uint32_t | u32Mask | ||
) |
void PDMA_Open | ( | PDMA_T * | pdma, |
uint32_t | u32Mask | ||
) |
void PDMA_SetBurstType | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32BurstType, | ||
uint32_t | u32BurstSize | ||
) |
Set PDMA Burst Type and Size.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel |
[in] | u32BurstType | Burst mode or single mode. Valid values are |
[in] | u32BurstSize | Set the size of burst mode. Valid values are |
This function set the selected channel burst type and size.
void PDMA_SetRepeat | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32DestInterval, | ||
uint32_t | u32SrcInterval, | ||
uint32_t | u32RepeatCount | ||
) |
Set PDMA Repeat.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel |
[in] | u32DestInterval | Destination address interval count |
[in] | u32SrcInterval | Source address interval count |
[in] | u32RepeatCount | Repeat count |
This function set the selected repeat.
void PDMA_SetStride | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32DestLen, | ||
uint32_t | u32SrcLen, | ||
uint32_t | u32TransCount | ||
) |
Set PDMA Stride Mode.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel |
[in] | u32DestLen | Destination stride count |
[in] | u32SrcLen | Source stride count |
[in] | u32TransCount | Transfer count |
This function set the selected stride mode.
void PDMA_SetTimeOut | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32OnOff, | ||
uint32_t | u32TimeOutCnt | ||
) |
Set PDMA Timeout Count.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel, |
[in] | u32OnOff | Enable/disable time out function |
[in] | u32TimeOutCnt | Timeout count |
This function set the timeout count.
void PDMA_SetTransferAddr | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32SrcAddr, | ||
uint32_t | u32SrcCtrl, | ||
uint32_t | u32DstAddr, | ||
uint32_t | u32DstCtrl | ||
) |
Set PDMA Transfer Address.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel |
[in] | u32SrcAddr | Source address |
[in] | u32SrcCtrl | Source control attribute. Valid values are |
[in] | u32DstAddr | destination address |
[in] | u32DstCtrl | destination control attribute. Valid values are |
This function set the selected channel source/destination address and attribute.
void PDMA_SetTransferCnt | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32Width, | ||
uint32_t | u32TransCount | ||
) |
Set PDMA Transfer Count.
[in] | pdma | The pointer of the specified PDMA module |
[in] | u32Ch | The selected channel |
[in] | u32Width | Data width. Valid values are |
[in] | u32TransCount | Transfer count |
This function set the selected channel data width and transfer count.
void PDMA_SetTransferMode | ( | PDMA_T * | pdma, |
uint32_t | u32Ch, | ||
uint32_t | u32Peripheral, | ||
uint32_t | u32ScatterEn, | ||
uint32_t | u32DescAddr | ||
) |
Set PDMA Transfer Mode.
This function set the selected channel transfer mode. Include peripheral setting.