#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lora_radio_read_register(
radio: *mut PamojaLoraRadio,
address: u16,
out_value: *mut u8,
) -> PamojaStatusExpand description
Reads one register of a radio’s chip.
§Arguments
radio- the radio.address- the register address: 16 bits on the SX126x, 0x00 to 0x7F on the SX127x.out_value- receives the value.
§Returns
PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null argument or an SX127x
address past 0x7F; or PamojaStatus::Io when the chip does not answer.
§Safety
radio must be a live handle or null, and out_value writable or null.