#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_raw(
address: u8,
function: u8,
data: *const u8,
data_len: usize,
out_buffer: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Builds a request frame from a raw function code and data.
This is the escape hatch for the function codes the SDK does not name.
§Returns
PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle
holding the frame, or PamojaStatus::InvalidArgument if the data is longer
than a PDU may be.
§Safety
data must point to at least data_len readable bytes, or be null when
data_len is 0, and out_buffer must point to a writable
*mut PamojaBuffer.