/* This API validates the ODR value set by the user. 
param bandwidth : odr for accelerometer  */
static uint16_t validate_odr(uint8_t odr)
/* This API validates the ODR value set by the user. 
param bandwidth : odr for accelerometer  */
static uint16_t validate_odr(uint8_t odr)
{
    uint16_t rslt = BMA4_OK;
    if ((odr < BMA4_OUTPUT_DATA_RATE_0_78HZ) || (odr > BMA4_OUTPUT_DATA_RATE_1600HZ)) {
        rslt = BMA4_E_OUT_OF_RANGE;
    }
    return rslt;
}