Go to most recent revision | Details | 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 |
||
1921 | holgerb | 76 | unsigned char Lat_North; |
1917 | holgerb | 77 | unsigned char Lat_G; |
78 | unsigned char Lat_M; |
||
79 | unsigned char Lat_Sek1; |
||
80 | unsigned char Lat_Sek2; |
||
1921 | holgerb | 81 | unsigned char Lon_East; |
1917 | holgerb | 82 | unsigned char Lon_G; |
83 | unsigned char Lon_M; |
||
84 | unsigned char Lon_Sek1; |
||
85 | unsigned char Lon_Sek2; |
||
86 | unsigned int Distance; // 9000 = 0m |
||
87 | unsigned int Altitude; // 500 = 0m |
||
88 | unsigned int m_sec; // 3000 = 0 |
||
89 | unsigned int m_3sec; // 3000 = 0 |
||
90 | unsigned int m_10sec; // 3000 = 0 |
||
91 | unsigned char NullByte; // 0x00 |
||
92 | unsigned char NullByte1; // 0x00 |
||
93 | unsigned char EndByte; // 0x7D |
||
94 | } GPSPacket_t; |
||
95 | |||
96 | typedef struct |
||
97 | { |
||
98 | unsigned char StartByte; // 0x7B |
||
99 | unsigned char Packet_ID; // 0x00 |
||
100 | unsigned char WarnBeep; // Anzahl der Töne 0..36 |
||
101 | char Text[8*21]; |
||
102 | unsigned char EndByte; // 0x7D |
||
103 | } ASCIIPacket_t; |
||
104 | |||
105 | extern GPSPacket_t GPSPacket; |
||
106 | extern VarioPacket_t VarioPacket; |
||
107 | extern ASCIIPacket_t ASCIIPacket; |
||
108 | extern ElectricAirPacket_t ElectricAirPacket; |
||
109 | |||
110 | #define HOTT_VARIO_PACKET_ID 0x89 |
||
111 | #define HOTT_GPS_PACKET_ID 0x8A |
||
112 | #define HOTT_ELECTRIC_AIR_PACKET_ID 0x8E |
||
113 | |||
114 | #endif |