Rev 885 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 885 | Rev 886 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | /*####################################################################################### |
- | |
- | 1 | #ifndef _ANALOG_H |
|
- | 2 | #define _ANALOG_H |
|
Line 2... | Line 3... | ||
2 | 3 | ||
Line 3... | Line 4... | ||
3 | #######################################################################################*/ |
4 | #include <inttypes.h> |
4 | 5 | ||
5 | extern volatile int UBat; |
6 | extern volatile int16_t UBat; |
6 | extern volatile int AdWertNick, AdWertRoll, AdWertGier; |
- | |
7 | extern volatile int AdWertAccRoll,AdWertAccNick,AdWertAccHoch; |
7 | extern volatile int16_t AdValueGyrPitch, AdValueGyrRoll, AdValueGyrYaw; |
8 | extern volatile int Aktuell_Nick,Aktuell_Roll,Aktuell_Gier,Aktuell_ax, Aktuell_ay,Aktuell_az; |
8 | extern volatile int16_t AdValueAccRoll, AdValueAccPitch, AdValueAccTop; |
9 | extern volatile long Luftdruck; |
9 | extern volatile int16_t Current_AccZ; |
10 | extern volatile char messanzahl_Druck; |
10 | extern volatile int32_t AirPressure; |
11 | extern volatile unsigned int ZaehlMessungen; |
11 | extern volatile uint16_t MeasurementCounter; |
12 | extern unsigned char DruckOffsetSetting; |
12 | extern uint8_t PressureSensorOffset; |
13 | extern volatile int HoeheD; |
13 | extern volatile int16_t HeightD; |
- | 14 | extern volatile uint16_t ReadingAirPressure; |
|
14 | extern volatile unsigned int MessLuftdruck; |
15 | extern volatile int16_t StartAirPressure; |
15 | extern volatile int StartLuftdruck; |
16 | |
16 | extern volatile char MessanzahlNick; |
- | |
17 | 17 | extern void SearchAirPressureOffset(void); |
|
- | 18 | ||
- | 19 | extern void ADC_Init(void); |
|
- | 20 | ||
- | 21 | // clear ADC enable & ADC Start Conversion & ADC Interrupt Enable bit |
|
- | 22 | #define ADC_Disable() (ADCSRA &= ~((1<<ADEN)|(1<<ADSC)|(1<<ADIE))) |
|
- | 23 | // set ADC enable & ADC Start Conversion & ADC Interrupt Enable bit |
|
- | 24 | #define ADC_Enable() (ADCSRA |= (1<<ADEN)|(1<<ADSC)|(1<<ADIE)) |
|
18 | unsigned int ReadADC(unsigned char adc_input); |
25 | |
Line 19... | Line -... | ||
19 | void ADC_Init(void); |
- | |
20 | void SucheLuftruckOffset(void); |
- |