Rev 716 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 716 | Rev 728 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | 1 | ||
2 | 2 | ||
3 | struct MM3_working_struct |
3 | struct MM3_working_struct |
4 | { |
- | |
5 | uint8_t STATE; |
4 | { |
- | 5 | uint8_t STATE; |
|
6 | unsigned int DRDY; |
6 | uint8_t AXIS; |
7 | uint8_t AXIS; |
7 | uint16_t DRDY; |
8 | volatile signed int x_axis; |
8 | int16_t x_axis; |
9 | volatile signed int y_axis; |
9 | int16_t y_axis; |
Line 10... | Line 10... | ||
10 | volatile signed int z_axis; |
10 | int16_t z_axis; |
11 | }; |
11 | }; |
Line 27... | Line 27... | ||
27 | void init_MM3(void); |
27 | void init_MM3(void); |
28 | void timer0_MM3(void); |
28 | void timer0_MM3(void); |
29 | void calib_MM3(void); |
29 | void calib_MM3(void); |
30 | int heading_MM3(void); |
30 | int heading_MM3(void); |
Line -... | Line 31... | ||
- | 31 | ||
- | 32 | // MM3-Konfiguration |
|
- | 33 | #define MM3_X_AXIS 0x01 |
|
- | 34 | #define MM3_Y_AXIS 0x02 |
|
- | 35 | #define MM3_Z_AXIS 0x03 |
|
- | 36 | ||
- | 37 | #define MM3_PERIOD_32 0x00 |
|
- | 38 | #define MM3_PERIOD_64 0x10 |
|
- | 39 | #define MM3_PERIOD_128 0x20 |
|
- | 40 | #define MM3_PERIOD_256 0x30 |
|
- | 41 | #define MM3_PERIOD_512 0x40 |
|
- | 42 | #define MM3_PERIOD_1024 0x50 |
|
- | 43 | #define MM3_PERIOD_2048 0x60 |
|
- | 44 | #define MM3_PERIOD_4096 0x70 |
|
- | 45 | ||
31 | 46 | // Spikes Filtern |
|
Line 32... | Line 47... | ||
32 | #define Max_Axis_Value 500 |
47 | #define Max_Axis_Value 500 |
33 | 48 | ||
34 | // Die Werte der Statemachine |
49 | // Die Werte der Statemachine |