Subversion Repositories NaviCtrl

Rev

Rev 426 | Rev 470 | 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 "i2c.h"

extern s16vec_t ACC_Vector;
extern volatile s16vec_t MagRawVector;

u8 NCMAG_Init(void);
void NCMAG_Update(void);
extern u8 NCMAG_Present;
extern u8 NCMAG_IsCalibrated;


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