blob: 29b72a574fbecffbef6fd88c0909e18acac04a77 [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// FastChannelConfigurationProfileClassID is the 16-bit ID for the OMCI
26// Managed entity FAST channel configuration profile
27const FastChannelConfigurationProfileClassID ClassID = ClassID(432)
28
29var fastchannelconfigurationprofileBME *ManagedEntityDefinition
30
31// FastChannelConfigurationProfile (class ID #432)
32// This ME contains the FAST channel configuration profile for an xDSL UNI. An instance of this ME
33// is created and deleted by the OLT.
34//
35// Relationships
36// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
37// 1.
38//
39// Attributes
40// Maximum Net Data Rate Maxndr
41// Maximum net data rate (MAXNDR): This attribute specifies the value of the maximum net data rate.
42// See clause 11.4.2.2 of [ITU-T G.9701]. Valid values range from 0 (0-kbit/s) to 4294967295
43// (2^32-1-kbit/s). See clause 7.2.1.1 of [ITUT-G.997.2]. (R, W) (mandatory) (4 bytes)
44//
45// Minimum Expected Throughput Minetr
46// Minimum expected throughput (MINETR): This attribute specifies the value of the minimum expected
47// throughput. See clause 11.4.2.1 of [ITU-T G.9701]. Valid values range from 0 (0-kbit/s) to
48// 4294967295 (2^32-1-kbit/s). See clause-7.2.1.2 of [ITU-T G.997.2]. (R, W) (mandatory) (4 bytes)
49//
50// Maximum Gamma Data Rate Maxgdr
51// Maximum gamma data rate (MAXGDR): This attribute specifies the maximum value of the GDR (see
52// clause 7.11.1.3). The GDR shall not exceed MAXGDR at the start of showtime and during showtime.
53// Valid values range from 0 (0-kbit/s) to 4294967295 (2^32-1-kbit/s). See clause 7.2.1.3 of [ITU-T
54// G.997.2]. (R, W) (mandatory) (4 bytes)
55//
56// Minimum Gamma Data Rate Mingdr
57// Minimum gamma data rate (MINGDR): This attribute specifies the minimum value of the GDR (see
58// clause 7.11.1.3). The GDR may be lower than MINGDR. If the GDR is lower than MINGDR at
59// initialization or when GDR becomes lower than MINGDR during showtime, a TCA occurs. Valid values
60// range from 0 (0-kbit/s) to 4294967295 (2^32-1-kbit/s). See clause 7.2.1.4 of [ITU-T G.997.2].
61// (R, W) (mandatory) (4 bytes)
62//
63// Maximum Delay Delaymax
64// Maximum delay (DELAYMAX): This attribute specifies the maximum allowed delay for retransmission.
65// See clause 9.8 of [ITU-T G.9701]. The ITUT-G.9701 control parameter delay_max is set to the same
66// value as the maximum delay. See clause 11.4.2.3 of [ITU-T G.9701]. Valid values range from 4
67// (1-ms) to 252 (63-ms) in steps of 0.25-ms. See clause 7.2.2.1 of [ITUT-G.997.2]. (R, W)
68// (mandatory) (4 bytes)
69//
70// Minimum Impulse Noise Protection Against Shine Inpmin_Shine
71// Minimum impulse noise protection against SHINE (INPMIN_SHINE): This attribute specifies the
72// minimum INP against SHINE. See clause 9.8 of [ITU-T G.9701]. The ITU-T G.9701 control parameter
73// INP_min_shine is set to the same value as the minimum INP against SHINE. See clause 11.4.2.4 of
74// [ITU-T G.9701]. Valid values range from 0 to 520 (520 symbol periods). See clause 7.2.2.2 of
75// [ITUT G.997.2]. (R, W) (mandatory) (2-bytes)
76//
77// Shine Ratio Shineratio
78// SHINE ratio (SHINERATIO): This attribute specifies the SHINE ratio that is used in the
79// definition of the expected throughput rate (ETR). See clause 9.8 of [ITUT-G.9701]. The ITU-T
80// G.9701 control parameter SHINEratio is set to the same value as the SHINE ratio. See clause
81// 11.4.2.5 of [ITU-T G.9701]. The value is expressed in units of 0.001, Valid values range from 0
82// to 100 (0.01) in steps of 0.001. See clause 7.2.2.3 of [ITU-T G.997.2]. (R, W) (mandatory)
83// (1-byte)
84//
85// Minimum Impulse Noise Protection Against Rein Inpmin_Rein
86// Minimum impulse noise protection against REIN (INPMIN_REIN): This attribute specifies the
87// minimum INP against REIN. See clause 9.8 of [ITU-T G.9701]. The ITU-T G.9701 control parameter
88// INP_min_rein is set to the same value as the minimum INP against REIN. See clause 11.4.2.6 of
89// [ITU-T G.9701]. Valid values range from 0 to 63 (63-symbol periods). See clause 7.2.2.4 of
90// [ITU-T G.997.2]. (R, W) (mandatory) (1 byte)
91//
92// Rein Inter_Arrival Time Iat_Rein
93// (R, W) (mandatory) (1 byte)
94//
95// Minimum Reed_Solomon Rfec_Nfec Ratio Rnratio
96// Minimum Reed-Solomon RFEC/NFEC ratio (RNRATIO): This attribute specifies the minimal required
97// ratio, RFEC/NFEC, of Reed-Solomon code parameters. The ITU-T G.9701 control parameter rnratio is
98// set to the same value as the minimum Reed-Solomon RFEC/NFEC ratio. See clause 11.4.2.8 of
99// [ITUT-G.9701]. The value is expressed in units of 1/32, Valid values range from 0 to 8 (1/4).
100// See clause 7.2.2.6 of [ITU-T G.997.2]. (R, W) (mandatory) (1 byte)
101//
102// Rtx_Tc Testmode Rtx_Testmode
103// RTX-TC testmode (RTX_TESTMODE): This Boolean attribute specifies whether the retransmission test
104// mode defined in clause 9.8.3.1.2 [ITU-T G.9701] is enabled-(true) or disabled (disabled). See
105// clause 7.2.2.7 of [ITU-T G.997.2]. (R,-W) (optional) (1 byte)
106//
107type FastChannelConfigurationProfile struct {
108 ManagedEntityDefinition
109 Attributes AttributeValueMap
110}
111
112func init() {
113 fastchannelconfigurationprofileBME = &ManagedEntityDefinition{
114 Name: "FastChannelConfigurationProfile",
115 ClassID: 432,
116 MessageTypes: mapset.NewSetWith(
117 Create,
118 Delete,
119 Get,
120 Set,
121 ),
122 AllowedAttributeMask: 0xffc0,
123 AttributeDefinitions: AttributeDefinitionMap{
124 0: Uint32Field("MaximumNetDataRateMaxndr", UnknownAttributeType, 0x0000, 0, mapset.NewSetWith(Read, Write), false, false, false, 0),
125 1: Uint32Field("MinimumExpectedThroughputMinetr", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
126 2: Uint32Field("MaximumGammaDataRateMaxgdr", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
127 3: Uint32Field("MinimumGammaDataRateMingdr", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
128 4: Uint32Field("MaximumDelayDelaymax", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, false, false, 4),
129 5: Uint16Field("MinimumImpulseNoiseProtectionAgainstShineInpminShine", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
130 6: ByteField("ShineRatioShineratio", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read, Write), false, false, false, 6),
131 7: ByteField("MinimumImpulseNoiseProtectionAgainstReinInpminRein", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, Write), false, false, false, 7),
132 8: ByteField("ReinInterArrivalTimeIatRein", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, Write), false, false, false, 8),
133 9: ByteField("MinimumReedSolomonRfecNfecRatioRnratio", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read, Write), false, false, false, 9),
134 10: ByteField("RtxTcTestmodeRtxTestmode", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read, Write), false, true, false, 10),
135 },
136 Access: CreatedByOlt,
137 Support: UnknownSupport,
138 }
139}
140
141// NewFastChannelConfigurationProfile (class ID 432) creates the basic
142// Managed Entity definition that is used to validate an ME of this type that
143// is received from or transmitted to the OMCC.
144func NewFastChannelConfigurationProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
145 return NewManagedEntity(*fastchannelconfigurationprofileBME, params...)
146}