AnsweredAssumed Answered

HTS221 driver integration for imx6

Question asked by quentin duhamel on Jun 21, 2017
Latest reply on Jun 21, 2017 by quentin duhamel

Hi,

 

I'm having trouble with HTS221 device driver integration (for a FreeRTOS app). ST provides a platform independent driver (see http://www.st.com/en/mems-and-sensors/hts221.html ). But those drivers have functions which need to be remapped :

         // the user must redefine the proper HTS221_WriteReg
         #define HTS221_WriteReg(RegAddr, NumByteToWrite, Data)  HAL_WriteReg(HTS221_I2C_ADDRESS, RegAddr,      NumByteToWrite, Data)

 

I want to use this driver with I2C but I don't find how, since I'm not use to play with drivers.

 

Did someone already do this ? Or use another similary driver with an imx6 board ?

 

QD

Outcomes