blob: 21a078ff07f7a24bd685205856b81b10f66b7a30 [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// Vdsl2LineInventoryAndStatusDataPart1ClassID is the 16-bit ID for the OMCI
26// Managed entity VDSL2 line inventory and status data part 1
27const Vdsl2LineInventoryAndStatusDataPart1ClassID ClassID = ClassID(168)
28
29var vdsl2lineinventoryandstatusdatapart1BME *ManagedEntityDefinition
30
31// Vdsl2LineInventoryAndStatusDataPart1 (class ID #168)
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 general and downstream 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 C
52// VDSL2 transmission system capability xTUC: This attribute extends the xTU-C transmission system
53// capability attribute of the xDSL line inventory and status data part 1 to include xTU-C VDSL2
54// capabilities. It is defined by bits 57..64 of Table 9.7.12-1. (R) (mandatory) (1-byte)
55//
56// Vdsl2 Transmission System
57// VDSL2 transmission system: This attribute reports the transmission system in use. It extends the
58// xDSL transmission system attribute of the xDSL line inventory and status data part 2 ME with a
59// byte that includes VDSL2 capabilities currently in use. It is defined by bits 57..64 of Table
60// 9.7.12-1. (R) (mandatory) (1-byte)
61//
62// Vdsl2 Profile
63// (R) (mandatory) (1-byte)
64//
65// Vdsl2 Limit Psd Mask And Bandplan
66// VDSL2 limit PSD mask and bandplan: This attribute defines the limit PSD mask and band plan in
67// use. It is a bit map as defined by Table 9.7.6-1. (R) (mandatory) (8-bytes)
68//
69// Vdsl2 Us0 Psd Mask
70// VDSL2 US0 PSD mask: This attribute defines the US0 PSD mask in use. It is a bit map as defined
71// by Table 9.7.62. (R) (mandatory) (4-bytes)
72//
73// Actsnrmodeds
74// (R) (mandatory) (1-byte)
75//
76// Hlingds
77// HLINGds: This attribute contains the number of subcarriers per group used to report HLINpsds.
78// (R) (mandatory) (1-byte)
79//
80// Hloggds
81// HLOGGds: This attribute contains the number of subcarriers per group used to report HLOGpsds.
82// (R) (mandatory) (1-byte)
83//
84// Qlngds
85// QLNGds: This attribute contains the number of subcarriers per group used to report QLNpsds. (R)
86// (mandatory) (1-byte)
87//
88// Snrgds
89// SNRGds: This attribute contains the number of subcarriers per group used to report SNRpsds. (R)
90// (mandatory) (1-byte)
91//
92// Mrefpsdds Table
93// (R) (mandatory) (3 * N bytes, where N is the number of breakpoints)
94//
95// Trellisds
96// (R) (mandatory for ITU-T G.993.2 VDSL2, optional for others) (1-byte)
97//
98// Actual Rate Adaptation Mode Downstream
99// (R) (optional) (1-byte)
100//
101// Actual Impulse Noise Protection Robust Operations Channel Roc Downstream
102// Actual impulse noise protection robust operations channel (ROC) downstream: The ACTINP-ROC-ds
103// attribute reports the actual INP of the ROC in the downstream direction expressed in multiples
104// of T4k. The INP of this attribute is equal to the integer value multiplied by 0.1 symbols. Valid
105// values and usage are given in clause 7.5.1.34.1 of [ITUT-G.997.1]. (R) (optional) (1-byte)
106//
107// Snr Margin Roc Downstream
108// SNR margin ROC downstream: The SNRM-ROC-ds attribute reports the actual signal-to-noise margin
109// of the ROC in the downstream direction. Its value ranges from 0 (-64.0-dB) to 1270 (+63.0-dB).
110// The special value 0xFFFF indicates that the attribute is out of range. (R) (optional) (2-bytes)
111//
112type Vdsl2LineInventoryAndStatusDataPart1 struct {
113 ManagedEntityDefinition
114 Attributes AttributeValueMap
115}
116
117func init() {
118 vdsl2lineinventoryandstatusdatapart1BME = &ManagedEntityDefinition{
119 Name: "Vdsl2LineInventoryAndStatusDataPart1",
120 ClassID: 168,
121 MessageTypes: mapset.NewSetWith(
122 Get,
123 GetNext,
124 ),
125 AllowedAttributeMask: 0xfffe,
126 AttributeDefinitions: AttributeDefinitionMap{
127 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
128 1: ByteField("Vdsl2TransmissionSystemCapabilityXtuC", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
129 2: ByteField("Vdsl2TransmissionSystem", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2),
130 3: ByteField("Vdsl2Profile", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
131 4: Uint64Field("Vdsl2LimitPsdMaskAndBandplan", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
132 5: Uint32Field("Vdsl2Us0PsdMask", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
133 6: ByteField("Actsnrmodeds", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
134 7: ByteField("Hlingds", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
135 8: ByteField("Hloggds", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
136 9: ByteField("Qlngds", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
137 10: ByteField("Snrgds", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
138 11: TableField("MrefpsddsTable", TableAttributeType, 0x0020, TableInfo{nil, 3}, mapset.NewSetWith(Read), false, false, false, 11),
139 12: ByteField("Trellisds", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
140 13: ByteField("ActualRateAdaptationModeDownstream", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
141 14: ByteField("ActualImpulseNoiseProtectionRobustOperationsChannelRocDownstream", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
142 15: Uint16Field("SnrMarginRocDownstream", UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
143 },
144 Access: CreatedByOnu,
145 Support: UnknownSupport,
146 }
147}
148
149// NewVdsl2LineInventoryAndStatusDataPart1 (class ID 168) 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 NewVdsl2LineInventoryAndStatusDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
153 return NewManagedEntity(*vdsl2lineinventoryandstatusdatapart1BME, params...)
154}