bmi2_ois.c
/*!
 * @brief This internal API is used to validate the device structure pointer for
 * null conditions.
 */
@brief This internal API is used to validate the device structure pointer for
null conditions.
@brief This internal API is used to validate the device structure pointer for null conditions .
static int8_t null_ptr_check(const struct bmi2_ois_dev *ois_dev)
{
    int8_t rslt = BMI2_OIS_OK;
    if ((ois_dev == NULL) || (ois_dev->ois_read == NULL) || (ois_dev->ois_write == NULL) ||
        (ois_dev->ois_delay_us == NULL))
    {
        rslt = BMI2_OIS_E_NULL_PTR;
    }
    return rslt;
}
static int8_t null_ptr_check ( const struct bmi2_ois_dev * ois_dev ) { int8_t rslt = BMI2_OIS_OK ; if ( ( ois_dev == NULL ) || ( ois_dev -> ois_read == NULL ) || ( ois_dev -> ois_write == NULL ) || ( ois_dev -> ois_delay_us == NULL ) ) { rslt = BMI2_OIS_E_NULL_PTR ; } return rslt ; }
@brief This internal API is used to validate the device structure pointer for
 null conditions.
@brief This internal API is used to validate the device structure pointer for null conditions .
/* Variable to define error */ /* Device structure pointer is NULL */