Rev 243 | Rev 254 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 243 | Rev 253 | ||
---|---|---|---|
1 | #ifndef __HMC5843_H |
1 | #ifndef __NCMAG_H |
2 | #define __HMC5843_H |
2 | #define __NCMAG_H |
- | 3 | ||
- | 4 | #include "compass.h" |
|
3 | 5 | ||
4 | typedef struct |
6 | typedef struct |
5 | { |
7 | { |
6 | s16 XRange; |
8 | s16 XRange; |
7 | s16 YRange; |
9 | s16 YRange; |
8 | s16 ZRange; |
10 | s16 ZRange; |
9 | s16 XOffset; |
11 | s16 XOffset; |
10 | s16 YOffset; |
12 | s16 YOffset; |
11 | s16 ZOffset; |
13 | s16 ZOffset; |
12 | } __attribute__((packed)) HMC5843_Calibration_t; |
14 | } __attribute__((packed)) NCMAG_Calibration_t; |
13 | 15 | ||
- | 16 | extern NCMAG_Calibration_t NCMAG_Calibration; |
|
14 | HMC5843_Calibration_t HMC5843_Calibration; |
17 | extern s16vec_t ACC_Vector; |
15 | 18 | ||
16 | u8 HMC5843_Init(void); |
19 | u8 NCMAG_Init(void); |
17 | void HMC5843_UpdateCompass(void); |
20 | void NCMAG_UpdateCompass(void); |
18 | void HMC5843_ToggleMode(void); |
21 | void NCMAG_ToggleMode(void); |
19 | 22 | ||
20 | #endif // __HMC5843_H |
23 | #endif // __NCMAG_H |
21 | 24 | ||
22 | 25 |