blob: 8b487de97fba75db466049ea528ab17b0023b9cc [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// XdslLineInventoryAndStatusDataPart5ClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL line inventory and status data part 5
27const XdslLineInventoryAndStatusDataPart5ClassID ClassID = ClassID(325)
28
29var xdsllineinventoryandstatusdatapart5BME *ManagedEntityDefinition
30
31// XdslLineInventoryAndStatusDataPart5 (class ID #325)
32// This ME extends the attributes defined in the xDSL line inventory and status data parts 1..4.
33// This ME reports FEXT and NEXT attributes, and pertains to Annex C of [ITUT G.992.3] (ADSL2) and
34// Annex C of [ITUT G.992.5] (ADSL2plus).
35//
36// Relationships
37// This is one of the status data MEs associated with an xDSL UNI. The ONU automatically creates or
38// deletes an instance of this ME upon creation or deletion of a PPTP xDSL UNI part 1 that supports
39// these attributes.
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
44// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. (R)
45// (mandatory) (2-bytes)
46//
47// Fext Downstream Snr Margin
48// FEXT downstream SNR margin: The FEXT SNRMds attribute is the downstream SNR margin measured
49// during FEXTR duration at the ATU-R. The attribute value ranges from 0 (-64.0-dB) to 1270
50// (+63.0-dB). The special value 0xFFFF indicates that the attribute is out of range. (R)
51// (mandatory) (2-bytes)
52//
53// Next Downstream Snr Margin
54// NEXT downstream SNR margin: The NEXT SNRMds attribute is the downstream SNR margin measured
55// during NEXTR duration at the ATU-R. The attribute value ranges from 0 (-64.0-dB) to 1270
56// (+63.0-dB). The special value 0xFFFF indicates that the attribute is out of range. (R)
57// (mandatory) (2-bytes)
58//
59// Fext Upstream Snr Margin
60// FEXT upstream SNR margin: The FEXT SNRMus attribute is the upstream SNR margin (see clause
61// 7.5.1.16 of [ITUT G.997.1]) measured during FEXTC duration at the ATU-C. The attribute value
62// ranges from 0 (-64.0-dB) to 1270 (+63.0-dB). The special value 0xFFFF indicates that the
63// attribute is out of range. (R) (mandatory) (2-bytes)
64//
65// Next Upstream Snr Margin
66// NEXT upstream SNR margin: The NEXT SNRMus attribute is the upstream SNR margin (see clause
67// 7.5.1.16 of [ITUT-G.997.1]) measured during NEXTC duration at the ATU-C. The attribute value
68// ranges from 0 (-64.0-dB) to 1270 (+63.0-dB). The special value 0xFFFF indicates that the
69// attribute is out of range. (R) (mandatory) (2-bytes)
70//
71// Fext Downstream Maximum Attainable Data Rate
72// FEXT downstream maximum attainable data rate: The FEXT ATTNDRds attribute is the maximum
73// downstream net data rate calculated from FEXT downstream SNR(f) (see clause 7.5.1.28.3.1 of
74// [ITUT G.997.1]). The rate is coded in bits per second. (R) (mandatory) (4-bytes)
75//
76// Next Downstream Maximum Attainable Data Rate
77// NEXT downstream maximum attainable data rate: The NEXT ATTNDRds attribute is the maximum
78// downstream net data rate calculated from NEXT downstream SNR(f) (see clause 7.5.1.28.3.2 of
79// [ITUT G.997.1]). The rate is coded in bits per second. (R) (mandatory) (4-bytes)
80//
81// Fext Upstream Maximum Attainable Data Rate
82// FEXT upstream maximum attainable data rate: The FEXT ATTNDRus attribute is the maximum upstream
83// net data rate calculated from FEXT upstream SNR(f) (see clause 7.5.1.28.6.1 of [ITUT G.997.1]).
84// The rate is coded in bits per second. (R) (mandatory) (4-bytes)
85//
86// Next Upstream Maximum Attainable Data Rate
87// NEXT upstream maximum attainable data rate: The NEXT ATTNDRus attribute is the maximum upstream
88// net data rate calculated from NEXT upstream SNR(f) (see clause 7.5.1.28.6.2 of [ITUT G.997.1]).
89// The rate is coded in bits per second. (R) (mandatory) (4-bytes)
90//
91// Fext Downstream Actual Power Spectral Density
92// FEXT downstream actual power spectral density: The FEXT ACTPSDds attribute is the average
93// downstream transmit PSD over the used subcarriers (see clause-7.5.1.21.1 of [ITUT G.997.1])
94// calculated from the REFPSDds and RMSGIds for FEXTR duration. The attribute value ranges from 0
95// (-90.0-dBm/Hz) to 900 (0.0-dBm/Hz). The special value 0xFFFF indicates that the parameter is out
96// of range. (R) (mandatory) (2-bytes)
97//
98// Next Downstream Actual Power Spectral Density
99// NEXT downstream actual power spectral density: The NEXT ACTPSDds attribute is the average
100// downstream transmit PSD over the used subcarriers (see clause-7.5.1.21.2 of [ITUT G.997.1])
101// calculated from the REFPSDds and RMSGIds for NEXTR duration. The attribute value ranges from 0
102// (-90.0-dBm/Hz) to 900 (0.0-dBm/Hz). The special value 0xFFFF indicates that the parameter is out
103// of range. (R) (mandatory) (2-bytes)
104//
105// Fext Upstream Actual Power Spectral Density
106// FEXT upstream actual power spectral density: The FEXT ACTPSDus attribute is the average upstream
107// transmit PSD over the used subcarriers (see clause-7.5.1.22.1 of [ITUT G.997.1]) calculated from
108// the REFPSDus and RMSGIus for FEXTC duration. The attribute value ranges from 0 (-90.0-dBm/Hz) to
109// 900 (0.0-dBm/Hz). The special value 0xFFFF indicates that the parameter is out of range. (R)
110// (mandatory) (2-bytes)
111//
112// Next Upstream Actual Power Spectral Density
113// NEXT upstream actual power spectral density: The NEXT ACTPSDus attribute is the average upstream
114// transmit PSD over the used subcarriers (see clause-7.5.1.22.2 of [ITUT G.997.1]) calculated from
115// the REFPSDus and RMSGIus for NEXTC duration. The attribute value ranges from 0 (-90.0-dBm/Hz) to
116// 900 (0.0-dBm/Hz). The special value 0xFFFF indicates that the parameter is out of range. (R)
117// (mandatory) (2-bytes)
118//
119// Fext Downstream Actual Aggregate Transmit Power
120// FEXT downstream actual aggregate transmit power: The FEXT ACTATPds attribute is the total amount
121// of transmit power (see clause 7.5.1.24.1 of [ITUT G.997.1]) calculated from PSDds measured
122// during FEXTR duration at the ATU-R. The attribute value ranges from 0 (-31.0-dBm) to 620
123// (+31.0-dBm). The special value 0xFFFF indicates that the parameter is out of range. (R)
124// (mandatory) (2-bytes)
125//
126// Next Downstream Actual Aggregate Transmit Power
127// NEXT downstream actual aggregate transmit power: The NEXT ACTATPds attribute is the total amount
128// of transmit power (see clause 7.5.1.24.2 of [ITUT G.997.1]) calculated from PSDds measured
129// during NEXTR duration at the ATU-R. The attribute value ranges from 0 (-31.0-dBm) to 620
130// (+31.0-dBm). The special value 0xFFFF indicates that the parameter is out of range. (R)
131// (mandatory) (2-bytes)
132//
133// Fext Upstream Actual Aggregate Transmit Power
134// FEXT upstream actual aggregate transmit power: The FEXT ACTATPus attribute is the total transmit
135// power (see clause 7.5.1.25.1 of [ITUT G.997.1]) calculated from PSDus measured during FEXTC
136// duration at the ATU-C. The attribute value ranges from 0 (-31.0-dBm) to 620 (+31.0-dBm). The
137// special value 0xFFFF indicates that the parameter is out of range. (R) (mandatory) (2-bytes)
138//
139// Next Upstream Actual Aggregate Transmit Power
140// NEXT upstream actual aggregate transmit power: The NEXT ACTATPus attribute is the total transmit
141// power (see clause 7.5.1.25.2 of [ITUT G.997.1]) calculated from PSDus measured during NEXTC
142// duration at the ATU-C. The attribute value ranges from 0 (-31.0-dBm) to 620 (+31.0-dBm). The
143// special value 0xFFFF indicates that the parameter is out of range. (R) (mandatory) (2-bytes)
144//
145type XdslLineInventoryAndStatusDataPart5 struct {
146 ManagedEntityDefinition
147 Attributes AttributeValueMap
148}
149
150func init() {
151 xdsllineinventoryandstatusdatapart5BME = &ManagedEntityDefinition{
152 Name: "XdslLineInventoryAndStatusDataPart5",
153 ClassID: 325,
154 MessageTypes: mapset.NewSetWith(
155 Get,
156 ),
157 AllowedAttributeMask: 0xffff,
158 AttributeDefinitions: AttributeDefinitionMap{
159 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
160 1: Uint16Field("FextDownstreamSnrMargin", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
161 2: Uint16Field("NextDownstreamSnrMargin", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2),
162 3: Uint16Field("FextUpstreamSnrMargin", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
163 4: Uint16Field("NextUpstreamSnrMargin", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
164 5: Uint32Field("FextDownstreamMaximumAttainableDataRate", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
165 6: Uint32Field("NextDownstreamMaximumAttainableDataRate", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
166 7: Uint32Field("FextUpstreamMaximumAttainableDataRate", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
167 8: Uint32Field("NextUpstreamMaximumAttainableDataRate", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
168 9: Uint16Field("FextDownstreamActualPowerSpectralDensity", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
169 10: Uint16Field("NextDownstreamActualPowerSpectralDensity", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
170 11: Uint16Field("FextUpstreamActualPowerSpectralDensity", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
171 12: Uint16Field("NextUpstreamActualPowerSpectralDensity", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
172 13: Uint16Field("FextDownstreamActualAggregateTransmitPower", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
173 14: Uint16Field("NextDownstreamActualAggregateTransmitPower", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
174 15: Uint16Field("FextUpstreamActualAggregateTransmitPower", UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
175 16: Uint16Field("NextUpstreamActualAggregateTransmitPower", UnsignedIntegerAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, false, false, 16),
176 },
177 Access: CreatedByOnu,
178 Support: UnknownSupport,
179 }
180}
181
182// NewXdslLineInventoryAndStatusDataPart5 (class ID 325) creates the basic
183// Managed Entity definition that is used to validate an ME of this type that
184// is received from or transmitted to the OMCC.
185func NewXdslLineInventoryAndStatusDataPart5(params ...ParamData) (*ManagedEntity, OmciErrors) {
186 return NewManagedEntity(*xdsllineinventoryandstatusdatapart5BME, params...)
187}