Rev 1983 | Rev 2012 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1983 | Rev 2008 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #define MASK_SET_BITCONFIG 0x10 |
29 | #define MASK_SET_BITCONFIG 0x10 |
30 | #define MASK_RESET_CAPCOUNTER 0x20 |
30 | #define MASK_RESET_CAPCOUNTER 0x20 |
31 | #define MASK_SET_DEFAULT_PARAMS 0x40 |
31 | #define MASK_SET_DEFAULT_PARAMS 0x40 |
32 | #define MASK_SET_SAVE_EEPROM 0x80 |
32 | #define MASK_SET_SAVE_EEPROM 0x80 |
Line 33... | Line -... | ||
33 | - | ||
34 | typedef struct |
- | |
35 | { |
- | |
36 | unsigned char Revision; // revision of parameter structure |
- | |
37 | unsigned char Address; // target address |
- | |
38 | unsigned char PwmScaling; // maximum value of pwm setpoint |
- | |
39 | unsigned char CurrentLimit; // current limit in 1A steps |
- | |
40 | unsigned char TemperatureLimit; // in °C |
- | |
41 | unsigned char CurrentScaling; // scaling factor for current measurement |
- | |
42 | unsigned char BitConfig; // see defines above |
- | |
43 | unsigned char SetMask; // filter for active paramters |
- | |
44 | unsigned char Checksum; // checksum for parameter sturcture |
- | |
45 | } __attribute__((packed)) BLParameter_t; |
- | |
46 | - | ||
47 | 33 | ||
48 | unsigned char GetExternalControl = 0,DebugDisplayAnforderung1 = 0, DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0, GetPPMChannelAnforderung = 0; |
34 | unsigned char GetExternalControl = 0,DebugDisplayAnforderung1 = 0, DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0, GetPPMChannelAnforderung = 0; |
49 | unsigned char DisplayLine = 0; |
35 | unsigned char DisplayLine = 0; |
50 | unsigned volatile char SioTmp = 0; |
36 | unsigned volatile char SioTmp = 0; |
51 | unsigned volatile char NeuerDatensatzEmpfangen = 0; |
37 | unsigned volatile char NeuerDatensatzEmpfangen = 0; |