Skip to main content

pamoja_modbus_read_coils

Function pamoja_modbus_read_coils 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_modbus_read_coils( address: u8, start: u16, count: u16, out_buffer: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Builds a read-coils request frame (function 0x01).

§Returns

PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle holding the frame, which the caller must release with pamoja_buffer_free.

§Safety

out_buffer must point to a writable *mut PamojaBuffer.