接前一篇文章:ICM20948 DMP代码详解(99)
上一回解析到inv_set_hw_smplrt_dmp_odrs函数的以下代码片段:
// switch between low power and low noise at 500Hz boundaryif (minDly != 0xFFFF) {// above 500Hz boundary, force LN modeif (minDly==1) {if (s->base_state.chip_lp_ln_mode == CHIP_LOW_POWER_ICM20948) {s->go_back_lp_when_odr_low = 1;inv_icm20948_enter_low_noise_mode(s);}} else { // below 500 Hz boundary, go back to originally requested modeif (s->go_back_lp_when_odr_low) {s->go_back_lp_when_odr_low = 0;inv_icm20948_enter_duty_cycle_mode(s);}