38 #if defined(IDAC_COUNT) && (IDAC_COUNT > 0)
84 #define IDAC_REF_VALID(ref) ((ref) == IDAC0)
95 #if defined( _IDAC_CTRL_OUTMODE_MASK )
96 idacOutputPin = IDAC_CTRL_OUTMODE_PIN,
97 idacOutputADC = IDAC_CTRL_OUTMODE_ADC
98 #elif ( _IDAC_CTRL_APORTOUTSEL_MASK )
143 #if defined( IDAC_CTRL_PRSSEL_PRSCH4 )
147 #if defined( IDAC_CTRL_PRSSEL_PRSCH6 )
199 #if defined( _IDAC_CTRL_OUTMODE_MASK )
200 #define IDAC_INIT_DEFAULT \
208 #elif ( _IDAC_CTRL_APORTOUTSEL_MASK )
209 #define IDAC_INIT_DEFAULT \
212 idacOutputAPORT1XCH0, \
234 #if defined( _IDAC_IEN_MASK )
339 return idac->
IF & ien;
#define IDAC_CTRL_PRSSEL_PRSCH1
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH19
#define IDAC_CTRL_PRSSEL_PRSCH0
__STATIC_INLINE void IDAC_IntDisable(IDAC_TypeDef *idac, uint32_t flags)
Disable one or more IDAC interrupts.
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH24
IDAC_PRSSEL_TypeDef prsSel
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH6
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH18
#define IDAC_CTRL_PRSSEL_PRSCH11
#define IDAC_CTRL_PRSSEL_PRSCH10
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH28
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH4
#define IDAC_CTRL_PRSSEL_PRSCH9
#define IDAC_CTRL_PRSSEL_PRSCH7
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH11
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH23
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH0
#define IDAC_CTRL_PRSSEL_PRSCH6
#define IDAC_CURPROG_RANGESEL_RANGE3
void IDAC_Enable(IDAC_TypeDef *idac, bool enable)
Enable/disable IDAC.
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH21
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH5
__STATIC_INLINE uint32_t IDAC_IntGet(IDAC_TypeDef *idac)
Get pending IDAC interrupt flags.
__STATIC_INLINE uint32_t IDAC_IntGetEnabled(IDAC_TypeDef *idac)
Get enabled and pending IDAC interrupt flags. Useful for handling more interrupt sources in the same ...
#define IDAC_CURPROG_RANGESEL_RANGE2
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH22
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH15
void IDAC_MinimalOutputTransitionMode(IDAC_TypeDef *idac, bool enable)
Enable/disable Minimal Output Transition mode.
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH26
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH7
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH30
void IDAC_RangeSet(IDAC_TypeDef *idac, const IDAC_Range_TypeDef range)
Set the current range of the IDAC output.
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH8
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH10
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH14
__STATIC_INLINE void IDAC_IntEnable(IDAC_TypeDef *idac, uint32_t flags)
Enable one or more IDAC interrupts.
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH13
void IDAC_Init(IDAC_TypeDef *idac, const IDAC_Init_TypeDef *init)
Initialize IDAC.
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH29
IDAC_OutMode_TypeDef outMode
#define IDAC_CURPROG_RANGESEL_RANGE1
void IDAC_StepSet(IDAC_TypeDef *idac, const uint32_t step)
Set the current step of the IDAC output.
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH16
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH27
__STATIC_INLINE void IDAC_IntSet(IDAC_TypeDef *idac, uint32_t flags)
Set one or more pending IDAC interrupts from SW.
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH12
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH20
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH3
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH9
void IDAC_Reset(IDAC_TypeDef *idac)
Reset IDAC to same state as after a HW reset.
#define IDAC_CTRL_PRSSEL_PRSCH8
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH25
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH1
void IDAC_OutEnable(IDAC_TypeDef *idac, bool enable)
Enable/disable the IDAC OUT pin.
#define IDAC_CTRL_PRSSEL_PRSCH3
#define IDAC_CTRL_PRSSEL_PRSCH4
#define IDAC_CURPROG_RANGESEL_RANGE0
#define IDAC_CTRL_PRSSEL_PRSCH2
__STATIC_INLINE void IDAC_IntClear(IDAC_TypeDef *idac, uint32_t flags)
Clear one or more pending IDAC interrupts.
#define IDAC_CTRL_APORTOUTSEL_APORT1XCH2
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH31
#define IDAC_CTRL_APORTOUTSEL_APORT1YCH17
#define IDAC_CTRL_PRSSEL_PRSCH5