blob: a0b5842c0cfb5b9010b273ff75fb796227c9d47f [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// XdslChannelConfigurationProfilePart2ClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL channel configuration profile part 2
27const XdslChannelConfigurationProfilePart2ClassID ClassID = ClassID(412)
28
29var xdslchannelconfigurationprofilepart2BME *ManagedEntityDefinition
30
31// XdslChannelConfigurationProfilePart2 (class ID #412)
32// This ME contains the channel configuration profile for an xDSL UNI. An instance of this ME is
33// created and deleted by the OLT.
34//
35// NOTE - If [ITUT G.997.1] compatibility is required, bit rates should only be set to integer
36// multiples of 1000-bits/s. The ONU may reject attempts to set other values for bit rate
37// attributes.
38//
39// Relationships
40// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
41// 1.
42//
43// Attributes
44// Managed Entity Id
45// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
46// identical ID, this ME is implicitly linked to an instance of the xDSL channel configuration
47// profile. (R, setbycreate) (mandatory) (2-bytes)
48//
49// Minimum Expected Throughput For Retransmission Minetr_Rtx
50// Minimum expected throughput for retransmission (MINETR_RTX): If retransmission is used in a
51// given transmit direction, this attribute specifies the minimum expected throughput for the
52// bearer channel, in bits per second. See clause 7.3.2.1.8 of [ITU-T G.997.1]. (R,-W) (mandatory)
53// (4-bytes)
54//
55// Maximum Expected Throughput For Retransmission Maxetr_Rtx
56// Maximum expected throughput for retransmission (MAXETR_RTX): If retransmission is used in a
57// given transmit direction, this parameter specifies the maximum expected throughput for the
58// bearer channel, in bits per second. See clause 7.3.2.1.9 of [ITU-T G.997.1]. (R,-W) (mandatory)
59// (4-bytes)
60//
61// Maximum Net Data Rate For Retransmission Maxndr_Rtx
62// Maximum net data rate for retransmission (MAXNDR_RTX): If retransmission is used in a given
63// transmit direction, this parameter specifies the maximum net data rate for the bearer channel,
64// in bits per second. See clause 7.3.2.1.10 of [ITUT-G.997.1]. (R,-W) (mandatory) (4-bytes)
65//
66// Maximum Delay For Retransmission Delaymax_Rtx
67// Maximum delay for retransmission (DELAYMAX_RTX): If retransmission is used in a given transmit
68// direction, this parameter specifies the maximum for the instantaneous delay due to the effect of
69// retransmission only. This delay is defined as the integer value of this attribute multiplied by
70// 1-ms. The valid delay values are given in clause 7.3.2.11 of [ITU-T G.997.1]. (R,-W) (mandatory)
71// (1-bytes)
72//
73// Minimum Delay For Retransmission Delaymin_Rtx
74// Minimum delay for retransmission (DELAYMIN_RTX): If retransmission is used in a given transmit
75// direction, this parameter specifies the minimum for the instantaneous delay due to the effect of
76// retransmission only. This delay is defined as the integer value of this attribute multiplied by
77// 1 ms. The valid delay values are given in clause 7.3.2.12 of [ITU-T G.997.1]. (R,-W) (mandatory)
78// (1-bytes)
79//
80// Minimum Impulse Noise Protection Against Single High Impulse Noise Event Shine For Retransmission Inpmin_Shine_Rtx
81// Minimum impulse noise protection against single high impulse noise event (SHINE) for
82// retransmission (INPMIN_SHINE_RTX): If retransmission is used in a given transmit direction, this
83// parameter specifies the minimum INP against a SHINE for the bearer channel if it is transported
84// over DMT symbols with a subcarrier spacing of 4.3125-kHz. The valid range of values is given in
85// clause-7.3.2.13 of [ITU-T G.997.1]. (R,-W) (mandatory) (1-bytes)
86//
87// Minimum Impulse Noise Protection Against Shine For Retransmission For Systems Using 8.625 Khz Subcarrier Spacing Inpmin8_Shine_Rtx
88// Minimum impulse noise protection against SHINE for retransmission for systems using 8.625 kHz
89// subcarrier spacing (INPMIN8_SHINE_RTX): If retransmission is used in a given transmit direction,
90// this parameter specifies the minimum INP against SHINE for the bearer channel if it is
91// transported over DMT symbols with a subcarrier spacing of 8.625-kHz. The valid range of values
92// is given in clause 7.3.2.14 of [ITUT-G.997.1]. (R,-W) (mandatory) (1-bytes)
93//
94// Shineratio_Rtx
95// SHINERATIO_RTX: If retransmission is used in a given transmit direction, this parameter
96// specifies the SHINE ratio. This ratio is defined as the integer value of this attribute
97// multiplied by 0.001. The valid range of values is given in clause-7.3.2.15 of [ITU-T G.997.1].
98// (R,-W) (mandatory) (1-bytes)
99//
100// Minimum Impulse Noise Protection Against Rein For Retransmission Inpmin_Rein_Rtx
101// Minimum impulse noise protection against REIN for retransmission (INPMIN_REIN_RTX): If
102// retransmission is used in a given transmit direction, this parameter specifies the minimum INP
103// against REIN for the bearer channel if it is transported over DMT symbols with a subcarrier
104// spacing of 4.3125 kHz. The valid range of values is given in clause-7.3.2.16 of [ITU-T G.997.1].
105// (R,-W) (mandatory) (1-bytes)
106//
107// Minimum Impulse Noise Protection Against Rein For Retransmission For Systems Using 8.625_Khz Subcarrier Spacing Inpmin8_Rein_Rtx
108// Minimum impulse noise protection against REIN for retransmission for systems using 8.625-kHz
109// subcarrier spacing (INPMIN8_REIN_RTX): If retransmission is used in a given transmit direction,
110// this parameter specifies the minimum INP against REIN for the bearer channel if it is
111// transported over DMT symbols with a subcarrier spacing of 8.625 kHz. The valid range of values
112// is given in clause 7.3.2.17 of [ITU-T G.997.1]. (R,-W) (mandatory) (1-bytes)
113//
114// Rein Inter_Arrival Time For Retransmission Iat_Rein_Rtx
115// REIN inter-arrival time for retransmission (IAT_REIN_RTX): If retransmission is used in a given
116// transmit direction, this parameter specifies the IAT that shall be assumed for REIN protection.
117// The valid range of values is given in clause 7.3.2.18 of [ITU-T G.997.1]. (R,-W) (mandatory)
118// (1-bytes)
119//
120// Target Net Data Rate Target_Ndr
121// Target net data rate (TARGET_NDR): If retransmission is not used in a given transmit direction,
122// this parameter specifies the target net data of the bearer channel, in bits per second. See
123// clause 7.3.2.19.1 of [ITU-T G.997.1]. (R,-W) (mandatory) (4-bytes)
124//
125// Target Expected Throughput For Retransmission Target_Etr
126// Target expected throughput for retransmission (TARGET_ETR): If retransmission is used in a given
127// transmit direction, this parameter specifies the target expected throughput for the bearer
128// channel, in bits per second. See clause 7.3.2.19.2 of [ITUT-G.997.1]. (R,-W) (mandatory)
129// (4-bytes)
130//
131type XdslChannelConfigurationProfilePart2 struct {
132 ManagedEntityDefinition
133 Attributes AttributeValueMap
134}
135
136func init() {
137 xdslchannelconfigurationprofilepart2BME = &ManagedEntityDefinition{
138 Name: "XdslChannelConfigurationProfilePart2",
139 ClassID: 412,
140 MessageTypes: mapset.NewSetWith(
141 Create,
142 Delete,
143 Get,
144 Set,
145 ),
146 AllowedAttributeMask: 0xfff8,
147 AttributeDefinitions: AttributeDefinitionMap{
148 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
149 1: Uint32Field("MinimumExpectedThroughputForRetransmissionMinetrRtx", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
150 2: Uint32Field("MaximumExpectedThroughputForRetransmissionMaxetrRtx", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
151 3: Uint32Field("MaximumNetDataRateForRetransmissionMaxndrRtx", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
152 4: ByteField("MaximumDelayForRetransmissionDelaymaxRtx", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
153 5: ByteField("MinimumDelayForRetransmissionDelayminRtx", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
154 6: ByteField("MinimumImpulseNoiseProtectionAgainstSingleHighImpulseNoiseEventShineForRetransmissionInpminShineRtx", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
155 7: ByteField("MinimumImpulseNoiseProtectionAgainstShineForRetransmissionForSystemsUsing8625KhzSubcarrierSpacingInpmin8ShineRtx", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
156 8: ByteField("ShineratioRtx", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
157 9: ByteField("MinimumImpulseNoiseProtectionAgainstReinForRetransmissionInpminReinRtx", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
158 10: ByteField("MinimumImpulseNoiseProtectionAgainstReinForRetransmissionForSystemsUsing8625KhzSubcarrierSpacingInpmin8ReinRtx", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, false, false, 10),
159 11: ByteField("ReinInterArrivalTimeForRetransmissionIatReinRtx", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, false, false, 11),
160 12: Uint32Field("TargetNetDataRateTargetNdr", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, false, false, 12),
161 13: Uint32Field("TargetExpectedThroughputForRetransmissionTargetEtr", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, false, false, 13),
162 },
163 Access: CreatedByOlt,
164 Support: UnknownSupport,
165 }
166}
167
168// NewXdslChannelConfigurationProfilePart2 (class ID 412) creates the basic
169// Managed Entity definition that is used to validate an ME of this type that
170// is received from or transmitted to the OMCC.
171func NewXdslChannelConfigurationProfilePart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
172 return NewManagedEntity(*xdslchannelconfigurationprofilepart2BME, params...)
173}