Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of X_NUCLEO_IKS01A1 by
Diff: x_nucleo_iks01a1.h
- Revision:
- 8:d49db2c9d9c1
- Parent:
- 7:a2bb3d5e12e9
- Child:
- 15:472cf58b9c11
diff -r a2bb3d5e12e9 -r d49db2c9d9c1 x_nucleo_iks01a1.h
--- a/x_nucleo_iks01a1.h	Wed Apr 15 14:08:20 2015 +0200
+++ b/x_nucleo_iks01a1.h	Wed Apr 15 15:56:11 2015 +0200
@@ -73,6 +73,18 @@
  protected:
 	X_NUCLEO_IKS01A1(DevI2C *ext_i2c);
 
+	bool Init(void) {
+		return (Init_HT() &&
+			Init_MAG() &&
+			Init_PRESS() &&
+			Init_GYRO());
+	}
+
+	bool Init_HT(void);
+	bool Init_MAG(void);
+	bool Init_PRESS(void);
+	bool Init_GYRO(void);
+
  public:
 	static X_NUCLEO_IKS01A1* Instance(DevI2C *ext_i2c = NULL);
 
    