ICM20948 DMP代码详解(69)
接前一篇文章:ICM20948 DMP代码详解(68)
上一回开始解析inv_icm20948_set_gyro_fullscale函数中调用的inv_icm20948_set_gyro_sf函数,本回继续解析该函数。为了便于理解和回顾,再次贴出inv_icm20948_set_gyro_sf函数代码,在EMD-Core\sources\Invn\Devices\Drivers\ICM20948\Icm20948DataBaseDriver.c中,如下:
/**
* Sets the DMP for a particular gyro configuration.
* @param[in] gyro_div Value written to GYRO_SMPLRT_DIV register, where
* 0=1125Hz sample rate, 1=562.5Hz sample rate, ... 4=225Hz sample rate, ...
* 10=102.2727Hz sample rate, ... etc.
* @param[in] gyro_level 0=250 dps, 1=500 dps, 2