NANO103 BSP V3.01.004
The Board Support Package for Nano103 Series
Macros | Functions
pdma.h File Reference

NANO103 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_SPI3_TX   0x00000005UL
 
#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_SPI3_RX   0x00000015UL
 
#define PDMA_ADC   0x00000016UL
 
#define PDMA_SPI2_RX   0x00000018UL
 
#define PDMA_MEM   0x0000001FUL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW8   0x00000000UL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW9   0x00000000UL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW10   0x00000000UL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW11   0x00000000UL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW12   0x00000000UL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW13   0x00000000UL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW14   0x00000000UL
 
#define PDMA_TOC_TPSC_HCLK_DIV_2POW15   0x00000000UL
 
#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_SET_PERIODIC_CNT(u32Ch, u32Count)
 Set Periodic 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

NANO103 series PDMA driver header file.

Version
V1.00
Revision
6
Date
15/12/28 9:08a
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2015 Nuvoton Technology Corp. All rights reserved.

Definition in file pdma.h.