#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_opt3001_word_from_bytes(
bytes: *const u8,
bytes_len: usize,
out_word: *mut u16,
) -> PamojaStatusExpand description
Reads the two bytes an OPT3001 sends for a register, most significant first.
§Returns
PamojaStatus::Ok on success, with *out_word set, or
PamojaStatus::InvalidArgument if the buffer is not two bytes.
§Safety
bytes must point to at least bytes_len readable bytes, and out_word must
point to a writable uint16_t.