/* This API initialize the auxiliary sensor in order to access it.  */
int8_t bmi160_aux_init(const struct bmi160_dev *dev)
/* This API initialize the auxiliary sensor in order to access it.  */
int8_t bmi160_aux_init(const struct bmi160_dev *dev)
{
    int8_t rslt;
    rslt = null_ptr_check(dev);
    if (rslt != BMI160_OK)
    {
        rslt = BMI160_E_NULL_PTR;
    }
    else
    {
        if (dev->aux_cfg.aux_sensor_enable == BMI160_ENABLE)
        {
            rslt = config_aux_settg(dev);
        }
        else
        {
            rslt = BMI160_E_INVALID_INPUT;
        }
    }
    return rslt;
}