#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_modbus_write_multiple_coils(
address: u8,
start: u16,
values: *const u8,
count: usize,
out_buffer: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Builds a write-multiple-coils request frame (function 0x0F).
§Returns
PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle
holding the frame, or PamojaStatus::InvalidArgument if count is zero or
beyond what one request may carry.
§Safety
values must point to at least count readable bytes, one per coil and
non-zero for on, or be null when count is 0, and out_buffer must point to
a writable *mut PamojaBuffer.