Skip to main content

pamoja_ads1115_sim_part

Function pamoja_ads1115_sim_part 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_ads1115_sim_part( address: u8, ) -> *mut PamojaI2cPart
Expand description

Creates a simulated ADS1115 reading PAMOJA_ADS1115_SIM_VOLTS at the range a driver starts with.

§Arguments

  • address - the address it answers to.

§Returns

The part, which the caller releases with crate::hal::pamoja_i2c_part_free.