/* This API is used to reads filter setting in the register 0xF5 bit 3 and 4.  */
BMP280_RETURN_FUNCTION_TYPE bmp280_get_filter(u8 *v_value_u8)
/* This API is used to reads filter setting in the register 0xF5 bit 3 and 4.  */
BMP280_RETURN_FUNCTION_TYPE bmp280_get_filter(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_CONFIG_REG_FILTER__REG, &v_data_u8,
				BMP280_GEN_READ_WRITE_DATA_LENGTH);
		*v_value_u8 = BMP280_GET_BITSLICE(v_data_u8,
				BMP280_CONFIG_REG_FILTER);
	}
	return com_rslt;
}