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