/* This API used to get the Operational Mode from the sensor in the register 0xF4 bit 0 and 1.  */
BMP280_RETURN_FUNCTION_TYPE bmp280_get_power_mode(u8 *v_power_mode_u8)
/* This API used to get the Operational Mode from the sensor in the register 0xF4 bit 0 and 1.  */
BMP280_RETURN_FUNCTION_TYPE bmp280_get_power_mode(u8 *v_power_mode_u8)
{
	BMP280_RETURN_FUNCTION_TYPE com_rslt = ERROR;
	u8 v_mode_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_POWER_MODE__REG,
				&v_mode_u8, BMP280_GEN_READ_WRITE_DATA_LENGTH);
		*v_power_mode_u8 = BMP280_GET_BITSLICE(v_mode_u8,
				BMP280_CTRL_MEAS_REG_POWER_MODE);
	}
	return com_rslt;
}