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: X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Diff: Components/Common/HumTemp.h
- Revision:
- 4:566f2c41dc1d
- Parent:
- 3:088aa5839e0d
- Child:
- 18:1cb4ae9d83e7
--- a/Components/Common/HumTemp.h Mon Apr 13 14:44:02 2015 +0200
+++ b/Components/Common/HumTemp.h Tue Apr 14 15:32:06 2015 +0200
@@ -37,8 +37,8 @@
*/
/* Define to prevent from recursive inclusion --------------------------------*/
-#ifndef __HUM_TEMP_H
-#define __HUM_TEMP_H
+#ifndef __HUM_TEMP_CLASS_H
+#define __HUM_TEMP_CLASS_H
/* Includes ------------------------------------------------------------------*/
#include "mbed.h"
@@ -50,10 +50,10 @@
class HumTemp
{
public:
- virtual HUM_TEMP_StatusTypeDef Init(HUM_TEMP_InitTypeDef&) = 0;
+ virtual HUM_TEMP_StatusTypeDef Init(HUM_TEMP_InitTypeDef*) = 0;
virtual HUM_TEMP_StatusTypeDef PowerOFF(void) = 0;
- virtual HUM_TEMP_StatusTypeDef ReadID(uint8_t&) = 0;
+ virtual HUM_TEMP_StatusTypeDef ReadID(uint8_t*) = 0;
virtual HUM_TEMP_StatusTypeDef Reset(void) = 0;
virtual void ConfigIT(uint16_t) = 0;
@@ -62,8 +62,8 @@
virtual uint8_t ITStatus(uint16_t, uint16_t) = 0;
virtual void ClearIT(uint16_t, uint16_t) = 0;
- virtual HUM_TEMP_StatusTypeDef GetHumidity(float&) = 0;
- virtual HUM_TEMP_StatusTypeDef GetTemperature(float& = 0);
+ virtual HUM_TEMP_StatusTypeDef GetHumidity(float*) = 0;
+ virtual HUM_TEMP_StatusTypeDef GetTemperature(float*) = 0;
virtual void AttachIT(void (*fptr)(void)) = 0;
@@ -71,4 +71,4 @@
HumTemp(void) {};
};
-#endif /* __HUM_TEMP_H */
+#endif /* __HUM_TEMP_CLASS_H */
