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.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Diff: Components/lps25h/lps25h_class.h
- Revision:
- 50:f507d4465c31
- Parent:
- 44:d757094f6229
- Child:
- 54:2a676c734b30
--- a/Components/lps25h/lps25h_class.h Mon Jun 08 17:37:59 2015 +0200
+++ b/Components/lps25h/lps25h_class.h Mon Jun 08 18:04:19 2015 +0200
@@ -66,6 +66,10 @@
return LPS25H_Init((PRESSURE_InitTypeDef*)init_struct);
}
+ /**
+ * @brief Enter sensor shutdown mode
+ * @return 0 in case of success, an error code otherwise
+ */
virtual int PowerOff(void) {
return LPS25H_PowerOff();
}
@@ -74,16 +78,14 @@
return LPS25H_ReadID(p_id);
}
+ /**
+ * @brief Reset sensor
+ * @return 0 in case of success, an error code otherwise
+ */
virtual int Reset(void) {
return LPS25H_RebootCmd();
}
- virtual void ConfigIT(uint16_t) { /* not yet implemented */ }
- virtual void EnableIT(uint8_t) { /* not yet implemented */ }
- virtual void DisableIT(uint8_t) { /* not yet implemented */ }
- virtual uint8_t ITStatus(uint16_t, uint16_t) { /* not yet implemented */ return 0; }
- virtual void ClearIT(uint16_t, uint16_t) { /* not yet implemented */ }
-
virtual int GetPressure(float *pfData) {
return LPS25H_GetPressure(pfData);
}
@@ -92,8 +94,6 @@
return LPS25H_GetTemperature(pfData);
}
- virtual void AttachIT(void (*fptr)(void)) { /* not yet implemented */ }
-
void SlaveAddrRemap(uint8_t SA0_Bit_Status) {
LPS25H_SlaveAddrRemap(SA0_Bit_Status);
}
