I2C
https://www.cnblogs.com/yeshenmeng/p/9766054.htmlhttps://www.cnblogs.com/121792730applllo/p/5044920.html SampleSensorInit->HAL_I2C_IsDeviceReady&&LIS2DS12_ACC_ReadReg(获取WhoAmI) && LIS2DS12_ACC_W_SOFT_RESET (写入)&& LIS2DS12_ACC_R_SOFT_RESET(读取)
H_5GEC_SENSOR_ACC_IsDeviceReady
H_5GEC_SENSOR_Acc_Active_OFF
H_5GEC_SENSOR_ACC_InitFIFO
H_5GEC_SENSOR_ACC_StartFIFO
采集后等中断 然后
H_5GEC_SENSOR_ACC_FifoValueCalculate->H_5GEC_SENSOR_ACC_RegAccess->LIS2DS12_ACC_ReadReg->HAL_I2C_Mem_Read
H_5GEC_SENSOR_Acc_Active_OFF
H_5GEC_SENSOR_ACC_InitFIFO
H_5GEC_SENSOR_ACC_StartFIFO
页:
[1]