Rev 470 |
Rev 473 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef __NCMAG_H
#define __NCMAG_H
#include "compass.h"
#include "i2c1.h"
extern s16vec_t ACC_Vector;
extern volatile s16vec_t MagRawVector;
#define I2C_EXTERN_0 0
#define I2C_INTERN_1 1
u8 NCMAG_Init(void);
void NCMAG_Update(void);
extern u8 NCMAG_Present;
extern u8 NCMAG_IsCalibrated;
extern u8 I2C_CompassPort;
extern u8 *I2C_BufferPnt;
extern u8 *I2C_ErrorPnt;
typedef u8 (*I2C_TransmissionFunc_t) (u8 SlaveAddr, u8 TxBytes, I2C_pRxHandler_t pRxHandler, u8 RxBytes);
typedef u8 (*I2C_LockBufferFunc_t) (u32 timeout);
typedef u8 (*I2C_WaitForEndOfTransmissionFunc_t) (u32 timeout);
#endif // __NCMAG_H