Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
685 | killagreg | 1 | #ifndef _ANALOG_H |
2 | #define _ANALOG_H |
||
1 | ingob | 3 | |
685 | killagreg | 4 | #include <inttypes.h> |
1 | ingob | 5 | |
683 | killagreg | 6 | extern volatile int16_t UBat; |
7 | extern volatile int16_t AdValueGyrNick, AdValueGyrRoll, AdValueGyrGier; |
||
8 | extern volatile int16_t AdValueAccRoll, AdValueAccNick, AdValueAccTop; |
||
9 | extern volatile int16_t Current_Nick, Current_Roll, Current_Gier; |
||
10 | extern volatile int16_t Current_AccX, Current_AccY, Current_AccZ; |
||
11 | extern volatile int32_t Luftdruck; |
||
12 | extern volatile int8_t messanzahl_Druck; |
||
13 | extern volatile uint16_t ZaehlMessungen; |
||
14 | extern uint8_t DruckOffsetSetting; |
||
15 | extern volatile int16_t HoeheD; |
||
16 | extern volatile uint16_t MessLuftdruck; |
||
17 | extern volatile int16_t StartLuftdruck; |
||
1 | ingob | 18 | |
685 | killagreg | 19 | extern void SucheLuftruckOffset(void); |
1 | ingob | 20 | |
685 | killagreg | 21 | extern void ADC_Init(void); |
1 | ingob | 22 | |
683 | killagreg | 23 | // clear ADC enable & ADC Start Conversion & ADC Interrupt Enable bit |
24 | #define ADC_Disable() (ADCSRA &= ~((1<<ADEN)|(1<<ADSC)|(1<<ADIE))) |
||
25 | // set ADC enable & ADC Start Conversion & ADC Interrupt Enable bit |
||
26 | #define ADC_Enable() (ADCSRA |= (1<<ADEN)|(1<<ADSC)|(1<<ADIE)) |
||
27 | |||
685 | killagreg | 28 | |
29 | #endif //_ANALOG_H |
||
30 | |||
31 |