#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_frame_pdu(
frame: *const PamojaModbusFrame,
) -> *const u8Expand description
Returns a pointer to a frame’s PDU: the function code and its data, without the address or the CRC.
Use pamoja_modbus_frame_pdu_len for the length. The pointer is valid until
the handle is freed.
§Returns
A pointer to the PDU, or null if frame is null.
§Safety
frame must be a live handle from pamoja_modbus_frame_parse, or null.