UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

115 lines (114 loc) 4.45 kB
import { OPTIONAL, BIT_STRING, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; export { RTABapdu, _decode_RTABapdu, _encode_RTABapdu, } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/RTABapdu.ta'; import { AbortReason } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/AbortReason.ta'; export { AbortReason, AbortReason_localSystemProblem, localSystemProblem, AbortReason_invalidParameter, invalidParameter, AbortReason_unrecognizedActivity, unrecognizedActivity, AbortReason_temporaryProblem, temporaryProblem, AbortReason_protocolError, protocolError, AbortReason_permanentProblem, permanentProblem, AbortReason_userError, userError, AbortReason_transferCompleted, transferCompleted, _decode_AbortReason, _encode_AbortReason, } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/AbortReason.ta'; export { OPEN } from '@wildboar/rtse/src/lib/modules/Reliable-Transfer-APDU/OPEN.oca'; /** * @summary ARU_PPDU_x400_mode_parameters * @description * * ### ASN.1 Definition: * * ```asn1 * ARU-PPDU-x400-mode-parameters ::= SEQUENCE { -- REMOVED_FROM_UNNESTING -- } * ``` * * @class */ export declare class ARU_PPDU_x400_mode_parameters { /** * @summary `abortReason`. * @public * @readonly */ readonly abortReason: OPTIONAL<AbortReason>; /** * @summary `reflectedParameter`. * @public * @readonly */ readonly reflectedParameter: OPTIONAL<BIT_STRING>; /** * @summary `userdataAB`. * @public * @readonly */ readonly userdataAB: OPTIONAL<_Element>; constructor( /** * @summary `abortReason`. * @public * @readonly */ abortReason: OPTIONAL<AbortReason>, /** * @summary `reflectedParameter`. * @public * @readonly */ reflectedParameter: OPTIONAL<BIT_STRING>, /** * @summary `userdataAB`. * @public * @readonly */ userdataAB: OPTIONAL<_Element>); /** * @summary Restructures an object into a ARU_PPDU_x400_mode_parameters * @description * * This takes an `object` and converts it to a `ARU_PPDU_x400_mode_parameters`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `ARU_PPDU_x400_mode_parameters`. * @returns {ARU_PPDU_x400_mode_parameters} */ static _from_object(_o: { [_K in keyof ARU_PPDU_x400_mode_parameters]: ARU_PPDU_x400_mode_parameters[_K]; }): ARU_PPDU_x400_mode_parameters; } /** * @summary The Leading Root Component Types of ARU_PPDU_x400_mode_parameters * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_ARU_PPDU_x400_mode_parameters: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of ARU_PPDU_x400_mode_parameters * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_ARU_PPDU_x400_mode_parameters: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of ARU_PPDU_x400_mode_parameters * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_ARU_PPDU_x400_mode_parameters: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) ARU_PPDU_x400_mode_parameters * @function * @param {_Element} el The element being decoded. * @returns {ARU_PPDU_x400_mode_parameters} The decoded data structure. */ export declare function _decode_ARU_PPDU_x400_mode_parameters(el: _Element): ARU_PPDU_x400_mode_parameters; /** * @summary Encodes a(n) ARU_PPDU_x400_mode_parameters into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The ARU_PPDU_x400_mode_parameters, encoded as an ASN.1 Element. */ export declare function _encode_ARU_PPDU_x400_mode_parameters(value: ARU_PPDU_x400_mode_parameters, elGetter: $.ASN1Encoder<ARU_PPDU_x400_mode_parameters>): _Element;