#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_frame_registers(
frame: *const PamojaModbusFrame,
out_registers: *mut *mut PamojaRegisters,
) -> PamojaStatusExpand description
Reads the 16-bit registers out of a read-registers response.
§Returns
PamojaStatus::Ok on success, with *out_registers set to a new handle the
caller must release with pamoja_registers_free, or
PamojaStatus::Codec if the response is not a well-formed read-registers
reply.
§Safety
frame must be a live handle from pamoja_modbus_frame_parse or null, and
out_registers must point to a writable *mut PamojaRegisters.