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: Components/Common/Pressure.h
- Revision:
- 18:1cb4ae9d83e7
- Parent:
- 4:566f2c41dc1d
--- a/Components/Common/Pressure.h Wed May 27 12:03:41 2015 +0200
+++ b/Components/Common/Pressure.h Fri May 29 14:23:22 2015 +0200
@@ -42,7 +42,6 @@
/* Includes ------------------------------------------------------------------*/
#include "mbed.h"
-#include "pressure.h"
/* Classes ------------------------------------------------------------------*/
/** An abstract class for Pressure components
@@ -50,11 +49,11 @@
class Pressure
{
public:
- virtual PRESSURE_StatusTypeDef Init(PRESSURE_InitTypeDef*) = 0;
+ virtual int Init(void*) = 0;
- virtual PRESSURE_StatusTypeDef PowerOff(void) = 0;
- virtual PRESSURE_StatusTypeDef ReadID(uint8_t*) = 0;
- virtual PRESSURE_StatusTypeDef Reset(void) = 0;
+ virtual int PowerOff(void) = 0;
+ virtual int ReadID(uint8_t*) = 0;
+ virtual int Reset(void) = 0;
virtual void ConfigIT(uint16_t) = 0;
virtual void EnableIT(uint8_t) = 0;
@@ -62,8 +61,8 @@
virtual uint8_t ITStatus(uint16_t, uint16_t) = 0;
virtual void ClearIT(uint16_t, uint16_t) = 0;
- virtual PRESSURE_StatusTypeDef GetPressure(float*) = 0;
- virtual PRESSURE_StatusTypeDef GetTemperature(float*) = 0;
+ virtual int GetPressure(float*) = 0;
+ virtual int GetTemperature(float*) = 0;
virtual void SlaveAddrRemap(uint8_t) = 0;
virtual void AttachIT(void (*fptr)(void)) = 0;
