Skip to main content

pamoja_modbus_write_single_coil

Function pamoja_modbus_write_single_coil 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_modbus_write_single_coil( address: u8, coil: u16, on: bool, out_buffer: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Builds a write-single-coil request frame (function 0x05).

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