Function pamoja_ads1115_sample_input
Source #[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ads1115_sample_input(
sensor: *mut PamojaAds1115,
mux: u8,
out_sample: *mut PamojaAds1115Sample,
) -> PamojaStatus
Expand description
Converts another input once, leaving the configured input as it was.
§Arguments
sensor - the driver.
mux - the input multiplexer code for this one conversion.
out_sample - receives the conversion.
§Returns
As pamoja_ads1115_sample.
§Safety
sensor must be a live handle or null, and out_sample a writable pointer or null.