my own version of X_NUCLEO_IKS01A1, only created in order to publish the project. No changes are expected in this repo.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Diff: x_nucleo_iks01a1.h
- Revision:
- 8:d49db2c9d9c1
- Parent:
- 7:a2bb3d5e12e9
- Child:
- 15:472cf58b9c11
--- 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);