/* This API configures the pins to fire the interrupt signal when it occurs.  */
static int8_t set_intr_pin_config(const struct bmi160_int_settg *int_config, const struct bmi160_dev *dev)
/* This API configures the pins to fire the interrupt signal when it occurs.  */
static int8_t set_intr_pin_config(const struct bmi160_int_settg *int_config, const struct bmi160_dev *dev)
{
    int8_t rslt;
    rslt = config_int_out_ctrl(int_config, dev);
    if (rslt == BMI160_OK)
    {
        rslt = config_int_latch(int_config, dev);
    }
    return rslt;
}