dac_drv.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DAC_AUTOTRIG_DISABLE   0
#define DAC_AUTOTRIG_ENABLE   1
#define Dac_config()
#define DAC_DISABLE   0
#define Dac_disable()   (DACON &= ~(1<<DAEN))
#define Dac_disable_output()   (DACON &= ~(1<<DAOE))
#define DAC_ENABLE   1
#define Dac_enable()   (DACON |= (1<<DAEN))
#define Dac_enable_output()   (DACON |= (1<<DAOE))
#define DAC_LEFT_ADJUST   1
#define Dac_left_adjust_input()   (DACON |= (1<<DALA))
#define DAC_OUTPUT_DISABLE   0
#define DAC_OUTPUT_ENABLE   1
#define DAC_RIGHT_ADJUST   0
#define Dac_right_adjust_input()   (DACON &= ~(1<<DALA))
#define Dac_set_10_bits(dac_in)   (DACL = Low((U16)(dac_in)), DACH = High((U16)(dac_in)))
#define Dac_set_8_bits(dac_in)   (DACH = (U8)(dac_in))
#define Dac_set_value(param)
#define Dac_start_left()
#define Dac_start_right()
#define DAC_TRIG_WITH_COMP0   0
#define DAC_TRIG_WITH_COMP1   1
#define DAC_TRIG_WITH_INT0   2
#define DAC_TRIG_WITH_TCCAP1   7
#define DAC_TRIG_WITH_TCCM0   3
#define DAC_TRIG_WITH_TCCM1   5
#define DAC_TRIG_WITH_TCOVF0   4
#define DAC_TRIG_WITH_TCOVF1   6

Functions

void init_dac (void)
 Configures the DAC accordingly to the DAC Define Configuration values.


Generated on Wed Oct 22 15:03:59 2008 for AVR172 : Atmel BLDC control on ATAVRMC310 with ATmega32M1 by  doxygen 1.5.7.1