Atmel Software Framework

dac.c File Reference

AVR XMEGA Digital to Analog Converter driver.

Copyright (c) 2010-2015 Atmel Corporation. All rights reserved.

#include <compiler.h>
#include <dac.h>
#include <sleepmgr.h>

Functions

static void dac_enable_clock (DAC_t *dac)
 Enable peripheral clock for DAC. More...
 
static void dac_disable_clock (DAC_t *dac)
 Disable peripheral clock for DAC. More...
 
void dac_enable (DAC_t *dac)
 Enable DAC. More...
 
void dac_disable (DAC_t *dac)
 Disable DAC. More...
 
bool dac_is_enabled (DAC_t *dac)
 Check if DAC is enabled. More...
 
void dac_write_configuration (DAC_t *dac, struct dac_config *conf)
 Write configuration to DAC. More...
 
void dac_read_configuration (DAC_t *dac, struct dac_config *conf)
 Read configuration from DAC. More...