/* This API configure the interrupt PIN setting for no motion/slow motion interrupt.  */
static int8_t config_no_motion_int_settg(const struct bmi160_int_settg *int_config, const struct bmi160_acc_no_motion_int_cfg *no_mot_int_cfg, const struct bmi160_dev *dev)
/* This API configure the interrupt PIN setting for no motion/slow motion interrupt.  */
static int8_t config_no_motion_int_settg(const struct bmi160_int_settg *int_config, const struct bmi160_acc_no_motion_int_cfg *no_mot_int_cfg, const struct bmi160_dev *dev)
{
    int8_t rslt;
    rslt = set_intr_pin_config(int_config, dev);
    if (rslt == BMI160_OK)
    {
        rslt = map_feature_interrupt(int_config, dev);
        if (rslt == BMI160_OK)
        {
            rslt = config_no_motion_data_src(no_mot_int_cfg, dev);
            if (rslt == BMI160_OK)
            {
                rslt = config_no_motion_dur_thr(no_mot_int_cfg, dev);
            }
        }
    }
    return rslt;
}