blob: 77c9ba293e759de16e00bba7e978b7033fd4be8e [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 XdslChannelDownstreamStatusDataClassId ClassID = ClassID(102)
25
26var xdslchanneldownstreamstatusdataBME *ManagedEntityDefinition
27
28// XdslChannelDownstreamStatusData (class ID #102)
29// This ME contains downstream channel status data for an xDSL UNI. The ONU automatically creates
30// or deletes instances of this ME upon the creation or deletion of a PPTP xDSL UNI part 1.
31//
32// NOTE – [ITU-T G.997.1] specifies that bit rate attributes have a granularity of 1000 bit/s. If
33// ITU-T G.997.1 compliance is required, the ONU should only report values with this granularity.
34//
35// Relationships
36// One or more instances of this ME are associated with an instance of an xDSL UNI.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. The two MSBs of
41// the first byte are the bearer channel ID. Excluding the first 2 bits of the first byte, the
42// remaining part of the ME ID is identical to that of this ME's parent PPTP xDSL UNI part 1. (R)
43// (mandatory) (2 bytes)
44//
45// Actual Interleaving Delay
46// Actual interleaving delay: This attribute is the actual one-way interleaving delay introduced by
47// the PMS-TC between the alpha and beta reference points, excluding delay in the L1 and L2 states.
48// In the L1 and L2 states, the attribute contains the interleaving delay in the previous L0 state.
49// For ADSL, this attribute is derived from the S and D attributes as cap(S*D)/4 ms, where S is the
50// number of symbols per codeword, D is the interleaving depth and cap() denotes rounding to the
51// next higher integer. For [ITU-T G.993.2], this attribute is computed according to the formula in
52// clause 9.7 of [ITUT G.993.2]. The actual interleaving delay is coded in milliseconds, rounded to
53// the nearest millisecond. (R) (mandatory) (1 byte)
54//
55// Actual Data Rate
56// Actual data rate: This parameter reports the actual net data rate of the bearer channel,
57// excluding the rate in the L1 and L2 states. In the L1 or L2 state, the parameter contains the
58// net data rate in the previous L0 state. The data rate is coded in bits per second. (R)
59// (mandatory) (4 bytes)
60//
61// Previous Data Rate
62// Previous data rate: This parameter reports the previous net data rate of the bearer channel just
63// before the latest rate change event occurred, excluding transitions between the L0 state and the
64// L1 or L2 states. A rate change can occur at a power management state transition, e.g., at full
65// or short initialization, fast retrain or power down, or at a dynamic rate adaptation. The rate
66// is coded in bits per second (R) (mandatory) (4 bytes)
67//
68// Actual Impulse Noise Protection
69// Actual impulse noise protection: The ACTINP attribute reports the actual INP on the bearer
70// channel in the L0 state. In the L1 or L2 state, the attribute contains the INP in the previous
71// L0 state. The value of this attribute is a number of DMT symbols, with a granularity of 0.1
72// symbols. Its range is from 0 (0.0 symbols) to 254 (25.4 symbols). The special value 255
73// indicates an ACTINP higher than 25.4. (R) (optional for [ITU-T G.992.1], mandatory for other
74// xDSL Recommendations that support this attribute) (1 byte)
75//
76// Actual Size Of Reed_Solomon Codeword
77// Actual size of Reed-Solomon codeword: The NFEC attribute reports the actual Reed-Solomon
78// codeword size used in the latency path in which the bearer channel is transported. The value is
79// coded in bytes, and ranges from 0..255. (R) (mandatory for ITUT G.993.2 VDSL2, optional for
80// others) (1 byte)
81//
82// Actual Number Of Reed_Solomon Redundancy Bytes
83// Actual number of Reed-Solomon redundancy bytes: The RFEC attribute reports the actual number of
84// Reed-Solomon redundancy bytes per codeword used in the latency path in which the bearer channel
85// is transported. The value is coded in bytes, and ranges from 0..16. The value 0 indicates no
86// Reed-Solomon coding. (R) (mandatory for ITUT G.993.2 VDSL2, optional for others) (1 byte)
87//
88// Actual Number Of Bits Per Symbol
89// Actual number of bits per symbol: The LSYMB attribute reports the actual number of bits per
90// symbol assigned to the latency path in which the bearer channel is transported, excluding
91// trellis overhead. The value is coded in bits, and ranges from 0..65535. (R) (mandatory for [TU-T
92// G.993.2 VDSL2, optional for others) (2 bytes)
93//
94// Actual Interleaving Depth
95// Actual interleaving depth: The INTLVDEPTH attribute reports the actual depth of the interleaver
96// used in the latency path in which the bearer channel is transported. The value ranges from
97// 1..4096 in steps of 1. The value 1 indicates no interleaving. (R) (mandatory for ITU-T G.993.2
98// VDSL2, optional for others) (2 bytes)
99//
100// Actual Interleaving Block Length
101// Actual interleaving block length: The INTLVBLOCK attribute reports the actual block length of
102// the interleaver used in the latency path in which the bearer channel is transported. The value
103// ranges from 4..255 in steps of 1. (R) (mandatory for ITU-T G.993.2 VDSL2, undefined for others)
104// (1 byte)
105//
106// Actual Latency Path
107// Actual latency path: The LPATH attribute reports the index of the actual latency path in which
108// the bearer channel is transported. Valid values are 0..3. In [ITUT G.992.1], the fast path is
109// mapped to latency index 0; the interleaved path to index 1. (R) (mandatory for ITU-T G.993.2
110// VDSL2, optional for others) (1 byte)
111//
112// Actual Impulse Noise Protection Against R Epetitive E Lectrical I Mpulse N Oise Actinp_Rein
113// Actual impulse noise protection against repetitive electrical impulse noise (ACTINP_REIN): If
114// retransmission is used in a given transmit direction, this parameter reports the actual INP
115// against REIN on the bearer channel. The INP of this attribute is equal to the integer value
116// multiplied by 0.1 symbols. Valid values and usage are given in clause 7.5.2.9 of [ITU-T G.997.1]
117// (R) (optional) (1 byte)
118//
119type XdslChannelDownstreamStatusData struct {
120 ManagedEntityDefinition
121 Attributes AttributeValueMap
122}
123
124func init() {
125 xdslchanneldownstreamstatusdataBME = &ManagedEntityDefinition{
126 Name: "XdslChannelDownstreamStatusData",
127 ClassID: 102,
128 MessageTypes: mapset.NewSetWith(
129 Get,
130 ),
131 AllowedAttributeMask: 0XFFE0,
132 AttributeDefinitions: AttributeDefinitionMap{
133 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
134 1: ByteField("ActualInterleavingDelay", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
135 2: Uint32Field("ActualDataRate", 0, mapset.NewSetWith(Read), false, false, false, false, 2),
136 3: Uint32Field("PreviousDataRate", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
137 4: ByteField("ActualImpulseNoiseProtection", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
138 5: ByteField("ActualSizeOfReedSolomonCodeword", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
139 6: ByteField("ActualNumberOfReedSolomonRedundancyBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
140 7: Uint16Field("ActualNumberOfBitsPerSymbol", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
141 8: Uint16Field("ActualInterleavingDepth", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
142 9: ByteField("ActualInterleavingBlockLength", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
143 10: ByteField("ActualLatencyPath", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
144 11: ByteField("ActualImpulseNoiseProtectionAgainstREpetitiveELectricalIMpulseNOiseActinpRein", 0, mapset.NewSetWith(Read), false, false, true, false, 11),
145 },
146 }
147}
148
149// NewXdslChannelDownstreamStatusData (class ID 102 creates the basic
150// Managed Entity definition that is used to validate an ME of this type that
151// is received from the wire, about to be sent on the wire.
152func NewXdslChannelDownstreamStatusData(params ...ParamData) (*ManagedEntity, OmciErrors) {
153 return NewManagedEntity(xdslchanneldownstreamstatusdataBME, params...)
154}