New
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Diff: Components/hts221/hts221_class.h
- Revision:
- 50:f507d4465c31
- Parent:
- 46:badcff0675e8
- Child:
- 54:2a676c734b30
diff -r cb18488509a5 -r f507d4465c31 Components/hts221/hts221_class.h --- a/Components/hts221/hts221_class.h Mon Jun 08 17:37:59 2015 +0200 +++ b/Components/hts221/hts221_class.h Mon Jun 08 18:04:19 2015 +0200 @@ -67,6 +67,10 @@ return HTS221_Init((HUM_TEMP_InitTypeDef*)init_struct); } + /** + * @brief Enter sensor shutdown mode + * @return 0 in case of success, an error code otherwise + */ virtual int PowerOff(void) { return HTS221_Power_OFF(); } @@ -75,6 +79,10 @@ return HTS221_ReadID(ht_id); } + /** + * @brief Reset sensor + * @return 0 in case of success, an error code otherwise + */ virtual int Reset(void) { return HTS221_RebootCmd(); } @@ -87,13 +95,6 @@ return HTS221_GetTemperature(pfData); } - 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 void AttachIT(void (*fptr)(void)) { /* not yet implemented */ } - protected: /*** Methods ***/ HUM_TEMP_StatusTypeDef HTS221_Init(HUM_TEMP_InitTypeDef *HTS221_Init);