Question
Init sths34pf80.c / sths34pf80.h
I am looking to interface with a sths34pf80 on a nucleo-f401re. I want to set up I2C to R/W to the registers and use the included functions.
BSP_I2C1_Init();
uint8_t ret=0;
STHS34PF80_Object_t pObj;
STHS34PF80_IO_t pIO;
STHS34PF80_Init(&pObj);
STHS34PF80_RegisterBusIO(&pObj, &pIO);
if(STHS34PF80_ReadID(&pObj, &ret)==0){
//check status
}
I have tried this above using the functions in sths34pf80.c/sths34pf80.h. Have not been able to get this to work. Any suggestions?
Thanks
