Subversion Repositories FlightCtrl

Rev

Rev 2182 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2182 Rev 2263
1
#ifndef _JETI_EX_H
1
#ifndef _JETI_EX_H
2
#define _JETI_EX_H
2
#define _JETI_EX_H
3
 
3
 
4
 
4
 
5
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
5
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
6
 
-
 
-
 
6
extern void BuildJeti_Vario(void);
7
 
7
 
8
// define here how many Jeti EX parameters should be transmitted (max. = 15)
8
// define here how many Jeti EX parameters should be transmitted (max. = 15)
9
//
9
//
10
#define JETI_EX_PARAMETER_COUNT         15
10
#define JETI_EX_PARAMETER_COUNT         15
11
//
11
//
12
// -------------------------------------------------------------------------
12
// -------------------------------------------------------------------------
13
 
-
 
14
 
-
 
15
 
-
 
-
 
13
 
16
 
14
extern const char PROGMEM JETI_CODE[53];
17
         
15
         
18
typedef struct
16
typedef struct
19
{
17
{
20
   char Label[10];
18
   char Label[10];
21
   char Unit[3];
19
   char Unit[3];
22
   unsigned char DataType;
20
   unsigned char DataType;
23
   long Value;
21
   long Value;
24
   unsigned char DecimalPointPos;
22
   unsigned char DecimalPointPos;
25
}  JetiExPacket_t;
23
}  JetiExPacket_t;
26
 
24
 
27
   
25
   
28
extern JetiExPacket_t JetiExData[];
26
extern JetiExPacket_t JetiExData[];
29
extern void JetiEX_Update(void);
27
extern void JetiEX_Update(void);
30
 
28
 
31
 
29
 
32
 
30
 
33
#if (JETI_EX_PARAMETER_COUNT > 15) 
31
#if (JETI_EX_PARAMETER_COUNT > 15) 
34
        #error "ERROR: Too many Jeti EX parameters (max. allowed 15)"
32
        #error "ERROR: Too many Jeti EX parameters (max. allowed 15)"
35
#endif
33
#endif
36
 
34
 
37
 
35
 
38
#endif
36
#endif
39
#endif //_JETI_EX_H
37
#endif //_JETI_EX_H
40
 
38