Atmel Software Framework

abdac.h File Reference
#include "compiler.h"
#include <avr32/io.h>

Macros

#define ABDAC_BF(name, value)
 Bit-field macro for GCLK. More...
 
#define ABDAC_BIT(name)   (1 << AVR32_ABDAC_##name##_OFFSET)
 Bit macro for ABDAC. More...
 
#define ABDAC_GCLK   AVR32_PM_GCLK_ABDAC
 GCLK used by the ABDAC to generate bitstream. More...
 
#define ABDAC_TIMEOUT   5000
 Number of tries before the driver reports timeout. More...
 
#define GCLK_BF(name, value)
 Bit-field macro for ABDAC GCLK. More...
 
#define GCLK_BFEXT(name, value)
 Bit-field extraction macro for ABDAC GCLK. More...
 
#define GCLK_BIT(name)   (1 << AVR32_PM_GCCTRL_##name##_OFFSET)
 Bit macro for ABDAC GCLK. More...
 

Enumerations

enum  {
  EINVAL = 22,
  ETIMEOUT
}
 

Functions

void abdac_disable (volatile avr32_abdac_t *abdac)
 
void abdac_enable (volatile avr32_abdac_t *abdac)
 
unsigned long abdac_get_dac_hz (volatile avr32_abdac_t *abdac, const unsigned long bus_hz)
 
unsigned long abdac_set_dac_hz (volatile avr32_abdac_t *abdac, const unsigned long bus_hz, const unsigned long dac_hz)
 
bool abdac_set_dac_sample_rate (const unsigned long dac_hz)
 
int abdac_sink (volatile avr32_abdac_t *abdac, const unsigned short ch0, const unsigned short ch1)
 
void abdac_swap_channels (volatile avr32_abdac_t *abdac)