| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros | Functions
pdma.h File Reference

M480 series PDMA driver header file. More...

Go to the source code of this file.

## Macros
#define | PDMA_CH_MAX
#define | PDMA_OP_STOP
#define | PDMA_OP_BASIC
#define | PDMA_OP_SCATTER
#define | PDMA_WIDTH_8
#define | PDMA_WIDTH_16
#define | PDMA_WIDTH_32
#define | PDMA_SAR_INC
#define | PDMA_SAR_FIX
#define | PDMA_DAR_INC
#define | PDMA_DAR_FIX
#define | PDMA_REQ_SINGLE
#define | PDMA_REQ_BURST
#define | PDMA_BURST_128
#define | PDMA_BURST_64
#define | PDMA_BURST_32
#define | PDMA_BURST_16
#define | PDMA_BURST_8
#define | PDMA_BURST_4
#define | PDMA_BURST_2
#define | PDMA_BURST_1
#define | PDMA_TBINTDIS_ENABLE
#define | PDMA_TBINTDIS_DISABLE
#define | PDMA_MEM
#define | PDMA_USB_TX
#define | PDMA_USB_RX
#define | PDMA_UART0_TX
#define | PDMA_UART0_RX
#define | PDMA_UART1_TX
#define | PDMA_UART1_RX
#define | PDMA_UART2_TX
#define | PDMA_UART2_RX
#define | PDMA_UART3_TX
#define | PDMA_UART3_RX
#define | PDMA_UART4_TX
#define | PDMA_UART4_RX
#define | PDMA_UART5_TX
#define | PDMA_UART5_RX
#define | PDMA_USCI0_TX
#define | PDMA_USCI0_RX
#define | PDMA_USCI1_TX
#define | PDMA_USCI1_RX
#define | PDMA_QSPI0_TX
#define | PDMA_QSPI0_RX
#define | PDMA_SPI0_TX
#define | PDMA_SPI0_RX
#define | PDMA_SPI1_TX
#define | PDMA_SPI1_RX
#define | PDMA_SPI2_TX
#define | PDMA_SPI2_RX
#define | PDMA_SPI3_TX
#define | PDMA_SPI3_RX
#define | PDMA_QSPI1_TX
#define | PDMA_QSPI1_RX
#define | PDMA_EPWM0_P1_RX
#define | PDMA_EPWM0_P2_RX
#define | PDMA_EPWM0_P3_RX
#define | PDMA_EPWM1_P1_RX
#define | PDMA_EPWM1_P2_RX
#define | PDMA_EPWM1_P3_RX
#define | PDMA_I2C0_TX
#define | PDMA_I2C0_RX
#define | PDMA_I2C1_TX
#define | PDMA_I2C1_RX
#define | PDMA_I2C2_TX
#define | PDMA_I2C2_RX
#define | PDMA_I2S0_TX
#define | PDMA_I2S0_RX
#define | PDMA_TMR0
#define | PDMA_TMR1
#define | PDMA_TMR2
#define | PDMA_TMR3
#define | PDMA_EADC0_RX
#define | PDMA_DAC0_TX
#define | PDMA_DAC1_TX
#define | PDMA_EPWM0_CH0_TX
#define | PDMA_EPWM0_CH1_TX
#define | PDMA_EPWM0_CH2_TX
#define | PDMA_EPWM0_CH3_TX
#define | PDMA_EPWM0_CH4_TX
#define | PDMA_EPWM0_CH5_TX
#define | PDMA_EPWM1_CH0_TX
#define | PDMA_EPWM1_CH1_TX
#define | PDMA_EPWM1_CH2_TX
#define | PDMA_EPWM1_CH3_TX
#define | PDMA_EPWM1_CH4_TX
#define | PDMA_EPWM1_CH5_TX
#define | PDMA_UART6_TX
#define | PDMA_UART6_RX
#define | PDMA_UART7_TX
#define | PDMA_UART7_RX
#define | PDMA_EADC1_RX
#define | PDMA_INT_TRANS_DONE
#define | PDMA_INT_TEMPTY
#define | PDMA_INT_TIMEOUT
#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...

## Detailed Description

M480 series PDMA driver header file.

Version
  V1.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file pdma.h.