CS101_Master_createEx

Function CS101_Master_createEx 

Source
pub unsafe extern "C" fn CS101_Master_createEx(
    serialPort: SerialPort,
    llParameters: LinkLayerParameters,
    alParameters: CS101_AppLayerParameters,
    linkLayerMode: IEC60870_LinkLayerMode,
    queueSize: c_int,
) -> CS101_Master
Expand description

Create a new master instance and specify message queue size (for balanced mode)

§Arguments

  • port - the serial port to use
  • llParameters - the link layer parameters to use
  • alParameters - the application layer parameters to use
  • mode - the link layer mode (either IEC60870_LINK_LAYER_BALANCED or IEC60870_LINK_LAYER_UNBALANCED)
  • queueSize - set the message queue size (only for balanced mode)

§Returns

the new CS101_Master instance