#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_frame_parse(
bytes: *const u8,
bytes_len: usize,
out_frame: *mut *mut PamojaModbusFrame,
) -> PamojaStatusExpand description
Parses a received RTU frame, verifying its CRC.
§Returns
PamojaStatus::Ok on success, with *out_frame set to a new handle the
caller must release with pamoja_modbus_frame_free, or
PamojaStatus::Codec if the frame is truncated, oversized, or its CRC does
not match its contents.
§Safety
bytes must point to at least bytes_len readable bytes, or be null when
bytes_len is 0, and out_frame must point to a writable
*mut PamojaModbusFrame.