blob: 798d52fc0cf978432ff9f90eba1320e1bed96ccb [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// Vdsl2LineInventoryAndStatusDataPart2ClassID is the 16-bit ID for the OMCI
26// Managed entity VDSL2 line inventory and status data part 2
27const Vdsl2LineInventoryAndStatusDataPart2ClassID ClassID = ClassID(169)
28
29var vdsl2lineinventoryandstatusdatapart2BME *ManagedEntityDefinition
30
31// Vdsl2LineInventoryAndStatusDataPart2 (class ID #169)
32// This ME extends the xDSL line configuration MEs. The ME name was chosen because its attributes
33// were initially unique to ITU-T G.993.2 VDSL2. Due to continuing standards development, some
34// attributes - and therefore this ME - have also become applicable to other Recommendations,
35// specifically [ITU-T G.992.3] and [ITU-T G.992.5].
36//
37// This ME contains upstream attributes.
38//
39// Relationships
40// This is one of the status data MEs associated with an xDSL UNI. It is meaningful if the PPTP
41// supports [ITU-T G.992.3], [ITU-T G.992.5] or [ITU-T G.993.2]. The ONU automatically creates or
42// deletes an instance of this ME upon creation and deletion of a PPTP xDSL UNI part 1 that
43// supports these attributes.
44//
45// Attributes
46// Managed Entity Id
47// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
48// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. (R)
49// (mandatory) (2-bytes)
50//
51// Vdsl2 Transmission System Capability Xtu_R
52// VDSL2 transmission system capability xTU-R: This attribute extends the xTU-R transmission system
53// capability attribute of the xDSL line inventory and status data part 1 to include xTUR VDSL2
54// capabilities. It is a defined by bits 57..64 of Table 9.7.12-1. (R) (mandatory) (1-byte)
55//
56// Actsnrmodeus
57// (R) (mandatory) (1-byte)
58//
59// Upbokle
60// UPBOKLE: This attribute contains the electrical length estimated by the VTU-O expressed in
61// decibels at 1-MHz, kl0 (see O-UPDATE in clause 12.3.3.2.1.2 of [ITUT-G.993.2]). This is the
62// final electrical length that would have been sent from the VTU-O to the VTU-R if the electrical
63// length were not forced by the OLT. The value lies in the range 0 (0.0-dB) to 1280 (128.0-dB) (R)
64// (mandatory) (2-bytes)
65//
66// Hlingus
67// HLINGus: This attribute is the number of subcarriers per group used to report HLINpsus. (R)
68// (mandatory) (1-byte)
69//
70// Hloggus
71// HLOGGus: This attribute is the number of subcarriers per group used to report HLOGpsus. (R)
72// (mandatory) (1-byte)
73//
74// Qlngus
75// QLNGus: This attribute is the number of subcarriers per group used to report QLNpsus. (R)
76// (mandatory) (1-byte)
77//
78// Snrgus
79// SNRGus: This attribute is the number of subcarriers per group used to report SNRpsus. (R)
80// (mandatory) (1-byte)
81//
82// Mrefpsdus Table
83// (R) (mandatory) (3 * N bytes, where N is the number of breakpoints)
84//
85// Trellisus
86// (R) (mandatory for ITU-T G.993.2 VDSL2, optional for others) (1-byte)
87//
88// Actualce
89// ACTUALCE: This attribute reports the cyclic extension used on the line. It is coded as an
90// unsigned integer from 2 to 16 in units of N/32 samples, where 2N is the IDFT size. (R)
91// (mandatory) (1-byte)
92//
93// Upbokle_R
94// UPBOKLE-R: This attribute contains the electrical length estimated by the VTU-R expressed in
95// decibels at 1-MHz. This is the value contained in the message RMSG1 (see clause 12.3.3.2.2.1of
96// [ITUT G.993.2]). Its value lies in the range 0 (0.0-dB) to 1280 (128.0-dB) (R) (optional)
97// (2-bytes)
98//
99// Actual Rate Adaptation Mode Upstream
100// (R) (optional) (1-byte)
101//
102// Actual Impulse Noise Protection Roc Upstream
103// Actual impulse noise protection ROC upstream: The ACTINP-ROC-us attribute reports the actual INP
104// of the ROC in the upstream direction expressed in multiples of T4k. The INP of this attribute is
105// equal to the integer value multiplied by 0.1 symbols. Valid values and usage are given in clause
106// 7.5.1.34.2 of [ITUT-G.997.1]. (R) (optional) (1-byte)
107//
108// Snr Margin Roc Upstream
109// SNR margin ROC upstream: The SNRM-ROC-us attribute reports the actual signal-to-noise margin of
110// the ROC in the upstream direction. Its value ranges from 0 (-64.0-dB) to 1270 (+63.0-dB). The
111// special value 0xFFFF indicates that the attribute is out of range. (R) (optional) (2-bytes)
112//
113type Vdsl2LineInventoryAndStatusDataPart2 struct {
114 ManagedEntityDefinition
115 Attributes AttributeValueMap
116}
117
118func init() {
119 vdsl2lineinventoryandstatusdatapart2BME = &ManagedEntityDefinition{
120 Name: "Vdsl2LineInventoryAndStatusDataPart2",
121 ClassID: 169,
122 MessageTypes: mapset.NewSetWith(
123 Get,
124 GetNext,
125 ),
126 AllowedAttributeMask: 0xfffc,
127 AttributeDefinitions: AttributeDefinitionMap{
128 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
129 1: ByteField("Vdsl2TransmissionSystemCapabilityXtuR", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
130 2: ByteField("Actsnrmodeus", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2),
131 3: Uint16Field("Upbokle", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
132 4: ByteField("Hlingus", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
133 5: ByteField("Hloggus", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
134 6: ByteField("Qlngus", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
135 7: ByteField("Snrgus", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
136 8: TableField("MrefpsdusTable", TableAttributeType, 0x0100, TableInfo{nil, 3}, mapset.NewSetWith(Read), false, false, false, 8),
137 9: ByteField("Trellisus", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
138 10: ByteField("Actualce", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
139 11: Uint16Field("UpbokleR", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
140 12: ByteField("ActualRateAdaptationModeUpstream", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
141 13: ByteField("ActualImpulseNoiseProtectionRocUpstream", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
142 14: Uint16Field("SnrMarginRocUpstream", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
143 },
144 Access: CreatedByOnu,
145 Support: UnknownSupport,
146 }
147}
148
149// NewVdsl2LineInventoryAndStatusDataPart2 (class ID 169) creates the basic
150// Managed Entity definition that is used to validate an ME of this type that
151// is received from or transmitted to the OMCC.
152func NewVdsl2LineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
153 return NewManagedEntity(*vdsl2lineinventoryandstatusdatapart2BME, params...)
154}