/* This API is used to validate the device structure pointer for null conditions. 
This internal API is used to validate the device structure pointer for null conditions. */
static int8_t null_ptr_check(const struct bmi160_dev *dev)
/* This API is used to validate the device structure pointer for null conditions. 
This internal API is used to validate the device structure pointer for null conditions. */
static int8_t null_ptr_check(const struct bmi160_dev *dev)
{
    int8_t rslt;
    if ((dev == NULL) || (dev->read == NULL) || (dev->write == NULL) || (dev->delay_ms == NULL))
    {
        rslt = BMI160_E_NULL_PTR;
    }
    else
    {
        rslt = BMI160_OK;
    }
    return rslt;
}