0.6.0 this is the first version for the new hardware
[digitaldcpower] / analog.h
1 /* vim: set sw=8 ts=8 si : */
2 /*************************************************************************
3  Title  :   C include file for analog conversion
4  Target:    any AVR device
5  Copyright: GPL
6 ***************************************************************************/
7 #ifndef ANALOG_H
8 #define ANALOG_H
9
10 /* You must enable interrupt with sei() in the main program */
11 extern void init_analog(void);
12 /* get the result of an analog conversion */
13 extern int16_t getanalogresult(uint8_t channel);
14 extern void set_target_adc_val(uint8_t item,int16_t val);
15 extern uint8_t is_current_limit(void); 
16 extern int16_t get_dacval(void);
17
18 #endif /* ANALOG_H */