Beta

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_IKS01A2 by ST

Revision:
9:038121268b07
Parent:
6:671fd10a51b7
--- a/Components/LPS22HBSensor/LPS22HBSensor.h	Tue Mar 14 13:56:20 2017 +0100
+++ b/Components/LPS22HBSensor/LPS22HBSensor.h	Tue Mar 14 13:30:55 2017 +0000
@@ -61,13 +61,13 @@
     LPS22HBSensor(DevI2C &i2c, uint8_t address);
     virtual int init(void *init);
     virtual int read_id(uint8_t *id);
-    virtual int GetPressure(float *pfData);
-    virtual int GetTemperature(float *pfData);
+    virtual int get_pressure(float *pfData);
+    virtual int get_temperature(float *pfData);
     int enable(void);
     int disable(void);
-    int Reset(void);
-    int Get_ODR(float *odr);
-    int Set_ODR(float odr);
+    int reset(void);
+    int get_odr(float *odr);
+    int set_odr(float odr);
     int read_reg(uint8_t reg, uint8_t *data);
     int write_reg(uint8_t reg, uint8_t data);
     
@@ -80,7 +80,7 @@
      */
     uint8_t io_read(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead)
     {
-        return (uint8_t) dev_i2c.i2c_read(pBuffer, address, RegisterAddr, NumByteToRead);
+        return (uint8_t) _dev_i2c.i2c_read(pBuffer, _address, RegisterAddr, NumByteToRead);
     }
     
     /**
@@ -92,7 +92,7 @@
      */
     uint8_t io_write(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite)
     {
-        return (uint8_t) dev_i2c.i2c_write(pBuffer, address, RegisterAddr, NumByteToWrite);
+        return (uint8_t) _dev_i2c.i2c_write(pBuffer, _address, RegisterAddr, NumByteToWrite);
     }
 
   private:
@@ -100,13 +100,13 @@
     int Set_ODR_When_Disabled(float odr);
 
     /* Helper classes. */
-    DevI2C &dev_i2c;
+    DevI2C &_dev_i2c;
     
     /* Configuration */
-    uint8_t address;
+    uint8_t _address;
     
-    uint8_t isEnabled;
-    float Last_ODR;
+    uint8_t _is_enabled;
+    float _last_odr;
 };
 
 #ifdef __cplusplus