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