Rev 22 | Rev 29 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 22 | Rev 23 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | #define I2C_CMD_WRITE_CAL 0x04 |
12 | #define I2C_CMD_WRITE_CAL 0x04 |
13 | #define I2C_CMD_WRITE_EEPROM 0x0A |
13 | #define I2C_CMD_WRITE_EEPROM 0x0A |
14 | #define I2C_CMD_READ_EEPROM 0x0B |
14 | #define I2C_CMD_READ_EEPROM 0x0B |
Line 15... | Line 15... | ||
15 | 15 | ||
16 | 16 | ||
17 | typedef struct |
17 | struct I2C_Version_t |
18 | { |
18 | { |
19 | uint8_t Major; |
19 | uint8_t Major; |
20 | uint8_t Minor; |
20 | uint8_t Minor; |
Line 21... | Line -... | ||
21 | uint8_t Compatible; |
- | |
22 | } I2C_Version_t; |
- | |
23 | - | ||
24 | - | ||
25 | typedef struct |
- | |
26 | { |
21 | uint8_t Compatible; |
27 | uint8_t Adress; |
- | |
28 | uint16_t Content; |
- | |
29 | } I2C_EEPROM_t; |
- | |
30 | 22 | } ; |
|
31 | 23 | ||
32 | typedef struct |
24 | struct I2C_Mag_t |
33 | { |
25 | { |
34 | int16_t MagX; |
26 | int16_t MagX; |
Line 35... | Line 27... | ||
35 | int16_t MagY; |
27 | int16_t MagY; |
36 | int16_t MagZ; |
28 | int16_t MagZ; |
37 | } I2C_Mag_t; |
29 | } ; |
38 | 30 | ||
39 | 31 | ||
Line 40... | Line 32... | ||
40 | typedef struct |
32 | struct I2C_WriteAttitude_t |
41 | { |
33 | { |
42 | int16_t Nick; |
34 | int16_t Nick; |
43 | int16_t Roll; |
35 | int16_t Roll; |
44 | } I2C_WriteAttitude_t; |
36 | } ; |
45 | 37 | ||
Line 46... | Line 38... | ||
46 | 38 | ||
47 | typedef struct |
39 | struct I2C_WriteCal_t |
48 | { |
40 | { |
49 | uint8_t CalByte; |
41 | uint8_t CalByte; |
Line 50... | Line 42... | ||
50 | uint8_t Dummy1; |
42 | uint8_t Dummy1; |
51 | uint8_t Dummy2; |
43 | uint8_t Dummy2; |
52 | } I2C_WriteCal_t; |
44 | } ; |
53 | 45 | ||
54 | typedef struct |
46 | struct I2C_Heading_t |
Line 55... | Line 47... | ||
55 | { |
47 | { |
Line 56... | Line 48... | ||
56 | int16_t Heading; |
48 | int16_t Heading; |