Skip to main content

pamoja_modbus_read_holding_registers

Function pamoja_modbus_read_holding_registers 

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

Builds a read-holding-registers request frame (function 0x03).

§Returns

PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle holding the frame.

§Safety

out_buffer must point to a writable *mut PamojaBuffer.