CS101_ASDU_create

Function CS101_ASDU_create 

Source
pub unsafe extern "C" fn CS101_ASDU_create(
    parameters: CS101_AppLayerParameters,
    isSequence: bool,
    cot: CS101_CauseOfTransmission,
    oa: c_int,
    ca: c_int,
    isTest: bool,
    isNegative: bool,
) -> CS101_ASDU
Expand description

Create a new ASDU. The type ID will be derived from the first InformationObject that will be added

§Arguments

  • parameters - the application layer parameters used to encode the ASDU
  • isSequence - if the information objects will be encoded as a compact sequence of information objects with subsequent IOA values
  • cot - cause of transmission (COT)
  • oa - originator address (OA) to be used
  • ca - the common address (CA) of the ASDU
  • isTest - if the test flag will be set or not
  • isNegative - if the negative falg will be set or not

§Returns

the new CS101_ASDU instance