AWHUBADC/history/V01/AWHUBADC/AWHUBADC/src/dac_basic.c
/**
 * \brief Initialize DAC interface
 * If module is configured to disabled state, the clock to the DAC is disabled
 * if this is supported by the device's clock system.
 *
 * \return Initialization status.
 * \retval 0 the DAC init was successful
 * \retval 1 the DAC init was not successful
 */
\brief Initialize DAC interface
If module is configured to disabled state, the clock to the DAC is disabled
if this is supported by the device's clock system.

\return Initialization status.
\retval 0 the DAC init was successful
\retval 1 the DAC init was not successful
\ brief Initialize DAC interface If module is configured to disabled state the clock to the DAC is disabled if this is supported by the device ' s clock system . \ return Initialization status . \ retval 0 the DAC init was successful \ retval 1 the DAC init was not successful
int8_t DAC_0_init()
{
	DAC0.CTRLA = 1 << DAC_ENABLE_bp      
	             | 0 << DAC_OUTEN_bp     
	             | 0 << DAC_RUNSTDBY_bp; 
	return 0;
}
int8_t DAC_0_init ( ) { DAC0 . CTRLA = 1 << DAC_ENABLE_bp | 0 << DAC_OUTEN_bp | 0 << DAC_RUNSTDBY_bp ; return 0 ; }
\brief Initialize DAC interface
 If module is configured to disabled state, the clock to the DAC is disabled
 if this is supported by the device's clock system.
\ brief Initialize DAC interface If module is configured to disabled state the clock to the DAC is disabled if this is supported by the device ' s clock system .
// DAC0.DATA = 0x0; /* DATA Register: 0x0 */ /* DAC Enable: enabled */ /* Output Buffer Enable: disabled */ /* Run in Standby Mode: disabled */