Skip to main content

pamoja_bmp280_ctrl_meas_from_bits

Function pamoja_bmp280_ctrl_meas_from_bits 

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

Parses a BMP280 ctrl_meas register value.

§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 PamojaBmp280CtrlMeas.