altos: Try to get hmc5883 working
[fw/altos] / src / drivers / ao_hmc5883.h
index 399ddcddba03d99bc69839b22ed07e784cef43c7..2ec27dd985c742540f3f9c0502bbd65c5177f16b 100644 (file)
@@ -24,6 +24,9 @@
 #define HMC5883_CONFIG_A       0
 #define HMC5883_CONFIG_B       1
 #define HMC5883_MODE           2
+#define  HMC5883_MODE_CONTINUOUS       0
+#define  HMC5883_MODE_SINGLE           1
+#define  HMC5883_MODE_IDLE             2
 #define HMC5883_X_MSB          3
 #define HMC5883_X_LSB          4
 #define HMC5883_Y_MSB          5
 #define HMC5883_ID_B           11
 #define HMC5883_ID_C           12
 
+struct ao_hmc5883_sample {
+       int16_t         x, y, z;
+};
+
 void
 ao_hmc5883_init(void);