Skip to main content

pamoja_modbus_line_attach

Function pamoja_modbus_line_attach 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_modbus_line_attach( line: *const PamojaModbusLine, server: *const PamojaModbusServer, ) -> PamojaStatus
Expand description

Puts a device on a line. The line shares the device, so the caller’s handle still reads and changes it.

§Arguments

  • line - the line.
  • server - the device.

§Returns

PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null argument.

§Safety

line and server must be live handles or null.