/* This API sets FIFO full interrupt of the sensor.This interrupt occurs when the FIFO is full and the next full data sample would cause a FIFO overflow, which may delete the old samples.  */
static int8_t set_fifo_full_int(const struct bmi160_int_settg *int_config, const struct bmi160_dev *dev)
/* This API sets FIFO full interrupt of the sensor.This interrupt occurs when the FIFO is full and the next full data sample would cause a FIFO overflow, which may delete the old samples.  */
static int8_t set_fifo_full_int(const struct bmi160_int_settg *int_config, const struct bmi160_dev *dev)
{
    int8_t rslt = BMI160_OK;
    if ((dev == NULL) || (dev->delay_ms == NULL))
    {
        rslt = BMI160_E_NULL_PTR;
    }
    else
    {
        rslt = enable_fifo_full_int(int_config, dev);
        if (rslt == BMI160_OK)
        {
            rslt = set_intr_pin_config(int_config, dev);
            if (rslt == BMI160_OK)
            {
                rslt = map_hardware_interrupt(int_config, dev);
            }
        }
    }
    return rslt;
}