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

Macros | Functions
dac.h File Reference

M480 series DAC driver header file. More...

Go to the source code of this file.

## Macros
#define | DAC_CTL_LALIGN_RIGHT_ALIGN
#define | DAC_CTL_LALIGN_LEFT_ALIGN
#define | DAC_WRITE_DAT_TRIGGER
#define | DAC_SOFTWARE_TRIGGER
#define | DAC_LOW_LEVEL_TRIGGER
#define | DAC_HIGH_LEVEL_TRIGGER
#define | DAC_FALLING_EDGE_TRIGGER
#define | DAC_RISING_EDGE_TRIGGER
#define | DAC_TIMER0_TRIGGER
#define | DAC_TIMER1_TRIGGER
#define | DAC_TIMER2_TRIGGER
#define | DAC_TIMER3_TRIGGER
#define | DAC_EPWM0_TRIGGER
#define | DAC_EPWM1_TRIGGER
#define | DAC_TRIGGER_MODE_DISABLE
#define | DAC_TRIGGER_MODE_ENABLE
#define | DAC_START_CONV(dac)
| Start the D/A conversion. More...
#define | DAC_ENABLE_LEFT_ALIGN(dac)
| Enable DAC data left-aligned. More...
#define | DAC_ENABLE_RIGHT_ALIGN(dac)
| Enable DAC data right-aligned. More...
#define | DAC_ENABLE_BYPASS_BUFFER(dac)
| Enable output voltage buffer. More...
#define | DAC_DISABLE_BYPASS_BUFFER(dac)
| Disable output voltage buffer. More...
#define | DAC_ENABLE_INT(dac, u32Ch)
| Enable the interrupt. More...
#define | DAC_DISABLE_INT(dac, u32Ch)
| Disable the interrupt. More...
#define | DAC_ENABLE_DMAUDR_INT(dac)
| Enable DMA under-run interrupt. More...
#define | DAC_DISABLE_DMAUDR_INT(dac)
| Disable DMA under-run interrupt. More...
#define | DAC_ENABLE_PDMA(dac)
| Enable PDMA mode. More...
#define | DAC_DISABLE_PDMA(dac)
| Disable PDMA mode. More...
#define | DAC_WRITE_DATA(dac, u32Ch, u32Data)
| Write data for conversion. More...
#define | DAC_READ_DATA(dac, u32Ch)
| Read DAC 12-bit holding data. More...
#define | DAC_IS_BUSY(dac, u32Ch)
| Get the busy state of DAC. More...
#define | DAC_GET_INT_FLAG(dac, u32Ch)
| Get the interrupt flag. More...
#define | DAC_GET_DMAUDR_FLAG(dac)
| Get the DMA under-run flag. More...
#define | DAC_CLR_INT_FLAG(dac, u32Ch)
| This macro clear the interrupt status bit. More...
#define | DAC_CLR_DMAUDR_FLAG(dac)
| This macro clear the DMA under-run flag. More...
#define | DAC_ENABLE_GROUP_MODE(dac)
| Enable DAC group mode. More...
#define | DAC_DISABLE_GROUP_MODE(dac)
| Disable DAC group mode. More...

## Functions
void | DAC_Open (DAC_T *dac, uint32_t u32Ch, uint32_t u32TrgSrc)
| This function make DAC module be ready to convert. More...
void | DAC_Close (DAC_T *dac, uint32_t u32Ch)
| Disable DAC analog power. More...
uint32_t | DAC_SetDelayTime (DAC_T *dac, uint32_t u32Delay)
| Set delay time for DAC to become stable. More...

## Detailed Description

M480 series DAC 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 dac.h.