38 #if defined(VDAC_COUNT) && (VDAC_COUNT > 0)
97 #define VDAC_REF_VALID(ref) ((ref) == VDAC0)
193 #define VDAC_INIT_DEFAULT \
230 #define VDAC_INITCHANNEL_DEFAULT \
244 unsigned int channel,
387 uint32_t ien = vdac->
IEN;
390 return vdac->
IF & ien;
409 uint32_t
VDAC_PrescaleCalc(uint32_t vdacFreq,
bool syncMode, uint32_t hfperFreq);
#define _VDAC_CH0CTRL_TRIGMODE_SWREFRESH
#define _VDAC_CH0CTRL_PRSSEL_PRSCH8
Emlib peripheral API "assert" implementation.
#define _VDAC_CH0CTRL_PRSSEL_PRSCH11
#define _VDAC_CTRL_REFRESHPERIOD_8CYCLES
#define _VDAC_CTRL_REFSEL_2V5LN
#define _VDAC_CH0CTRL_TRIGMODE_REFRESH
#define _VDAC_CH0CTRL_TRIGMODE_PRS
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
void VDAC_Init(VDAC_TypeDef *vdac, const VDAC_Init_TypeDef *init)
Initialize VDAC.
__STATIC_INLINE void VDAC_IntDisable(VDAC_TypeDef *vdac, uint32_t flags)
Disable one or more VDAC interrupts.
#define _VDAC_CH0CTRL_PRSSEL_PRSCH9
#define _VDAC_CH0CTRL_PRSSEL_PRSCH4
VDAC_Ref_TypeDef reference
#define _VDAC_CH1DATA_MASK
#define _VDAC_CTRL_REFSEL_2V5
VDAC_PrsSel_TypeDef prsSel
#define _VDAC_CH0CTRL_TRIGMODE_SWPRS
#define _VDAC_CH0CTRL_PRSSEL_PRSCH7
__STATIC_INLINE void VDAC_IntClear(VDAC_TypeDef *vdac, uint32_t flags)
Clear one or more pending VDAC interrupts.
void VDAC_InitChannel(VDAC_TypeDef *vdac, const VDAC_InitChannel_TypeDef *init, unsigned int ch)
Initialize a VDAC channel.
void VDAC_ChannelOutputSet(VDAC_TypeDef *vdac, unsigned int channel, uint32_t value)
Set the output signal of a VDAC channel to a given value.
__STATIC_INLINE uint32_t VDAC_IntGet(VDAC_TypeDef *vdac)
Get pending VDAC interrupt flags.
#define _VDAC_CH0CTRL_TRIGMODE_LESENSE
#define _VDAC_CTRL_REFRESHPERIOD_16CYCLES
#define _VDAC_CTRL_REFSEL_EXT
#define _VDAC_CH0CTRL_PRSSEL_PRSCH3
#define _VDAC_CTRL_REFRESHPERIOD_64CYCLES
#define _VDAC_CH0CTRL_PRSSEL_PRSCH5
#define _VDAC_CH0DATA_MASK
#define _VDAC_CTRL_REFSEL_1V25LN
void VDAC_Reset(VDAC_TypeDef *vdac)
Reset VDAC to same state as after a HW reset.
uint32_t VDAC_PrescaleCalc(uint32_t vdacFreq, bool syncMode, uint32_t hfperFreq)
Calculate prescaler value used to determine VDAC clock.
#define _VDAC_CTRL_REFSEL_VDD
#define _VDAC_CH0CTRL_PRSSEL_PRSCH1
__STATIC_INLINE void VDAC_Channel0OutputSet(VDAC_TypeDef *vdac, uint32_t value)
Set the output signal of VDAC channel 0 to a given value.
__STATIC_INLINE void VDAC_IntSet(VDAC_TypeDef *vdac, uint32_t flags)
Set one or more pending VDAC interrupts from SW.
void VDAC_Enable(VDAC_TypeDef *vdac, unsigned int ch, bool enable)
Enable/disable VDAC channel.
#define _VDAC_CH0CTRL_TRIGMODE_SW
__STATIC_INLINE void VDAC_Channel1OutputSet(VDAC_TypeDef *vdac, uint32_t value)
Set the output signal of VDAC channel 1 to a given value.
#define _VDAC_CH0CTRL_PRSSEL_PRSCH0
__STATIC_INLINE uint32_t VDAC_IntGetEnabled(VDAC_TypeDef *vdac)
Get enabled and pending VDAC interrupt flags. Useful for handling more interrupt sources in the same ...
#define _VDAC_CH0CTRL_PRSSEL_PRSCH10
#define _VDAC_CH0CTRL_PRSSEL_PRSCH6
#define _VDAC_CTRL_REFRESHPERIOD_32CYCLES
#define _VDAC_CH0CTRL_PRSSEL_PRSCH2
VDAC_Refresh_TypeDef refresh
VDAC_TrigMode_TypeDef trigMode
__STATIC_INLINE void VDAC_IntEnable(VDAC_TypeDef *vdac, uint32_t flags)
Enable one or more VDAC interrupts.
#define _VDAC_CTRL_REFSEL_1V25