Skip to main content

pamoja_modbus_write_single_register

Function pamoja_modbus_write_single_register 

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

Builds a write-single-register request frame (function 0x06).

§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.