CS101_Master_create

Function CS101_Master_create 

Source
pub unsafe extern "C" fn CS101_Master_create(
    port: SerialPort,
    llParameters: LinkLayerParameters,
    alParameters: CS101_AppLayerParameters,
    mode: IEC60870_LinkLayerMode,
) -> CS101_Master
Expand description

Create a new master instance

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

§Returns

the new CS101_Master instance