#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_ina219_address(
a1: u8,
a0: u8,
out_address: *mut u8,
) -> PamojaStatusExpand description
Returns the I2C address an INA219’s A1 and A0 pin codes select, from Table 1 of its
datasheet: 0 for GND, 1 for VS+, 2 for SDA, 3 for SCL.
§Arguments
a1- what the A1 pin is tied to.a0- what the A0 pin is tied to.out_address- receives the 7-bit address,0x40..=0x4F.
§Returns
PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null pointer or a code
above 3.
§Safety
out_address must point to a writable uint8_t, or be null.