Subversion Repositories NaviCtrl

Rev

Rev 470 | Rev 473 | 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" 
470 killagreg 5
#include "i2c1.h"
253 killagreg 6
 
7
extern s16vec_t ACC_Vector;
339 holgerb 8
extern volatile s16vec_t MagRawVector;
243 killagreg 9
 
472 holgerb 10
#define I2C_EXTERN_0    0
11
#define I2C_INTERN_1    1
12
 
253 killagreg 13
u8 NCMAG_Init(void);
292 killagreg 14
void NCMAG_Update(void);
426 holgerb 15
extern u8 NCMAG_Present;
16
extern u8 NCMAG_IsCalibrated;
472 holgerb 17
extern u8 I2C_CompassPort;
242 killagreg 18
 
465 ingob 19
extern u8 *I2C_BufferPnt;
20
extern u8 *I2C_ErrorPnt;
21
 
22
typedef u8 (*I2C_TransmissionFunc_t) (u8 SlaveAddr, u8 TxBytes, I2C_pRxHandler_t pRxHandler, u8 RxBytes);
23
typedef u8 (*I2C_LockBufferFunc_t) (u32 timeout);
24
typedef u8 (*I2C_WaitForEndOfTransmissionFunc_t) (u32 timeout);
25
 
253 killagreg 26
#endif // __NCMAG_H
242 killagreg 27