Rev 1921 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1917 | holgerb | 1 | #ifndef _HOTTMENU_H |
2 | #define _HOTTMENU_H |
||
3 | |||
1925 | holgerb | 4 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
5 | |||
1917 | holgerb | 6 | extern unsigned char HottKeyboard,HoTT_RequestedSensor; |
7 | extern unsigned char HottUpdate(unsigned char key); |
||
8 | |||
1919 | holgerb | 9 | extern volatile unsigned char *HoTT_DataPointer; |
10 | |||
1917 | holgerb | 11 | extern void CreateHoTT_Menu(void); |
12 | extern void LIBFC_HoTT_Putchar(char); |
||
13 | extern void LIBFC_HoTT_Putchar_INV(char); // print Invers |
||
1920 | holgerb | 14 | extern void LIBFC_HoTT_Putchar_BLINK(char); |
1917 | holgerb | 15 | extern void LIBFC_HoTT_SetPos(unsigned char); |
16 | extern void LIBFC_HoTT_Clear(void); |
||
17 | extern void HoTT_Menu(void); |
||
1919 | holgerb | 18 | extern unsigned char HoTT_Telemety(unsigned char); |
19 | extern unsigned char HoTT_Waring(void); |
||
1920 | holgerb | 20 | extern volatile unsigned char HoTTBlink; |
1917 | holgerb | 21 | |
22 | typedef struct |
||
23 | { |
||
24 | unsigned char StartByte; // 0x7C |
||
25 | unsigned char Packet_ID; // HOTT_ELECTRIC_AIR_PACKET_ID |
||
26 | unsigned char WarnBeep; // Anzahl der Töne 0..36 |
||
27 | unsigned char VoltageCell1; // 208 = 4,16V (Voltage * 50 = Wert) |
||
28 | unsigned char VoltageCell2; // 209 = 4,18V |
||
29 | unsigned char VoltageCell3; // |
||
30 | unsigned char VoltageCell4; // |
||
31 | unsigned char VoltageCell5; // |
||
32 | unsigned char VoltageCell6; // |
||
33 | unsigned char VoltageCell7; // |
||
34 | unsigned char VoltageCell8; // |
||
35 | unsigned char VoltageCell9; // |
||
36 | unsigned char VoltageCell10; // |
||
37 | unsigned char VoltageCell11; // |
||
38 | unsigned char VoltageCell12; // |
||
39 | unsigned char VoltageCell13; // |
||
40 | unsigned char VoltageCell14; // |
||
41 | unsigned int Battery1; // 51 = 5,1V |
||
42 | unsigned int Battery2; // 51 = 5,1V |
||
43 | unsigned char Temperature1; // 44 = 24°C, 0 = -20°C |
||
44 | unsigned char Temperature2; // 44 = 24°C, 0 = -20°C |
||
45 | unsigned int Altitude; |
||
46 | unsigned int Current; // 1 = 0.1A |
||
47 | unsigned int InputVoltage; // 66 = 6,6V |
||
48 | unsigned int Capacity; // 1 = 10mAh |
||
49 | unsigned int m_sec; // 3000 = 0 |
||
50 | unsigned int m_3sec; // 3000 = 0 |
||
51 | unsigned char NullByte1; // 0x00 |
||
52 | unsigned char NullByte2; // 0x00 |
||
53 | unsigned char EndByte; // 0x7D |
||
54 | } ElectricAirPacket_t; |
||
55 | |||
56 | typedef struct |
||
57 | { |
||
58 | unsigned char StartByte; // 0x7C |
||
59 | unsigned char Packet_ID; // 0x89 - Vario ID |
||
60 | unsigned char WarnBeep; // Anzahl der Töne 0..36 |
||
61 | unsigned int Altitude; // 500 = 0m |
||
62 | unsigned int MaxAltitude; // 500 = 0m |
||
63 | unsigned int MinAltitude; // 500 = 0m |
||
64 | unsigned int m_sec; // 3000 = 0 |
||
65 | unsigned int m_3sec; // 3000 = 0 |
||
66 | unsigned int m_10sec; // 3000 = 0 |
||
67 | unsigned char NullByte; // 0x00 |
||
68 | unsigned char EndByte; // 0x7D |
||
69 | } VarioPacket_t; |
||
70 | |||
71 | typedef struct |
||
72 | { |
||
73 | unsigned char StartByte; // 0x7C |
||
74 | unsigned char Packet_ID; // 0x89 - Vario ID |
||
75 | unsigned char WarnBeep; // Anzahl der Töne 0..36 |
||
76 | unsigned char Heading; // 1 = 2° |
||
77 | unsigned int Speed; // in km/h |
||
1921 | holgerb | 78 | unsigned char Lat_North; |
1917 | holgerb | 79 | unsigned char Lat_G; |
80 | unsigned char Lat_M; |
||
81 | unsigned char Lat_Sek1; |
||
82 | unsigned char Lat_Sek2; |
||
1921 | holgerb | 83 | unsigned char Lon_East; |
1917 | holgerb | 84 | unsigned char Lon_G; |
85 | unsigned char Lon_M; |
||
86 | unsigned char Lon_Sek1; |
||
87 | unsigned char Lon_Sek2; |
||
88 | unsigned int Distance; // 9000 = 0m |
||
89 | unsigned int Altitude; // 500 = 0m |
||
90 | unsigned int m_sec; // 3000 = 0 |
||
91 | unsigned int m_3sec; // 3000 = 0 |
||
92 | unsigned int m_10sec; // 3000 = 0 |
||
93 | unsigned char NullByte; // 0x00 |
||
94 | unsigned char NullByte1; // 0x00 |
||
95 | unsigned char EndByte; // 0x7D |
||
96 | } GPSPacket_t; |
||
97 | |||
98 | typedef struct |
||
99 | { |
||
100 | unsigned char StartByte; // 0x7B |
||
101 | unsigned char Packet_ID; // 0x00 |
||
102 | unsigned char WarnBeep; // Anzahl der Töne 0..36 |
||
103 | char Text[8*21]; |
||
104 | unsigned char EndByte; // 0x7D |
||
105 | } ASCIIPacket_t; |
||
106 | |||
107 | extern GPSPacket_t GPSPacket; |
||
108 | extern VarioPacket_t VarioPacket; |
||
109 | extern ASCIIPacket_t ASCIIPacket; |
||
110 | extern ElectricAirPacket_t ElectricAirPacket; |
||
111 | |||
112 | #define HOTT_VARIO_PACKET_ID 0x89 |
||
113 | #define HOTT_GPS_PACKET_ID 0x8A |
||
114 | #define HOTT_ELECTRIC_AIR_PACKET_ID 0x8E |
||
115 | |||
116 | #endif |
||
1925 | holgerb | 117 | #endif |
118 |