#include "bma253.h" int bma253_get_chip_id(void){ HAL_I2C_Mem_Write(&hi2c2, REG_ADDR_BGW_CHIPID, reg, 1, &tmp_afe, 1, 10); }