blob: cc7a5a064144f4101b0dbc9999353ee4e5ca87cf [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const XdslChannelConfigurationProfilePart2ClassId ClassID = ClassID(412)
25
26var xdslchannelconfigurationprofilepart2BME *ManagedEntityDefinition
27
28// XdslChannelConfigurationProfilePart2 (class ID #412)
29// This ME contains the channel configuration profile for an xDSL UNI. An instance of this ME is
30// created and deleted by the OLT.
31//
32// NOTE – If [ITUT G.997.1] compatibility is required, bit rates should only be set to integer
33// multiples of 1000 bits/s. The ONU may reject attempts to set other values for bit rate
34// attributes.
35//
36// Relationships
37// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
38// 1.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the xDSL channel configuration
44// profile. (R, setbycreate) (mandatory) (2 bytes)
45//
46// Minimum Expected Throughput For Retransmission Minetr_Rtx
47// Minimum expected throughput for retransmission (MINETR_RTX): If retransmission is used in a
48// given transmit direction, this attribute specifies the minimum expected throughput for the
49// bearer channel, in bits per second. See clause 7.3.2.1.8 of [ITU-T G.997.1]. (R, W) (mandatory)
50// (4 bytes)
51//
52// Maximum Expected Throughput For Retransmission Maxetr_Rtx
53// Maximum expected throughput for retransmission (MAXETR_RTX): If retransmission is used in a
54// given transmit direction, this parameter specifies the maximum expected throughput for the
55// bearer channel, in bits per second. See clause 7.3.2.1.9 of [ITU-T G.997.1]. (R, W) (mandatory)
56// (4 bytes)
57//
58// Maximum Net Data Rate For Retransmission Maxndr_Rtx
59// Maximum net data rate for retransmission (MAXNDR_RTX): If retransmission is used in a given
60// transmit direction, this parameter specifies the maximum net data rate for the bearer channel,
61// in bits per second. See clause 7.3.2.1.10 of [ITUT G.997.1]. (R, W) (mandatory) (4 bytes)
62//
63// Maximum Delay For Retransmission Delaymax_Rtx
64// Maximum delay for retransmission (DELAYMAX_RTX): If retransmission is used in a given transmit
65// direction, this parameter specifies the maximum for the instantaneous delay due to the effect of
66// retransmission only. This delay is defined as the integer value of this attribute multiplied by
67// 1 ms. The valid delay values are given in clause 7.3.2.11 of [ITU-T G.997.1]. (R, W) (mandatory)
68// (1 bytes)
69//
70// Minimum Delay For Retransmission Delaymin_Rtx
71// Minimum delay for retransmission (DELAYMIN_RTX): If retransmission is used in a given transmit
72// direction, this parameter specifies the minimum for the instantaneous delay due to the effect of
73// retransmission only. This delay is defined as the integer value of this attribute multiplied by
74// 1 ms. The valid delay values are given in clause 7.3.2.12 of [ITU-T G.997.1]. (R, W) (mandatory)
75// (1 bytes)
76//
77// Minimum Impulse Noise Protection Against Single High Impulse Noise Event Shine For Retransmission Inpmin_Shine_Rtx
78// Minimum impulse noise protection against single high impulse noise event (SHINE) for
79// retransmission (INPMIN_SHINE_RTX): If retransmission is used in a given transmit direction, this
80// parameter specifies the minimum INP against a SHINE for the bearer channel if it is transported
81// over DMT symbols with a subcarrier spacing of 4.3125 kHz. The valid range of values is given in
82// clause 7.3.2.13 of [ITU-T G.997.1]. (R, W) (mandatory) (1 bytes)
83//
84// Minimum Impulse Noise Protection Against Shine For Retransmission For Systems Using 8.625 Khz Subcarrier Spacing Inpmin8_Shine_Rtx
85// Minimum impulse noise protection against SHINE for retransmission for systems using 8.625 kHz
86// subcarrier spacing (INPMIN8_SHINE_RTX): If retransmission is used in a given transmit direction,
87// this parameter specifies the minimum INP against SHINE for the bearer channel if it is
88// transported over DMT symbols with a subcarrier spacing of 8.625 kHz. The valid range of values
89// is given in clause 7.3.2.14 of [ITUT G.997.1]. (R, W) (mandatory) (1 bytes)
90//
91// Shineratio_Rtx
92// SHINERATIO_RTX: If retransmission is used in a given transmit direction, this parameter
93// specifies the SHINE ratio. This ratio is defined as the integer value of this attribute
94// multiplied by 0.001. The valid range of values is given in clause 7.3.2.15 of [ITU-T G.997.1].
95// (R, W) (mandatory) (1 bytes)
96//
97// Minimum Impulse Noise Protection Against Rein For Retransmission Inpmin_Rein_Rtx
98// Minimum impulse noise protection against REIN for retransmission (INPMIN_REIN_RTX): If
99// retransmission is used in a given transmit direction, this parameter specifies the minimum INP
100// against REIN for the bearer channel if it is transported over DMT symbols with a subcarrier
101// spacing of 4.3125 kHz. The valid range of values is given in clause 7.3.2.16 of [ITU-T G.997.1].
102// (R, W) (mandatory) (1 bytes)
103//
104// Minimum Impulse Noise Protection Against Rein For Retransmission For Systems Using 8.625_Khz Subcarrier Spacing Inpmin8_Rein_Rtx
105// Minimum impulse noise protection against REIN for retransmission for systems using 8.625 kHz
106// subcarrier spacing (INPMIN8_REIN_RTX): If retransmission is used in a given transmit direction,
107// this parameter specifies the minimum INP against REIN for the bearer channel if it is
108// transported over DMT symbols with a subcarrier spacing of 8.625 kHz. The valid range of values
109// is given in clause 7.3.2.17 of [ITU-T G.997.1]. (R, W) (mandatory) (1 bytes)
110//
111// Rein Inter_Arrival Time For Retransmission Iat_Rein_Rtx
112// REIN inter-arrival time for retransmission (IAT_REIN_RTX): If retransmission is used in a given
113// transmit direction, this parameter specifies the IAT that shall be assumed for REIN protection.
114// The valid range of values is given in clause 7.3.2.18 of [ITU-T G.997.1]. (R, W) (mandatory)
115// (1 bytes)
116//
117// Target Net Data Rate Target_Ndr
118// Target net data rate (TARGET_NDR): If retransmission is not used in a given transmit direction,
119// this parameter specifies the target net data of the bearer channel, in bits per second. See
120// clause 7.3.2.19.1 of [ITU-T G.997.1]. (R, W) (mandatory) (4 bytes)
121//
122// Target Expected Throughput For Retransmission Target_Etr
123// Target expected throughput for retransmission (TARGET_ETR): If retransmission is used in a given
124// transmit direction, this parameter specifies the target expected throughput for the bearer
125// channel, in bits per second. See clause 7.3.2.19.2 of [ITUT G.997.1]. (R, W) (mandatory)
126// (4 bytes)
127//
128type XdslChannelConfigurationProfilePart2 struct {
129 ManagedEntityDefinition
130 Attributes AttributeValueMap
131}
132
133func init() {
134 xdslchannelconfigurationprofilepart2BME = &ManagedEntityDefinition{
135 Name: "XdslChannelConfigurationProfilePart2",
136 ClassID: 412,
137 MessageTypes: mapset.NewSetWith(
138 Create,
139 Delete,
140 Get,
141 Set,
142 ),
143 AllowedAttributeMask: 0XFFF8,
144 AttributeDefinitions: AttributeDefinitionMap{
145 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
146 1: Uint32Field("MinimumExpectedThroughputForRetransmissionMinetrRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
147 2: Uint32Field("MaximumExpectedThroughputForRetransmissionMaxetrRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 2),
148 3: Uint32Field("MaximumNetDataRateForRetransmissionMaxndrRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 3),
149 4: ByteField("MaximumDelayForRetransmissionDelaymaxRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
150 5: ByteField("MinimumDelayForRetransmissionDelayminRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 5),
151 6: ByteField("MinimumImpulseNoiseProtectionAgainstSingleHighImpulseNoiseEventShineForRetransmissionInpminShineRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 6),
152 7: ByteField("MinimumImpulseNoiseProtectionAgainstShineForRetransmissionForSystemsUsing8625KhzSubcarrierSpacingInpmin8ShineRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 7),
153 8: ByteField("ShineratioRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 8),
154 9: ByteField("MinimumImpulseNoiseProtectionAgainstReinForRetransmissionInpminReinRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 9),
155 10: ByteField("MinimumImpulseNoiseProtectionAgainstReinForRetransmissionForSystemsUsing8625KhzSubcarrierSpacingInpmin8ReinRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 10),
156 11: ByteField("ReinInterArrivalTimeForRetransmissionIatReinRtx", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 11),
157 12: Uint32Field("TargetNetDataRateTargetNdr", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 12),
158 13: Uint32Field("TargetExpectedThroughputForRetransmissionTargetEtr", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 13),
159 },
160 }
161}
162
163// NewXdslChannelConfigurationProfilePart2 (class ID 412 creates the basic
164// Managed Entity definition that is used to validate an ME of this type that
165// is received from the wire, about to be sent on the wire.
166func NewXdslChannelConfigurationProfilePart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
167 return NewManagedEntity(xdslchannelconfigurationprofilepart2BME, params...)
168}