Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 744 → Rev 745

/tags/V2.14b/ncmag.h
0,0 → 1,29
#ifndef __NCMAG_H
#define __NCMAG_H
 
#include "compass.h"
#include "i2c.h"
 
#define NCMAG_PORT_EXTERN I2C0
#define NCMAG_PORT_INTERN I2C1
 
// supported magnetic sensor types
#define TYPE_NONE 0
#define TYPE_HMC5843 1
#define TYPE_LSM303DLH 2
#define TYPE_LSM303DLM 3
#define TYPE_LSM303D 4
 
extern u8 NCMAG_Present;
extern u8 NCMAG_IsCalibrated;
extern u8 NCMAG_Orientation;
extern u8 NCMAG_SensorType;
extern u8 NCMAG_Compass_use_Orientation;
 
u8 NCMAG_Init(void);
void NCMAG_Update(u8 init);
u8 NCMAG_GetOrientationFromAcc(void);
void NCMAG_CheckOrientation(void);
 
#endif // __NCMAG_H