aboutsummaryrefslogtreecommitdiffstats
path: root/os/ex/ST/lsm303dlhc.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/ex/ST/lsm303dlhc.h')
-rw-r--r--os/ex/ST/lsm303dlhc.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/os/ex/ST/lsm303dlhc.h b/os/ex/ST/lsm303dlhc.h
index 6e4ae34dc..27c67a851 100644
--- a/os/ex/ST/lsm303dlhc.h
+++ b/os/ex/ST/lsm303dlhc.h
@@ -41,7 +41,7 @@
/**
* @brief LSM303DLHC driver version string.
*/
-#define EX_LSM303DLHC_VERSION "1.0.2"
+#define EX_LSM303DLHC_VERSION "1.0.3"
/**
* @brief LSM303DLHC driver version major number.
@@ -56,7 +56,7 @@
/**
* @brief LSM303DLHC driver version patch number.
*/
-#define EX_LSM303DLHC_PATCH 2
+#define EX_LSM303DLHC_PATCH 3
/** @} */
/**
@@ -428,11 +428,11 @@ typedef struct {
/**
* @brief LSM303DLHC initial sensitivity.
*/
- float sensitivity[LSM303DLHC_ACC_NUMBER_OF_AXES];
+ float *sensitivity;
/**
* @brief LSM303DLHC initial bias.
*/
- float bias[LSM303DLHC_ACC_NUMBER_OF_AXES];
+ float *bias;
/**
* @brief LSM303DLHC accelerometer subsystem initial full scale.
*/
@@ -507,6 +507,14 @@ typedef enum {
*/
typedef struct {
/**
+ * @brief LSM303DLHC compass initial sensitivity.
+ */
+ float *sensitivity;
+ /**
+ * @brief LSM303DLHC compass initial bias.
+ */
+ float *bias;
+ /**
* @brief LSM303DLHC compass subsystem initial full scale.
*/
lsm303dlhc_comp_fs_t fullscale;