/* This API is used to get the pressure oversampling setting in the register 0xF4 bits from 2 to 4.  */
BMP280_RETURN_FUNCTION_TYPE bmp280_get_oversamp_pressure(u8 *v_value_u8)
/* This API is used to get the pressure oversampling setting in the register 0xF4 bits from 2 to 4.  */
BMP280_RETURN_FUNCTION_TYPE bmp280_get_oversamp_pressure(u8 *v_value_u8)
{
	BMP280_RETURN_FUNCTION_TYPE com_rslt = ERROR;
	u8 v_data_u8 = BMP280_INIT_VALUE;
	if (p_bmp280 == BMP280_NULL) {
		com_rslt = E_BMP280_NULL_PTR;
	} else {
		com_rslt = p_bmp280->BMP280_BUS_READ_FUNC(p_bmp280->dev_addr,
				BMP280_CTRL_MEAS_REG_OVERSAMP_PRESSURE__REG,
				&v_data_u8, BMP280_GEN_READ_WRITE_DATA_LENGTH);
		*v_value_u8 = BMP280_GET_BITSLICE(v_data_u8,
				BMP280_CTRL_MEAS_REG_OVERSAMP_PRESSURE);
		p_bmp280->oversamp_pressure = *v_value_u8;
	}
	return com_rslt;
}