Beta

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_IKS01A2 by ST

Revision:
6:671fd10a51b7
Parent:
1:bd2a01e81e6f
Child:
9:038121268b07
diff -r 63b2b4c21092 -r 671fd10a51b7 Components/LPS22HBSensor/LPS22HBSensor.h
--- a/Components/LPS22HBSensor/LPS22HBSensor.h	Thu Dec 15 14:03:46 2016 +0000
+++ b/Components/LPS22HBSensor/LPS22HBSensor.h	Tue Mar 14 13:41:32 2017 +0100
@@ -45,7 +45,7 @@
 /* Includes ------------------------------------------------------------------*/
 
 #include "DevI2C.h"
-#include "LPS22HB_Driver.h"
+#include "LPS22HB_driver.h"
 #include "PressureSensor.h"
 #include "TempSensor.h"
 
@@ -59,17 +59,17 @@
   public:
     LPS22HBSensor(DevI2C &i2c);
     LPS22HBSensor(DevI2C &i2c, uint8_t address);
-    virtual int Init(void *init);
-    virtual int ReadID(uint8_t *id);
+    virtual int init(void *init);
+    virtual int read_id(uint8_t *id);
     virtual int GetPressure(float *pfData);
     virtual int GetTemperature(float *pfData);
-    int Enable(void);
-    int Disable(void);
+    int enable(void);
+    int disable(void);
     int Reset(void);
     int Get_ODR(float *odr);
     int Set_ODR(float odr);
-    int ReadReg(uint8_t reg, uint8_t *data);
-    int WriteReg(uint8_t reg, uint8_t data);
+    int read_reg(uint8_t reg, uint8_t *data);
+    int write_reg(uint8_t reg, uint8_t data);
     
     /**
      * @brief Utility function to read data.
@@ -78,7 +78,7 @@
      * @param  NumByteToRead: number of bytes to be read.
      * @retval 0 if ok, an error code otherwise.
      */
-    uint8_t IO_Read(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead)
+    uint8_t io_read(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToRead)
     {
         return (uint8_t) dev_i2c.i2c_read(pBuffer, address, RegisterAddr, NumByteToRead);
     }
@@ -90,7 +90,7 @@
      * @param  NumByteToWrite: number of bytes to write.
      * @retval 0 if ok, an error code otherwise.
      */
-    uint8_t IO_Write(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite)
+    uint8_t io_write(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite)
     {
         return (uint8_t) dev_i2c.i2c_write(pBuffer, address, RegisterAddr, NumByteToWrite);
     }
@@ -112,8 +112,8 @@
 #ifdef __cplusplus
  extern "C" {
 #endif
-uint8_t LPS22HB_IO_Write( void *handle, uint8_t WriteAddr, uint8_t *pBuffer, uint16_t nBytesToWrite );
-uint8_t LPS22HB_IO_Read( void *handle, uint8_t ReadAddr, uint8_t *pBuffer, uint16_t nBytesToRead );
+uint8_t LPS22HB_io_write( void *handle, uint8_t WriteAddr, uint8_t *pBuffer, uint16_t nBytesToWrite );
+uint8_t LPS22HB_io_read( void *handle, uint8_t ReadAddr, uint8_t *pBuffer, uint16_t nBytesToRead );
 #ifdef __cplusplus
   }
 #endif