103 if(u32Delay < u32Dly)
#define DAC
Pointer to DAC register structure.
void DAC_Open(DAC_T *dac, uint32_t u32Ch, uint32_t u32TrgSrc)
This function make a DAC channel ready to convert.
uint32_t CLK_GetHCLKFreq(void)
This function get HCLK frequency. The frequency unit is Hz.
Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
#define DAC_CTL_DACEN_Msk
int DAC_SetDelayTime(DAC_T *dac, uint32_t u32Delay)
Set delay time for DAC to become stable.
void DAC_Close(DAC_T *dac, uint32_t u32Ch)
Disable DAC analog power.
#define DAC_COMCTL_WAITDACCONV_Msk
#define DAC_CTL_DACPWONSTBCNT_Pos