NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
Macros | Functions
pdma.h File Reference

Nano100 series PDMA driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PDMA_WIDTH_8   0x00080000UL
 
#define PDMA_WIDTH_16   0x00100000UL
 
#define PDMA_WIDTH_32   0x00000000UL
 
#define PDMA_SAR_INC   0x00000000UL
 
#define PDMA_SAR_FIX   0x00000020UL
 
#define PDMA_SAR_WRA   0x00000030UL
 
#define PDMA_DAR_INC   0x00000000UL
 
#define PDMA_DAR_FIX   0x00000080UL
 
#define PDMA_DAR_WRA   0x000000C0UL
 
#define PDMA_SPI0_TX   0x00000000UL
 
#define PDMA_SPI1_TX   0x00000001UL
 
#define PDMA_UART0_TX   0x00000002UL
 
#define PDMA_UART1_TX   0x00000003UL
 
#define PDMA_USB_TX   0x00000004UL
 
#define PDMA_I2S_TX   0x00000005UL
 
#define PDMA_DAC0_TX   0x00000006UL
 
#define PDMA_DAC1_TX   0x00000007UL
 
#define PDMA_SPI2_TX   0x00000008UL
 
#define PDMA_TMR0   0x00000009UL
 
#define PDMA_TMR1   0x0000000AUL
 
#define PDMA_TMR2   0x0000000BUL
 
#define PDMA_TMR3   0x0000000CUL
 
#define PDMA_SPI0_RX   0x00000010UL
 
#define PDMA_SPI1_RX   0x00000011UL
 
#define PDMA_UART0_RX   0x00000012UL
 
#define PDMA_UART1_RX   0x00000013UL
 
#define PDMA_USB_RX   0x00000014UL
 
#define PDMA_I2S_RX   0x00000015UL
 
#define PDMA_ADC   0x00000016UL
 
#define PDMA_SPI2_RX   0x00000018UL
 
#define PDMA_PWM0_CH0   0x00000019UL
 
#define PDMA_PWM0_CH2   0x0000001AUL
 
#define PDMA_PWM1_CH0   0x0000001BUL
 
#define PDMA_PWM1_CH2   0x0000001CUL
 
#define PDMA_MEM   0x0000001FUL
 
#define PDMA_GET_INT_STATUS()
 Get PDMA Interrupt Status. More...
 
#define PDMA_GET_CH_INT_STS(u32Ch)
 Get PDMA Channel Interrupt Status. More...
 
#define PDMA_CLR_CH_INT_FLAG(u32Ch, u32Mask)
 Clear PDMA Channel Interrupt Flag. 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_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_SetTimeOut (uint32_t u32Ch, uint32_t u32OnOff, uint32_t u32TimeOutCnt)
 Set PDMA Timeout. 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...
 

Detailed Description

Nano100 series PDMA driver header file.

Version
V1.00
Revision
9
Date
15/06/10 4:52p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.

Definition in file pdma.h.