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