aes70 1.5.2 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/OCP1.js CHANGED
@@ -1,162 +1,162 @@
1
- export { Bitset16 } from './OCP1/Bitset16.js'
2
- export { Bitset8 } from './OCP1/Bitset8.js'
3
- export { Enum } from './OCP1/Enum.js'
4
- export { Enum16 } from './OCP1/Enum16.js'
5
- export { Enum8 } from './OCP1/Enum8.js'
6
- export { OcaApplicationNetworkCommand } from './OCP1/OcaApplicationNetworkCommand.js'
7
- export { OcaApplicationNetworkState } from './OCP1/OcaApplicationNetworkState.js'
8
- export { OcaBaseDataType } from './OCP1/OcaBaseDataType.js'
9
- export { OcaBitSet16 } from './OCP1/OcaBitSet16.js'
10
- export { OcaBitstring } from './OCP1/OcaBitstring.js'
11
- export { OcaBlob } from './OCP1/OcaBlob.js'
12
- export { OcaBlobFixedLen } from './OCP1/OcaBlobFixedLen.js'
13
- export { OcaBlockMember } from './OCP1/OcaBlockMember.js'
14
- export { OcaBoolean } from './OCP1/OcaBoolean.js'
15
- export { OcaClassAuthorityID } from './OCP1/OcaClassAuthorityID.js'
16
- export { OcaClassIdentification } from './OCP1/OcaClassIdentification.js'
17
- export { OcaClassicalFilterShape } from './OCP1/OcaClassicalFilterShape.js'
18
- export { OcaComponent } from './OCP1/OcaComponent.js'
19
- export { OcaDBr } from './OCP1/OcaDBr.js'
20
- export { OcaDelayUnit } from './OCP1/OcaDelayUnit.js'
21
- export { OcaDelayValue } from './OCP1/OcaDelayValue.js'
22
- export { OcaDeviceState } from './OCP1/OcaDeviceState.js'
23
- export { OcaDynamicsFunction } from './OCP1/OcaDynamicsFunction.js'
24
- export { OcaEnumItem } from './OCP1/OcaEnumItem.js'
25
- export { OcaEnumItem16 } from './OCP1/OcaEnumItem16.js'
26
- export { OcaEvent } from './OCP1/OcaEvent.js'
27
- export { OcaEventID } from './OCP1/OcaEventID.js'
28
- export { OcaFilterPassband } from './OCP1/OcaFilterPassband.js'
29
- export { OcaFloat32 } from './OCP1/OcaFloat32.js'
30
- export { OcaFloat64 } from './OCP1/OcaFloat64.js'
31
- export { OcaGlobalTypeIdentifier } from './OCP1/OcaGlobalTypeIdentifier.js'
32
- export { OcaGrouperCitizen } from './OCP1/OcaGrouperCitizen.js'
33
- export { OcaGrouperEnrollment } from './OCP1/OcaGrouperEnrollment.js'
34
- export { OcaGrouperGroup } from './OCP1/OcaGrouperGroup.js'
35
- export { OcaGrouperMode } from './OCP1/OcaGrouperMode.js'
36
- export { OcaGrouperStatusChangeEventData } from './OCP1/OcaGrouperStatusChangeEventData.js'
37
- export { OcaGrouperStatusChangeType } from './OCP1/OcaGrouperStatusChangeType.js'
38
- export { OcaImpedance } from './OCP1/OcaImpedance.js'
39
- export { OcaInt16 } from './OCP1/OcaInt16.js'
40
- export { OcaInt32 } from './OCP1/OcaInt32.js'
41
- export { OcaInt64 } from './OCP1/OcaInt64.js'
42
- export { OcaInt8 } from './OCP1/OcaInt8.js'
43
- export { OcaLevelDetectionLaw } from './OCP1/OcaLevelDetectionLaw.js'
44
- export { OcaLevelMeterLaw } from './OCP1/OcaLevelMeterLaw.js'
45
- export { OcaLibAccess } from './OCP1/OcaLibAccess.js'
46
- export { OcaLibParamSetAssignment } from './OCP1/OcaLibParamSetAssignment.js'
47
- export { OcaLibVol } from './OCP1/OcaLibVol.js'
48
- export { OcaLibVolChangedEventData } from './OCP1/OcaLibVolChangedEventData.js'
49
- export { OcaLibVolData_ParamSet } from './OCP1/OcaLibVolData_ParamSet.js'
50
- export { OcaLibVolIdentifier } from './OCP1/OcaLibVolIdentifier.js'
51
- export { OcaLibVolMetadata } from './OCP1/OcaLibVolMetadata.js'
52
- export { OcaLibVolStandardTypeID } from './OCP1/OcaLibVolStandardTypeID.js'
53
- export { OcaLibVolType } from './OCP1/OcaLibVolType.js'
54
- export { OcaLibraryIdentifier } from './OCP1/OcaLibraryIdentifier.js'
55
- export { OcaList } from './OCP1/OcaList.js'
56
- export { OcaList2D } from './OCP1/OcaList2D.js'
57
- export { OcaManagerDescriptor } from './OCP1/OcaManagerDescriptor.js'
58
- export { OcaMap } from './OCP1/OcaMap.js'
59
- export { OcaMediaClockAvailability } from './OCP1/OcaMediaClockAvailability.js'
60
- export { OcaMediaClockLockState } from './OCP1/OcaMediaClockLockState.js'
61
- export { OcaMediaClockRate } from './OCP1/OcaMediaClockRate.js'
62
- export { OcaMediaClockType } from './OCP1/OcaMediaClockType.js'
63
- export { OcaMediaCoding } from './OCP1/OcaMediaCoding.js'
64
- export { OcaMediaConnection } from './OCP1/OcaMediaConnection.js'
65
- export { OcaMediaConnectorCommand } from './OCP1/OcaMediaConnectorCommand.js'
66
- export { OcaMediaConnectorElement } from './OCP1/OcaMediaConnectorElement.js'
67
- export { OcaMediaConnectorState } from './OCP1/OcaMediaConnectorState.js'
68
- export { OcaMediaConnectorStatus } from './OCP1/OcaMediaConnectorStatus.js'
69
- export { OcaMediaConnectorStatusChangedEventData } from './OCP1/OcaMediaConnectorStatusChangedEventData.js'
70
- export { OcaMediaSinkConnector } from './OCP1/OcaMediaSinkConnector.js'
71
- export { OcaMediaSinkConnectorChangedEventData } from './OCP1/OcaMediaSinkConnectorChangedEventData.js'
72
- export { OcaMediaSourceConnector } from './OCP1/OcaMediaSourceConnector.js'
73
- export { OcaMediaSourceConnectorChangedEventData } from './OCP1/OcaMediaSourceConnectorChangedEventData.js'
74
- export { OcaMediaStreamCastMode } from './OCP1/OcaMediaStreamCastMode.js'
75
- export { OcaMethod } from './OCP1/OcaMethod.js'
76
- export { OcaMethodID } from './OCP1/OcaMethodID.js'
77
- export { OcaModelDescription } from './OCP1/OcaModelDescription.js'
78
- export { OcaModelGUID } from './OCP1/OcaModelGUID.js'
79
- export { OcaMultiMap } from './OCP1/OcaMultiMap.js'
80
- export { OcaMuteState } from './OCP1/OcaMuteState.js'
81
- export { OcaNetworkControlProtocol } from './OCP1/OcaNetworkControlProtocol.js'
82
- export { OcaNetworkLinkType } from './OCP1/OcaNetworkLinkType.js'
83
- export { OcaNetworkMediaProtocol } from './OCP1/OcaNetworkMediaProtocol.js'
84
- export { OcaNetworkMediaSourceOrSink } from './OCP1/OcaNetworkMediaSourceOrSink.js'
85
- export { OcaNetworkSignalChannelStatus } from './OCP1/OcaNetworkSignalChannelStatus.js'
86
- export { OcaNetworkStatistics } from './OCP1/OcaNetworkStatistics.js'
87
- export { OcaNetworkStatus } from './OCP1/OcaNetworkStatus.js'
88
- export { OcaNetworkSystemInterfaceDescriptor } from './OCP1/OcaNetworkSystemInterfaceDescriptor.js'
89
- export { OcaNetworkSystemInterfaceID } from './OCP1/OcaNetworkSystemInterfaceID.js'
90
- export { OcaNotificationDeliveryMode } from './OCP1/OcaNotificationDeliveryMode.js'
91
- export { OcaOPath } from './OCP1/OcaOPath.js'
92
- export { OcaObjectIdentification } from './OCP1/OcaObjectIdentification.js'
93
- export { OcaObjectListEventData } from './OCP1/OcaObjectListEventData.js'
94
- export { OcaObjectSearchResult } from './OCP1/OcaObjectSearchResult.js'
95
- export { OcaObjectSearchResultFlags } from './OCP1/OcaObjectSearchResultFlags.js'
96
- export { OcaObservationEventData } from './OCP1/OcaObservationEventData.js'
97
- export { OcaObservationListEventData } from './OCP1/OcaObservationListEventData.js'
98
- export { OcaObserverState } from './OCP1/OcaObserverState.js'
99
- export { OcaParametricEQShape } from './OCP1/OcaParametricEQShape.js'
100
- export { OcaPilotToneDetectorSpec } from './OCP1/OcaPilotToneDetectorSpec.js'
101
- export { OcaPolarityState } from './OCP1/OcaPolarityState.js'
102
- export { OcaPort } from './OCP1/OcaPort.js'
103
- export { OcaPortID } from './OCP1/OcaPortID.js'
104
- export { OcaPortMode } from './OCP1/OcaPortMode.js'
105
- export { OcaPositionCoordinateSystem } from './OCP1/OcaPositionCoordinateSystem.js'
106
- export { OcaPositionDescriptor } from './OCP1/OcaPositionDescriptor.js'
107
- export { OcaPowerState } from './OCP1/OcaPowerState.js'
108
- export { OcaPowerSupplyLocation } from './OCP1/OcaPowerSupplyLocation.js'
109
- export { OcaPowerSupplyState } from './OCP1/OcaPowerSupplyState.js'
110
- export { OcaPowerSupplyType } from './OCP1/OcaPowerSupplyType.js'
111
- export { OcaPresentationUnit } from './OCP1/OcaPresentationUnit.js'
112
- export { OcaProperty } from './OCP1/OcaProperty.js'
113
- export { OcaPropertyChangeType } from './OCP1/OcaPropertyChangeType.js'
114
- export { OcaPropertyChangedEventData } from './OCP1/OcaPropertyChangedEventData.js'
115
- export { OcaPropertyDescriptor } from './OCP1/OcaPropertyDescriptor.js'
116
- export { OcaPropertyID } from './OCP1/OcaPropertyID.js'
117
- export { OcaProtoObjectIdentification } from './OCP1/OcaProtoObjectIdentification.js'
118
- export { OcaProtoPort } from './OCP1/OcaProtoPort.js'
119
- export { OcaProtoPortID } from './OCP1/OcaProtoPortID.js'
120
- export { OcaProtoSignalPath } from './OCP1/OcaProtoSignalPath.js'
121
- export { OcaRamperCommand } from './OCP1/OcaRamperCommand.js'
122
- export { OcaRamperInterpolationLaw } from './OCP1/OcaRamperInterpolationLaw.js'
123
- export { OcaRamperState } from './OCP1/OcaRamperState.js'
124
- export { OcaRelationalOperator } from './OCP1/OcaRelationalOperator.js'
125
- export { OcaResetCause } from './OCP1/OcaResetCause.js'
126
- export { OcaSensorReadingState } from './OCP1/OcaSensorReadingState.js'
127
- export { OcaSignalPath } from './OCP1/OcaSignalPath.js'
128
- export { OcaStatus } from './OCP1/OcaStatus.js'
129
- export { OcaStream } from './OCP1/OcaStream.js'
130
- export { OcaStreamConnectorIdentification } from './OCP1/OcaStreamConnectorIdentification.js'
131
- export { OcaStreamConnectorStatus } from './OCP1/OcaStreamConnectorStatus.js'
132
- export { OcaStreamStatus } from './OCP1/OcaStreamStatus.js'
133
- export { OcaStreamType } from './OCP1/OcaStreamType.js'
134
- export { OcaString } from './OCP1/OcaString.js'
135
- export { OcaStringComparisonType } from './OCP1/OcaStringComparisonType.js'
136
- export { OcaSubscriptionManagerState } from './OCP1/OcaSubscriptionManagerState.js'
137
- export { OcaSweepType } from './OCP1/OcaSweepType.js'
138
- export { OcaTask } from './OCP1/OcaTask.js'
139
- export { OcaTaskCommand } from './OCP1/OcaTaskCommand.js'
140
- export { OcaTaskManagerState } from './OCP1/OcaTaskManagerState.js'
141
- export { OcaTaskState } from './OCP1/OcaTaskState.js'
142
- export { OcaTaskStateChangedEventData } from './OCP1/OcaTaskStateChangedEventData.js'
143
- export { OcaTaskStatus } from './OCP1/OcaTaskStatus.js'
144
- export { OcaTimeMode } from './OCP1/OcaTimeMode.js'
145
- export { OcaTimePTP } from './OCP1/OcaTimePTP.js'
146
- export { OcaTimeProtocol } from './OCP1/OcaTimeProtocol.js'
147
- export { OcaTimeReferenceType } from './OCP1/OcaTimeReferenceType.js'
148
- export { OcaTimeSourceAvailability } from './OCP1/OcaTimeSourceAvailability.js'
149
- export { OcaTimeSourceSyncStatus } from './OCP1/OcaTimeSourceSyncStatus.js'
150
- export { OcaTransferFunction } from './OCP1/OcaTransferFunction.js'
151
- export { OcaUint16 } from './OCP1/OcaUint16.js'
152
- export { OcaUint32 } from './OCP1/OcaUint32.js'
153
- export { OcaUint64 } from './OCP1/OcaUint64.js'
154
- export { OcaUint8 } from './OCP1/OcaUint8.js'
155
- export { OcaUnitOfMeasure } from './OCP1/OcaUnitOfMeasure.js'
156
- export { OcaVersion } from './OCP1/OcaVersion.js'
157
- export { OcaWaveformType } from './OCP1/OcaWaveformType.js'
158
- export { Rest } from './OCP1/Rest.js'
159
- export { RestWithOffset } from './OCP1/RestWithOffset.js'
160
- export { String16 } from './OCP1/String16.js'
161
- export { Struct } from './OCP1/Struct.js'
162
- export { Tuple } from './OCP1/Tuple.js'
1
+ export { Bitset16 } from './OCP1/Bitset16.js';
2
+ export { Bitset8 } from './OCP1/Bitset8.js';
3
+ export { Enum } from './OCP1/Enum.js';
4
+ export { Enum16 } from './OCP1/Enum16.js';
5
+ export { Enum8 } from './OCP1/Enum8.js';
6
+ export { OcaApplicationNetworkCommand } from './OCP1/OcaApplicationNetworkCommand.js';
7
+ export { OcaApplicationNetworkState } from './OCP1/OcaApplicationNetworkState.js';
8
+ export { OcaBaseDataType } from './OCP1/OcaBaseDataType.js';
9
+ export { OcaBitSet16 } from './OCP1/OcaBitSet16.js';
10
+ export { OcaBitstring } from './OCP1/OcaBitstring.js';
11
+ export { OcaBlob } from './OCP1/OcaBlob.js';
12
+ export { OcaBlobFixedLen } from './OCP1/OcaBlobFixedLen.js';
13
+ export { OcaBlockMember } from './OCP1/OcaBlockMember.js';
14
+ export { OcaBoolean } from './OCP1/OcaBoolean.js';
15
+ export { OcaClassAuthorityID } from './OCP1/OcaClassAuthorityID.js';
16
+ export { OcaClassIdentification } from './OCP1/OcaClassIdentification.js';
17
+ export { OcaClassicalFilterShape } from './OCP1/OcaClassicalFilterShape.js';
18
+ export { OcaComponent } from './OCP1/OcaComponent.js';
19
+ export { OcaDBr } from './OCP1/OcaDBr.js';
20
+ export { OcaDelayUnit } from './OCP1/OcaDelayUnit.js';
21
+ export { OcaDelayValue } from './OCP1/OcaDelayValue.js';
22
+ export { OcaDeviceState } from './OCP1/OcaDeviceState.js';
23
+ export { OcaDynamicsFunction } from './OCP1/OcaDynamicsFunction.js';
24
+ export { OcaEnumItem } from './OCP1/OcaEnumItem.js';
25
+ export { OcaEnumItem16 } from './OCP1/OcaEnumItem16.js';
26
+ export { OcaEvent } from './OCP1/OcaEvent.js';
27
+ export { OcaEventID } from './OCP1/OcaEventID.js';
28
+ export { OcaFilterPassband } from './OCP1/OcaFilterPassband.js';
29
+ export { OcaFloat32 } from './OCP1/OcaFloat32.js';
30
+ export { OcaFloat64 } from './OCP1/OcaFloat64.js';
31
+ export { OcaGlobalTypeIdentifier } from './OCP1/OcaGlobalTypeIdentifier.js';
32
+ export { OcaGrouperCitizen } from './OCP1/OcaGrouperCitizen.js';
33
+ export { OcaGrouperEnrollment } from './OCP1/OcaGrouperEnrollment.js';
34
+ export { OcaGrouperGroup } from './OCP1/OcaGrouperGroup.js';
35
+ export { OcaGrouperMode } from './OCP1/OcaGrouperMode.js';
36
+ export { OcaGrouperStatusChangeEventData } from './OCP1/OcaGrouperStatusChangeEventData.js';
37
+ export { OcaGrouperStatusChangeType } from './OCP1/OcaGrouperStatusChangeType.js';
38
+ export { OcaImpedance } from './OCP1/OcaImpedance.js';
39
+ export { OcaInt16 } from './OCP1/OcaInt16.js';
40
+ export { OcaInt32 } from './OCP1/OcaInt32.js';
41
+ export { OcaInt64 } from './OCP1/OcaInt64.js';
42
+ export { OcaInt8 } from './OCP1/OcaInt8.js';
43
+ export { OcaLevelDetectionLaw } from './OCP1/OcaLevelDetectionLaw.js';
44
+ export { OcaLevelMeterLaw } from './OCP1/OcaLevelMeterLaw.js';
45
+ export { OcaLibAccess } from './OCP1/OcaLibAccess.js';
46
+ export { OcaLibParamSetAssignment } from './OCP1/OcaLibParamSetAssignment.js';
47
+ export { OcaLibVol } from './OCP1/OcaLibVol.js';
48
+ export { OcaLibVolChangedEventData } from './OCP1/OcaLibVolChangedEventData.js';
49
+ export { OcaLibVolData_ParamSet } from './OCP1/OcaLibVolData_ParamSet.js';
50
+ export { OcaLibVolIdentifier } from './OCP1/OcaLibVolIdentifier.js';
51
+ export { OcaLibVolMetadata } from './OCP1/OcaLibVolMetadata.js';
52
+ export { OcaLibVolStandardTypeID } from './OCP1/OcaLibVolStandardTypeID.js';
53
+ export { OcaLibVolType } from './OCP1/OcaLibVolType.js';
54
+ export { OcaLibraryIdentifier } from './OCP1/OcaLibraryIdentifier.js';
55
+ export { OcaList } from './OCP1/OcaList.js';
56
+ export { OcaList2D } from './OCP1/OcaList2D.js';
57
+ export { OcaManagerDescriptor } from './OCP1/OcaManagerDescriptor.js';
58
+ export { OcaMap } from './OCP1/OcaMap.js';
59
+ export { OcaMediaClockAvailability } from './OCP1/OcaMediaClockAvailability.js';
60
+ export { OcaMediaClockLockState } from './OCP1/OcaMediaClockLockState.js';
61
+ export { OcaMediaClockRate } from './OCP1/OcaMediaClockRate.js';
62
+ export { OcaMediaClockType } from './OCP1/OcaMediaClockType.js';
63
+ export { OcaMediaCoding } from './OCP1/OcaMediaCoding.js';
64
+ export { OcaMediaConnection } from './OCP1/OcaMediaConnection.js';
65
+ export { OcaMediaConnectorCommand } from './OCP1/OcaMediaConnectorCommand.js';
66
+ export { OcaMediaConnectorElement } from './OCP1/OcaMediaConnectorElement.js';
67
+ export { OcaMediaConnectorState } from './OCP1/OcaMediaConnectorState.js';
68
+ export { OcaMediaConnectorStatus } from './OCP1/OcaMediaConnectorStatus.js';
69
+ export { OcaMediaConnectorStatusChangedEventData } from './OCP1/OcaMediaConnectorStatusChangedEventData.js';
70
+ export { OcaMediaSinkConnector } from './OCP1/OcaMediaSinkConnector.js';
71
+ export { OcaMediaSinkConnectorChangedEventData } from './OCP1/OcaMediaSinkConnectorChangedEventData.js';
72
+ export { OcaMediaSourceConnector } from './OCP1/OcaMediaSourceConnector.js';
73
+ export { OcaMediaSourceConnectorChangedEventData } from './OCP1/OcaMediaSourceConnectorChangedEventData.js';
74
+ export { OcaMediaStreamCastMode } from './OCP1/OcaMediaStreamCastMode.js';
75
+ export { OcaMethod } from './OCP1/OcaMethod.js';
76
+ export { OcaMethodID } from './OCP1/OcaMethodID.js';
77
+ export { OcaModelDescription } from './OCP1/OcaModelDescription.js';
78
+ export { OcaModelGUID } from './OCP1/OcaModelGUID.js';
79
+ export { OcaMultiMap } from './OCP1/OcaMultiMap.js';
80
+ export { OcaMuteState } from './OCP1/OcaMuteState.js';
81
+ export { OcaNetworkControlProtocol } from './OCP1/OcaNetworkControlProtocol.js';
82
+ export { OcaNetworkLinkType } from './OCP1/OcaNetworkLinkType.js';
83
+ export { OcaNetworkMediaProtocol } from './OCP1/OcaNetworkMediaProtocol.js';
84
+ export { OcaNetworkMediaSourceOrSink } from './OCP1/OcaNetworkMediaSourceOrSink.js';
85
+ export { OcaNetworkSignalChannelStatus } from './OCP1/OcaNetworkSignalChannelStatus.js';
86
+ export { OcaNetworkStatistics } from './OCP1/OcaNetworkStatistics.js';
87
+ export { OcaNetworkStatus } from './OCP1/OcaNetworkStatus.js';
88
+ export { OcaNetworkSystemInterfaceDescriptor } from './OCP1/OcaNetworkSystemInterfaceDescriptor.js';
89
+ export { OcaNetworkSystemInterfaceID } from './OCP1/OcaNetworkSystemInterfaceID.js';
90
+ export { OcaNotificationDeliveryMode } from './OCP1/OcaNotificationDeliveryMode.js';
91
+ export { OcaOPath } from './OCP1/OcaOPath.js';
92
+ export { OcaObjectIdentification } from './OCP1/OcaObjectIdentification.js';
93
+ export { OcaObjectListEventData } from './OCP1/OcaObjectListEventData.js';
94
+ export { OcaObjectSearchResult } from './OCP1/OcaObjectSearchResult.js';
95
+ export { OcaObjectSearchResultFlags } from './OCP1/OcaObjectSearchResultFlags.js';
96
+ export { OcaObservationEventData } from './OCP1/OcaObservationEventData.js';
97
+ export { OcaObservationListEventData } from './OCP1/OcaObservationListEventData.js';
98
+ export { OcaObserverState } from './OCP1/OcaObserverState.js';
99
+ export { OcaParametricEQShape } from './OCP1/OcaParametricEQShape.js';
100
+ export { OcaPilotToneDetectorSpec } from './OCP1/OcaPilotToneDetectorSpec.js';
101
+ export { OcaPolarityState } from './OCP1/OcaPolarityState.js';
102
+ export { OcaPort } from './OCP1/OcaPort.js';
103
+ export { OcaPortID } from './OCP1/OcaPortID.js';
104
+ export { OcaPortMode } from './OCP1/OcaPortMode.js';
105
+ export { OcaPositionCoordinateSystem } from './OCP1/OcaPositionCoordinateSystem.js';
106
+ export { OcaPositionDescriptor } from './OCP1/OcaPositionDescriptor.js';
107
+ export { OcaPowerState } from './OCP1/OcaPowerState.js';
108
+ export { OcaPowerSupplyLocation } from './OCP1/OcaPowerSupplyLocation.js';
109
+ export { OcaPowerSupplyState } from './OCP1/OcaPowerSupplyState.js';
110
+ export { OcaPowerSupplyType } from './OCP1/OcaPowerSupplyType.js';
111
+ export { OcaPresentationUnit } from './OCP1/OcaPresentationUnit.js';
112
+ export { OcaProperty } from './OCP1/OcaProperty.js';
113
+ export { OcaPropertyChangeType } from './OCP1/OcaPropertyChangeType.js';
114
+ export { OcaPropertyChangedEventData } from './OCP1/OcaPropertyChangedEventData.js';
115
+ export { OcaPropertyDescriptor } from './OCP1/OcaPropertyDescriptor.js';
116
+ export { OcaPropertyID } from './OCP1/OcaPropertyID.js';
117
+ export { OcaProtoObjectIdentification } from './OCP1/OcaProtoObjectIdentification.js';
118
+ export { OcaProtoPort } from './OCP1/OcaProtoPort.js';
119
+ export { OcaProtoPortID } from './OCP1/OcaProtoPortID.js';
120
+ export { OcaProtoSignalPath } from './OCP1/OcaProtoSignalPath.js';
121
+ export { OcaRamperCommand } from './OCP1/OcaRamperCommand.js';
122
+ export { OcaRamperInterpolationLaw } from './OCP1/OcaRamperInterpolationLaw.js';
123
+ export { OcaRamperState } from './OCP1/OcaRamperState.js';
124
+ export { OcaRelationalOperator } from './OCP1/OcaRelationalOperator.js';
125
+ export { OcaResetCause } from './OCP1/OcaResetCause.js';
126
+ export { OcaSensorReadingState } from './OCP1/OcaSensorReadingState.js';
127
+ export { OcaSignalPath } from './OCP1/OcaSignalPath.js';
128
+ export { OcaStatus } from './OCP1/OcaStatus.js';
129
+ export { OcaStream } from './OCP1/OcaStream.js';
130
+ export { OcaStreamConnectorIdentification } from './OCP1/OcaStreamConnectorIdentification.js';
131
+ export { OcaStreamConnectorStatus } from './OCP1/OcaStreamConnectorStatus.js';
132
+ export { OcaStreamStatus } from './OCP1/OcaStreamStatus.js';
133
+ export { OcaStreamType } from './OCP1/OcaStreamType.js';
134
+ export { OcaString } from './OCP1/OcaString.js';
135
+ export { OcaStringComparisonType } from './OCP1/OcaStringComparisonType.js';
136
+ export { OcaSubscriptionManagerState } from './OCP1/OcaSubscriptionManagerState.js';
137
+ export { OcaSweepType } from './OCP1/OcaSweepType.js';
138
+ export { OcaTask } from './OCP1/OcaTask.js';
139
+ export { OcaTaskCommand } from './OCP1/OcaTaskCommand.js';
140
+ export { OcaTaskManagerState } from './OCP1/OcaTaskManagerState.js';
141
+ export { OcaTaskState } from './OCP1/OcaTaskState.js';
142
+ export { OcaTaskStateChangedEventData } from './OCP1/OcaTaskStateChangedEventData.js';
143
+ export { OcaTaskStatus } from './OCP1/OcaTaskStatus.js';
144
+ export { OcaTimeMode } from './OCP1/OcaTimeMode.js';
145
+ export { OcaTimePTP } from './OCP1/OcaTimePTP.js';
146
+ export { OcaTimeProtocol } from './OCP1/OcaTimeProtocol.js';
147
+ export { OcaTimeReferenceType } from './OCP1/OcaTimeReferenceType.js';
148
+ export { OcaTimeSourceAvailability } from './OCP1/OcaTimeSourceAvailability.js';
149
+ export { OcaTimeSourceSyncStatus } from './OCP1/OcaTimeSourceSyncStatus.js';
150
+ export { OcaTransferFunction } from './OCP1/OcaTransferFunction.js';
151
+ export { OcaUint16 } from './OCP1/OcaUint16.js';
152
+ export { OcaUint32 } from './OCP1/OcaUint32.js';
153
+ export { OcaUint64 } from './OCP1/OcaUint64.js';
154
+ export { OcaUint8 } from './OCP1/OcaUint8.js';
155
+ export { OcaUnitOfMeasure } from './OCP1/OcaUnitOfMeasure.js';
156
+ export { OcaVersion } from './OCP1/OcaVersion.js';
157
+ export { OcaWaveformType } from './OCP1/OcaWaveformType.js';
158
+ export { Rest } from './OCP1/Rest.js';
159
+ export { RestWithOffset } from './OCP1/RestWithOffset.js';
160
+ export { String16 } from './OCP1/String16.js';
161
+ export { Struct } from './OCP1/Struct.js';
162
+ export { Tuple } from './OCP1/Tuple.js';
package/src/bigint.js CHANGED
@@ -5,4 +5,3 @@ export const INT64_MAX = HAS_BIGINT && UINT64_MAX >> BigInt(1);
5
5
  export const INT64_MIN = HAS_BIGINT && -INT64_MAX - BigInt(1);
6
6
  export const INT56_MAX = HAS_BIGINT && (BigInt(1) << BigInt(55)) - BigInt(1);
7
7
  export const INT56_MIN = HAS_BIGINT && -INT56_MAX - BigInt(1);
8
-
package/src/connection.js CHANGED
@@ -21,16 +21,16 @@ import { MessageGenerator } from './OCP1/message_generator.js';
21
21
  * enumerated. Defaults to 64 kilobytes by default but is overwritten e.g.
22
22
  * by :class:`UDPConnection`.
23
23
  */
24
- export class Connection extends Events
25
- {
26
- constructor(options)
27
- {
24
+ export class Connection extends Events {
25
+ constructor(options) {
28
26
  if (!options) options = {};
29
27
  super();
30
28
  const now = this._now();
31
29
  this.options = options;
32
- const batchSize = options.batch >= 0 ? options.batch : (64 * 1024);
33
- this._message_generator = new MessageGenerator(batchSize, (buf) => this.write(buf));
30
+ const batchSize = options.batch >= 0 ? options.batch : 64 * 1024;
31
+ this._message_generator = new MessageGenerator(batchSize, (buf) =>
32
+ this.write(buf)
33
+ );
34
34
  this.inbuf = null;
35
35
  this.inpos = 0;
36
36
  this.last_rx_time = now;
@@ -48,25 +48,21 @@ export class Connection extends Events
48
48
  this.on('error', cleanup);
49
49
  }
50
50
 
51
- get is_reliable()
52
- {
51
+ get is_reliable() {
53
52
  return true;
54
53
  }
55
54
 
56
- send(pdu)
57
- {
58
- if (this.is_closed()) throw new Error("Connection is closed.");
55
+ send(pdu) {
56
+ if (this.is_closed()) throw new Error('Connection is closed.');
59
57
  this._message_generator.add(pdu);
60
58
  }
61
59
 
62
- tx_idle_time()
63
- {
60
+ tx_idle_time() {
64
61
  return this._now() - this.last_tx_time;
65
62
  }
66
63
 
67
- rx_idle_time()
68
- {
69
- return this._now() - this.last_tx_time;
64
+ rx_idle_time() {
65
+ return this._now() - this.last_rx_time;
70
66
  }
71
67
 
72
68
  read(buf) {
@@ -115,40 +111,32 @@ export class Connection extends Events
115
111
  this._check_keepalive();
116
112
  }
117
113
 
118
- incoming(a)
119
- {
120
- }
114
+ incoming(a) {}
121
115
 
122
- write(buf)
123
- {
116
+ write(buf) {
124
117
  this.last_tx_time = this._now();
125
118
  this.tx_bytes += buf.byteLength;
126
119
  }
127
120
 
128
- is_closed()
129
- {
121
+ is_closed() {
130
122
  return this._message_generator === null;
131
123
  }
132
124
 
133
125
  /**
134
126
  * Closes the connection. Overloaded by connection subclasses.
135
127
  */
136
- close()
137
- {
138
- if (this.is_closed())
139
- return;
128
+ close() {
129
+ if (this.is_closed()) return;
140
130
  this.emit('close');
141
131
  }
142
132
 
143
133
  error(err) {
144
- if (this.is_closed())
145
- return;
134
+ if (this.is_closed()) return;
146
135
  this.emit('error', err);
147
136
  }
148
137
 
149
- cleanup()
150
- {
151
- if (this.is_closed()) throw new Error("cleanup() called twice.");
138
+ cleanup() {
139
+ if (this.is_closed()) throw new Error('cleanup() called twice.');
152
140
 
153
141
  // disable keepalive
154
142
  this.set_keepalive_interval(0);
@@ -157,24 +145,18 @@ export class Connection extends Events
157
145
  this.removeAllEventListeners();
158
146
  }
159
147
 
160
- _check_keepalive()
161
- {
162
- if (!(this.keepalive_interval > 0))
163
- return;
148
+ _check_keepalive() {
149
+ if (!(this.keepalive_interval > 0)) return;
164
150
 
165
151
  const t = this.keepalive_interval;
166
152
 
167
- if (this.rx_idle_time() > t * 3)
168
- {
153
+ if (this.rx_idle_time() > t * 3) {
169
154
  this.emit('timeout');
170
155
  this.error(new Error('Keepalive timeout.'));
171
- }
172
- else if (this.tx_idle_time() > t * 0.75)
173
- {
156
+ } else if (this.tx_idle_time() > t * 0.75) {
174
157
  /* Try to flush buffers before actually sending out anything. */
175
158
  this.flush();
176
- if (this.tx_idle_time() > t * 0.75)
177
- this.send(new KeepAlive(t));
159
+ if (this.tx_idle_time() > t * 0.75) this.send(new KeepAlive(t));
178
160
  }
179
161
  }
180
162
 
@@ -194,8 +176,7 @@ export class Connection extends Events
194
176
  * @param {number} seconds
195
177
  * Keepalive interval in seconds.
196
178
  */
197
- set_keepalive_interval(seconds)
198
- {
179
+ set_keepalive_interval(seconds) {
199
180
  const t = seconds * 1000;
200
181
 
201
182
  if (this._keepalive_interval_id !== null) {
@@ -206,13 +187,11 @@ export class Connection extends Events
206
187
  this.keepalive_interval = t;
207
188
 
208
189
  // Notify the other side about our new keepalive
209
- if (this.is_closed())
210
- return;
190
+ if (this.is_closed()) return;
211
191
 
212
192
  this.send(new KeepAlive(t));
213
193
 
214
- if (!(t > 0))
215
- return;
194
+ if (!(t > 0)) return;
216
195
 
217
196
  // we check twice as often to make sure we stay within the timers
218
197
  this._keepalive_interval_id = setInterval(() => {
@@ -220,4 +199,3 @@ export class Connection extends Events
220
199
  }, t / 2);
221
200
  }
222
201
  }
223
-
package/src/events.js CHANGED
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * Basic event handling class.
3
3
  */
4
- export class Events
5
- {
4
+ export class Events {
6
5
  constructor() {
7
6
  this.event_handlers = new Map();
8
7
  }
@@ -13,8 +12,7 @@ export class Events
13
12
  * @param {String} name - Name of the event.
14
13
  * @param {...*} args - Extra arguments.
15
14
  */
16
- emit(name)
17
- {
15
+ emit(name) {
18
16
  const handlers = this.event_handlers.get(name);
19
17
  const args = Array.prototype.slice.call(arguments, 1);
20
18
 
@@ -24,7 +22,7 @@ export class Events
24
22
  try {
25
23
  cb.apply(this, args);
26
24
  } catch (e) {
27
- console.warn("ERROR when calling %o: %o", cb, e);
25
+ console.warn('ERROR when calling %o: %o', cb, e);
28
26
  }
29
27
  });
30
28
  }
@@ -35,13 +33,11 @@ export class Events
35
33
  * @param {String} name - Name of the event.
36
34
  * @param {Function} cb - Callback function.
37
35
  */
38
- on(name, cb)
39
- {
36
+ on(name, cb) {
40
37
  let handlers = this.event_handlers.get(name);
41
38
 
42
- if (!handlers)
43
- {
44
- this.event_handlers.set(name, handlers = new Set());
39
+ if (!handlers) {
40
+ this.event_handlers.set(name, (handlers = new Set()));
45
41
  }
46
42
 
47
43
  handlers.add(cb);
@@ -57,12 +53,10 @@ export class Events
57
53
  * @param {String} name - Name of the event.
58
54
  * @param {Function} cb - Callback function.
59
55
  */
60
- removeEventListener(name, cb)
61
- {
56
+ removeEventListener(name, cb) {
62
57
  const handlers = this.event_handlers.get(name);
63
58
 
64
- if (!handlers || !handlers.has(cb))
65
- {
59
+ if (!handlers || !handlers.has(cb)) {
66
60
  throw new Error('removeEventListeners(): not installed.');
67
61
  }
68
62
 
@@ -72,9 +66,7 @@ export class Events
72
66
  /**
73
67
  * Removes all event listeners.
74
68
  */
75
- removeAllEventListeners()
76
- {
69
+ removeAllEventListeners() {
77
70
  this.event_handlers.clear();
78
71
  }
79
72
  }
80
-
package/src/types/Enum.js CHANGED
@@ -40,6 +40,10 @@ export function Enum(values) {
40
40
  }
41
41
 
42
42
  const result = class {
43
+ get isEnum() {
44
+ return true;
45
+ }
46
+
43
47
  constructor(value) {
44
48
  if (typeof value === 'string') {
45
49
  if (!hasOwnProperty(values, value))
package/src/utf8.js CHANGED
@@ -54,39 +54,35 @@ export function utf8_codepoint_length(buf, pos, codepoints) {
54
54
 
55
55
  while (codepoints--) {
56
56
  const c = buf.getUint8(pos);
57
- pos ++;
57
+ pos++;
58
58
  if (c <= 0x7f) continue;
59
- if (c < 0xc2)
60
- throw new Error("Invalid UTF8 sequence.");
61
- pos ++;
59
+ if (c < 0xc2) throw new Error('Invalid UTF8 sequence.');
60
+ pos++;
62
61
  if (c <= 0xdf) continue;
63
- pos ++;
62
+ pos++;
64
63
  if (c <= 0xef) continue;
65
- pos ++;
64
+ pos++;
66
65
  if (c <= 0xf4) continue;
67
66
 
68
- throw new Error("Invalid UTF8 sequence.");
67
+ throw new Error('Invalid UTF8 sequence.');
69
68
  }
70
69
 
71
70
  return pos - start;
72
71
  }
73
72
 
74
- export function count_codepoints(s)
75
- {
73
+ export function count_codepoints(s) {
76
74
  let n = 0;
77
75
 
78
- for (let i = 0; i < s.length; i++, n++)
79
- {
76
+ for (let i = 0; i < s.length; i++, n++) {
80
77
  const c = s.charCodeAt(i);
81
78
 
82
- if (c >= 0xd800 && c <= 0xdbff)
83
- {
79
+ if (c >= 0xd800 && c <= 0xdbff) {
84
80
  i++;
85
81
 
86
82
  const c = s.charCodeAt(i);
87
83
 
88
- if (c < 0xDC00 || c > 0xDFFF)
89
- throw new TypeError("Expected valid unicode string.");
84
+ if (c < 0xdc00 || c > 0xdfff)
85
+ throw new TypeError('Expected valid unicode string.');
90
86
  }
91
87
  }
92
88