Subversion Repositories NaviCtrl

Rev

Rev 426 | Rev 470 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
253 killagreg 1
#ifndef __NCMAG_H
2
#define __NCMAG_H
242 killagreg 3
 
253 killagreg 4
#include "compass.h" 
465 ingob 5
#include "i2c.h"
253 killagreg 6
 
7
extern s16vec_t ACC_Vector;
339 holgerb 8
extern volatile s16vec_t MagRawVector;
243 killagreg 9
 
253 killagreg 10
u8 NCMAG_Init(void);
292 killagreg 11
void NCMAG_Update(void);
426 holgerb 12
extern u8 NCMAG_Present;
13
extern u8 NCMAG_IsCalibrated;
242 killagreg 14
 
465 ingob 15
 
16
extern u8 *I2C_BufferPnt;
17
extern u8 *I2C_ErrorPnt;
18
 
19
typedef u8 (*I2C_TransmissionFunc_t) (u8 SlaveAddr, u8 TxBytes, I2C_pRxHandler_t pRxHandler, u8 RxBytes);
20
typedef u8 (*I2C_LockBufferFunc_t) (u32 timeout);
21
typedef u8 (*I2C_WaitForEndOfTransmissionFunc_t) (u32 timeout);
22
 
253 killagreg 23
#endif // __NCMAG_H
242 killagreg 24