Rev 243 | Rev 254 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 243 | Rev 253 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef __HMC5843_H |
1 | #ifndef __NCMAG_H |
2 | #define __HMC5843_H |
2 | #define __NCMAG_H |
- | 3 | ||
- | 4 | #include "compass.h" |
|
Line 3... | Line 5... | ||
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; |
Line 12... | Line 14... | ||
12 | } __attribute__((packed)) HMC5843_Calibration_t; |
14 | } __attribute__((packed)) NCMAG_Calibration_t; |
- | 15 | ||
Line 13... | Line 16... | ||
13 | 16 | extern NCMAG_Calibration_t NCMAG_Calibration; |
|
14 | HMC5843_Calibration_t HMC5843_Calibration; |
17 | extern s16vec_t ACC_Vector; |
15 | 18 | ||
Line 16... | Line 19... | ||
16 | u8 HMC5843_Init(void); |
19 | u8 NCMAG_Init(void); |