#ifndef __HMC58X3_H__ #define __HMC58X3_H__ #include #include "i2c_mag_sensor.h" class HMC58X3 : public I2C_MAG_SENSOR { private: enum {RAW, HMC5843, HMC5883L} mode; public: static const Uint8 i2c_address; HMC58X3(I2C &i2c_if); void init(); void raw(Uint8 (&raw_buf)[6]); void get_id(char (&buf)[3]); }; #endif /* __HMC58X3_H__ */