Skip to main content

pamoja_bme280_config_from_bits

Function pamoja_bme280_config_from_bits 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_bme280_config_from_bits( bits: u8, out_config: *mut PamojaBme280Config, ) -> PamojaStatus
Expand description

Parses a BME280 config register value.

§Arguments

  • bits - the register value.
  • out_config - receives the fields.

§Returns

PamojaStatus::Ok, with *out_config filled in. Every register value decodes, so this fails only on a null pointer.

§Safety

out_config must point to a writable PamojaBme280Config.