Subversion Repositories NaviCtrl

Rev

Rev 588 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 killagreg 1
#ifndef _TIMER2_H
2
#define _TIMER2_H
3
 
4
typedef struct
5
{
530 holgerb 6
//      u8 Refresh;
588 holgerb 7
        u8 CompInvert;
121 killagreg 8
        u8 NickControl;
530 holgerb 9
//      u8 NickComp;
10
//      u8 NickMin; 
11
//      u8 NickMax;
121 killagreg 12
        u8 RollControl;
530 holgerb 13
//      u8 RollComp;
14
//      u8 RollMin; 
15
//      u8 RollMax;             
119 killagreg 16
} __attribute__((packed)) ServoParams_t;
17
 
588 holgerb 18
// bitcoding for ServoParams.ServoCompInvert
19
#define SERVO_NICK_INV 0x01
20
#define SERVO_ROLL_INV 0x02
21
#define SERVO_RELATIVE 0x04   //  direct poti control or relative moving of the servo value
22
#define CH_DIRECTION_1 0x08
23
#define CH_DIRECTION_2 0x10
119 killagreg 24
 
588 holgerb 25
//CH Orientation     ServoBits          0x08    0x10
26
// --> no change                        0       0
27
// --> front to starting point          0       1
28
// --> rear to to starting point        1       0
29
//-> start orientation                  1       1
30
 
31
 
141 killagreg 32
extern volatile ServoParams_t ServoParams;
119 killagreg 33
 
34
void TIMER2_Init(void);
139 killagreg 35
void TIMER2_Deinit(void);
119 killagreg 36
 
37
#endif  // _TIMER2_H