#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_i2c_address_seven_bit(
address: u8,
out_address: *mut PamojaI2cAddress,
) -> PamojaStatusExpand description
Validates a 7-bit I2C address.
The whole 0x00..=0x7F range is accepted, reserved addresses included, since
those are still legal on the wire. Test for them with
pamoja_i2c_address_is_reserved.
§Returns
PamojaStatus::Ok on success, with *out_address set, or
PamojaStatus::InvalidArgument if address is above 0x7F.
§Safety
out_address must point to a writable PamojaI2cAddress.