blob: 54dff5e9f9c2ba95205359b05b38ac99ba755a1c [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// XdslLineConfigurationProfilePart3ClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL line configuration profile part 3
27const XdslLineConfigurationProfilePart3ClassID ClassID = ClassID(106)
28
29var xdsllineconfigurationprofilepart3BME *ManagedEntityDefinition
30
31// XdslLineConfigurationProfilePart3 (class ID #106)
32// The overall xDSL line configuration profile is modelled in several parts, all of which are
33// associated together through a common ME ID (the client PPTP xDSL UNI part 1 has a single
34// pointer, which refers to the entire set of line configuration profile parts).
35//
36// Relationships
37// An instance of this ME may be associated with zero or more instances of an xDSL UNI.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. All xDSL and
42// VDSL2 line configuration profiles and extensions that pertain to a given PPTP xDSL UNI must
43// share a common ME ID. (R, setbycreate) (mandatory) (2-bytes)
44//
45// Loop Diagnostics Mode Forced Ldsf
46// Only while the line power management state is L3 can the line be forced into loop diagnostic
47// mode. When loop diagnostic procedures complete successfully, the ONU resets this attribute to 0.
48// The line remains in the L3 idle state. The loop diagnostics data are available at least until
49// the line is forced to the L0 state. As long as loop diagnostic procedures have not completed
50// successfully, attempts are made to do so, until the loop diagnostic mode is no longer forced on
51// the line through this configuration parameter. If loop diagnostic procedures cannot be completed
52// successfully after a vendordiscretionary number of retries or within a vendor-discretionary
53// timeout, then an initialization failure occurs. (R,-W, setbycreate) (mandatory) (1-byte)
54//
55// Automode Cold Start Forced
56// Automode is defined as the case where multiple operation modes are enabled in xTSE (Table
57// 9.7.12-1) and where the selection of the operation mode to be used for transmission depends, not
58// only on the common capabilities of both xTUs (as exchanged in [ITU-T G.994.1]), but also on
59// achievable data rates under given loop conditions. (R,-W, setbycreate) (mandatory if automode is
60// supported) (1-byte)
61//
62// L2 Atpr
63// L2ATPR: This parameter specifies the maximum aggregate transmit power reduction that can be
64// performed in the L2 request (i.e., at the transition of L0 to L2 state) or through a single
65// power trim in the L2 state. It is only valid for [ITUT-G.992.3], [ITUT-G.992.4] and
66// [ITUT-G.992.5]. This attribute ranges from 0 (0-dB) dB to 31 (31-dB). (R, W, setbycreate)
67// (mandatory) (1 byte)
68//
69// L2 Atprt
70// L2ATPRT: This parameter specifies the total maximum aggregate transmit power reduction (in
71// decibels) that can be performed in an L2 state. This is the sum of all reductions of L2 requests
72// (i.e., at transitions from L0 to L2 state) and power trims. This attribute ranges from 0 (0 dB)
73// dB to 31 (31 dB). (R, W, setbycreate) (mandatory) (1 byte)
74//
75// Force Inp Downstream
76// Force INP downstream: When set to 1, the FORCEINPds attribute forces the framer settings of all
77// downstream bearer channels to be selected such that the impulse noise protection (INP) computed
78// according to the formula specified in the relevant Recommendation is greater than or equal to
79// the minimal INP requirement. The default value 0 disables this function. (R, W) (mandatory for
80// [ITU-T G.993.2], optional for other Recommendations that support it) (1 byte)
81//
82// Force Inp Upstream
83// Force INP upstream: When set to 1, the FORCEINPus attribute forces the framer settings of all
84// upstream bearer channels to be selected such that the INP computed according to the formula
85// specified in the relevant Recommendation is greater than or equal to the minimal INP
86// requirement. The default value 0 disables this function. (R, W) (mandatory for [ITU-T G.993.2],
87// optional for other Recommendations that support it) (1 byte)
88//
89// Update Request Flag For Near_End Test Parameters
90// Update request flag for near-end test parameters: The UPDATE-TEST-NE attribute forces an update
91// of all near-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update
92// is triggered by setting this attribute to 1, whereupon the near-end test parameters are expected
93// to be updated within 10-s, and the ONU should reset the attribute value to 0. The update request
94// flag is independent of any autonomous update process in the system. The update request attribute
95// must be prepared to accept another set after a period not to exceed 3-min, a period that starts
96// when the flag is set via the OMCI or by an autonomous process in the system. (R,-W) (optional)
97// (1-byte)
98//
99// Update Request Flag For Far_End Test Parameters
100// Update request flag for far-end test parameters: The UPDATE-TEST-FE attribute forces an update
101// of all far-end test parameters that can be updated during showtime in [ITU-T G.993.2]. Update is
102// triggered by setting this attribute to 1, whereupon the far-end test parameters are expected to
103// be updated within 10-s, and the ONU should reset the attribute value to 0. The update request
104// flag is independent of any autonomous update process in the system. The update request attribute
105// must be prepared to accept another set after a period not to exceed 3-min, a period that starts
106// when the flag is set via the OMCI or by an autonomous process in the system. (R,-W) (optional)
107// (1-byte)
108//
109// Inm Inter Arrival Time Offset Upstream
110// INM inter-arrival time offset upstream: INMIATOus is the inter-arrival time (IAT) offset that
111// the xTU-C receiver uses to determine in which bin of the IAT histogram the IAT is reported.
112// Valid values for INMIATO range from 3 to 511 discrete multi-tone (DMT) symbols in steps of 1 DMT
113// symbol. (R,-W) (optional) (2-bytes)
114//
115// Inm Inter_Arrival Time Step Upstream
116// INM inter-arrival time step upstream: INMIATSus is the IAT step that the xTU-C receiver uses to
117// determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS range
118// from 0 to 7 in steps of 1. (R,-W) (optional) (1-byte)
119//
120// Inm Cluster Continuation Value Upstream
121// INM cluster continuation value upstream: INMCCus is the cluster continuation value that the
122// xTU-C receiver uses in the cluster indication process described in the applicable
123// Recommendation. Valid values for INMCC range from 0 to 64 DMT symbols in steps of 1 DMT symbol.
124// (R,-W) (optional) (1-byte)
125//
126// Inm Equivalent Inp Mode Upstream
127// INM equivalent INP mode upstream: INM_INPEQ_MODEus is the INM equivalent INP mode that the xTU-C
128// receiver uses in the computation of the equivalent INP, as defined in the applicable
129// Recommendation. Valid values for INM_INPEQ_MODE are 0..4. (R,-W) (optional) (1-byte)
130//
131// Inm Inter Arrival Time Offset Downstream
132// INM inter-arrival time offset downstream: INMIATOds is the IAT offset that the xTU-R receiver
133// uses to determine in which bin of the IAT histogram the IAT is reported. Valid values for
134// INMIATO range from 3 to 511 DMT symbols in steps of 1 DMT symbol. (R,-W) (optional) (2-bytes)
135//
136// Inm Inter_Arrival Time Step Downstream
137// INM inter-arrival time step downstream: INMIATSds is the IAT step that the xTU-R receiver uses
138// to determine in which bin of the IAT histogram the IAT is reported. Valid values for INMIATS
139// range from 0 to 7 in steps of 1. (R,-W) (optional) (1-byte)
140//
141// Inm Cluster Continuation Value Downstream
142// INM cluster continuation value downstream: INMCCds is the cluster continuation value that the
143// xTU-R receiver uses in the cluster indication process described in the applicable
144// Recommendation. Valid values for INMCC range from 0 to 64 DMT symbols in steps of 1 DMT symbol.
145// (R,-W) (optional) (1-byte)
146//
147// Inm Equivalent Inp Mode Downstream
148// INM equivalent INP mode downstream: INM_INPEQ_MODEds is the INM equivalent INP mode that the
149// xTU-R receiver uses in the computation of the equivalent INP, as defined in the applicable
150// Recommendation. Valid values for INM_INPEQ_MODE are 0..4. (R,-W) (optional) (1-byte)
151//
152type XdslLineConfigurationProfilePart3 struct {
153 ManagedEntityDefinition
154 Attributes AttributeValueMap
155}
156
157func init() {
158 xdsllineconfigurationprofilepart3BME = &ManagedEntityDefinition{
159 Name: "XdslLineConfigurationProfilePart3",
160 ClassID: 106,
161 MessageTypes: mapset.NewSetWith(
162 Create,
163 Delete,
164 Get,
165 Set,
166 ),
167 AllowedAttributeMask: 0xffff,
168 AttributeDefinitions: AttributeDefinitionMap{
169 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
170 1: ByteField("LoopDiagnosticsModeForcedLdsf", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
171 2: ByteField("AutomodeColdStartForced", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
172 3: ByteField("L2Atpr", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
173 4: ByteField("L2Atprt", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
174 5: ByteField("ForceInpDownstream", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
175 6: ByteField("ForceInpUpstream", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
176 7: ByteField("UpdateRequestFlagForNearEndTestParameters", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), true, true, false, 7),
177 8: ByteField("UpdateRequestFlagForFarEndTestParameters", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), true, true, false, 8),
178 9: Uint16Field("InmInterArrivalTimeOffsetUpstream", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, true, false, 9),
179 10: ByteField("InmInterArrivalTimeStepUpstream", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
180 11: ByteField("InmClusterContinuationValueUpstream", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read, Write), false, true, false, 11),
181 12: ByteField("InmEquivalentInpModeUpstream", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
182 13: Uint16Field("InmInterArrivalTimeOffsetDownstream", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
183 14: ByteField("InmInterArrivalTimeStepDownstream", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read, Write), false, true, false, 14),
184 15: ByteField("InmClusterContinuationValueDownstream", UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read, Write), false, true, false, 15),
185 16: ByteField("InmEquivalentInpModeDownstream", UnsignedIntegerAttributeType, 0x0001, 0, mapset.NewSetWith(Read, Write), false, true, false, 16),
186 },
187 Access: CreatedByOlt,
188 Support: UnknownSupport,
189 }
190}
191
192// NewXdslLineConfigurationProfilePart3 (class ID 106) creates the basic
193// Managed Entity definition that is used to validate an ME of this type that
194// is received from or transmitted to the OMCC.
195func NewXdslLineConfigurationProfilePart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
196 return NewManagedEntity(*xdsllineconfigurationprofilepart3BME, params...)
197}