Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
David K. Bainbridge | adf422d | 2021-04-09 16:06:41 +0000 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * NOTE: This file was generated, manual edits will be overwritten! |
| 19 | * |
| 20 | * Generated by 'goCodeGenerator.py': |
| 21 | * https://github.com/cboling/OMCI-parser/README.md |
| 22 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // Vdsl2LineInventoryAndStatusDataPart2ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity VDSL2 line inventory and status data part 2 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const Vdsl2LineInventoryAndStatusDataPart2ClassID = ClassID(169) // 0x00a9 |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var vdsl2lineinventoryandstatusdatapart2BME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // Vdsl2LineInventoryAndStatusDataPart2 (Class ID: #169 / 0x00a9) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // This ME extends the xDSL line configuration MEs. The ME name was chosen because its attributes |
| 36 | // were initially unique to ITU-T G.993.2 VDSL2. Due to continuing standards development, some |
| 37 | // attributes - and therefore this ME - have also become applicable to other Recommendations, |
| 38 | // specifically [ITU-T G.992.3] and [ITU-T G.992.5]. |
| 39 | // |
| 40 | // This ME contains upstream attributes. |
| 41 | // |
| 42 | // Relationships |
| 43 | // This is one of the status data MEs associated with an xDSL UNI. It is meaningful if the PPTP |
| 44 | // supports [ITU-T G.992.3], [ITU-T G.992.5] or [ITU-T G.993.2]. The ONU automatically creates or |
| 45 | // deletes an instance of this ME upon creation and deletion of a PPTP xDSL UNI part 1 that |
| 46 | // supports these attributes. |
| 47 | // |
| 48 | // Attributes |
| 49 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 50 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 51 | // implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. (R) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 52 | // |
| 53 | // Vdsl2 Transmission System Capability Xtu_R |
| 54 | // VDSL2 transmission system capability xTU-R: This attribute extends the xTU-R transmission system |
| 55 | // capability attribute of the xDSL line inventory and status data part 1 to include xTUR VDSL2 |
| 56 | // capabilities. It is a defined by bits 57..64 of Table 9.7.12-1. (R) (mandatory) (1-byte) |
| 57 | // |
| 58 | // Actsnrmodeus |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 59 | // 1 Virtual noise inactive |
| 60 | // |
| 61 | // 2 Virtual noise active |
| 62 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 63 | // (R) (mandatory) (1-byte) |
| 64 | // |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 65 | // This attribute indicates whether transmitter-referred virtual noise is active on the line in the |
| 66 | // upstream direction. |
| 67 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 68 | // Upbokle |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 69 | // This attribute contains the electrical length estimated by the VTU-O expressed in decibels at |
| 70 | // 1-MHz, kl0 (see O-UPDATE in clause 12.3.3.2.1.2 of [ITUT-G.993.2]). This is the final electrical |
| 71 | // length that would have been sent from the VTU-O to the VTU-R if the electrical length were not |
| 72 | // forced by the OLT. The value lies in the range 0 (0.0-dB) to 1280 (128.0-dB) (R) (mandatory) |
| 73 | // (2-bytes) |
| 74 | // |
| 75 | // The following four attributes have similar definitions. In each case, valid attribute values are |
| 76 | // 1, 2, 4, 8. In ADSL applications, the corresponding value is fixed at 1, and therefore need not |
| 77 | // be specified. For VDSL2, it is equal to the size of the subcarrier group used to compute these |
| 78 | // attributes (see clause 11.4.1 of [ITUT G.993.2]). |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 79 | // |
| 80 | // Hlingus |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 81 | // This attribute is the number of subcarriers per group used to report HLINpsus. (R) (mandatory) |
| 82 | // (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 83 | // |
| 84 | // Hloggus |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 85 | // This attribute is the number of subcarriers per group used to report HLOGpsus. (R) (mandatory) |
| 86 | // (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 87 | // |
| 88 | // Qlngus |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 89 | // This attribute is the number of subcarriers per group used to report QLNpsus. (R) (mandatory) |
| 90 | // (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 91 | // |
| 92 | // Snrgus |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 93 | // This attribute is the number of subcarriers per group used to report SNRpsus. (R) (mandatory) |
| 94 | // (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 95 | // |
| 96 | // Mrefpsdus Table |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 97 | // The upstream medley reference PSD attribute contains the set of breakpoints exchanged in the |
| 98 | // MREFPSDus fields of the R-PRM message of [ITU-T G.993.2]. |
| 99 | // |
| 100 | // The format is similar to that specified for the PSD descriptor in [ITUT-G.993.2]. In [ITU-T |
| 101 | // G.993.2], the first byte gives the size of the table, each entry of which is 3-bytes. In the |
| 102 | // OMCI definition, the first byte is omitted because the size of the table is known from the |
| 103 | // response to the get command. |
| 104 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 105 | // (R) (mandatory) (3 * N bytes, where N is the number of breakpoints) |
| 106 | // |
| 107 | // Trellisus |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 108 | // This attribute reports whether trellis coding is in use in the upstream direction. |
| 109 | // |
| 110 | // 0 Trellis not used |
| 111 | // |
| 112 | // 1 Trellis used |
| 113 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 114 | // (R) (mandatory for ITU-T G.993.2 VDSL2, optional for others) (1-byte) |
| 115 | // |
| 116 | // Actualce |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 117 | // This attribute reports the cyclic extension used on the line. It is coded as an unsigned integer |
| 118 | // from 2 to 16 in units of N/32 samples, where 2N is the IDFT size. (R) (mandatory) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 119 | // |
| 120 | // Upbokle_R |
| 121 | // UPBOKLE-R: This attribute contains the electrical length estimated by the VTU-R expressed in |
| 122 | // decibels at 1-MHz. This is the value contained in the message RMSG1 (see clause 12.3.3.2.2.1of |
| 123 | // [ITUT G.993.2]). Its value lies in the range 0 (0.0-dB) to 1280 (128.0-dB) (R) (optional) |
| 124 | // (2-bytes) |
| 125 | // |
| 126 | // Actual Rate Adaptation Mode Upstream |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 127 | // The ACT-RA-MODEus attribute indicates the actual active RA mode in the upstream direction. |
| 128 | // |
| 129 | // 1 MANUAL |
| 130 | // |
| 131 | // 2 AT_INIT |
| 132 | // |
| 133 | // 3 DYNAMIC |
| 134 | // |
| 135 | // 4 DYNAMIC with SOS ([ITU-T G.993.2] only) |
| 136 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 137 | // (R) (optional) (1-byte) |
| 138 | // |
| 139 | // Actual Impulse Noise Protection Roc Upstream |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 140 | // The ACTINP-ROC-us attribute reports the actual INP of the ROC in the upstream direction |
| 141 | // expressed in multiples of T4k. The INP of this attribute is equal to the integer value |
| 142 | // multiplied by 0.1 symbols. Valid values and usage are given in clause 7.5.1.34.2 of |
| 143 | // [ITUT-G.997.1]. (R) (optional) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 144 | // |
| 145 | // Snr Margin Roc Upstream |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 146 | // The SNRM-ROC-us attribute reports the actual signal-to-noise margin of the ROC in the upstream |
| 147 | // direction. Its value ranges from 0 (-64.0-dB) to 1270 (+63.0-dB). The special value 0xFFFF |
| 148 | // indicates that the attribute is out of range. (R) (optional) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 149 | // |
| 150 | type Vdsl2LineInventoryAndStatusDataPart2 struct { |
| 151 | ManagedEntityDefinition |
| 152 | Attributes AttributeValueMap |
| 153 | } |
| 154 | |
| 155 | func init() { |
| 156 | vdsl2lineinventoryandstatusdatapart2BME = &ManagedEntityDefinition{ |
| 157 | Name: "Vdsl2LineInventoryAndStatusDataPart2", |
| 158 | ClassID: 169, |
| 159 | MessageTypes: mapset.NewSetWith( |
| 160 | Get, |
| 161 | GetNext, |
| 162 | ), |
| 163 | AllowedAttributeMask: 0xfffc, |
| 164 | AttributeDefinitions: AttributeDefinitionMap{ |
| 165 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 166 | 1: ByteField("Vdsl2TransmissionSystemCapabilityXtuR", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 167 | 2: ByteField("Actsnrmodeus", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2), |
| 168 | 3: Uint16Field("Upbokle", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 169 | 4: ByteField("Hlingus", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 170 | 5: ByteField("Hloggus", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 171 | 6: ByteField("Qlngus", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 172 | 7: ByteField("Snrgus", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 173 | 8: TableField("MrefpsdusTable", TableAttributeType, 0x0100, TableInfo{nil, 3}, mapset.NewSetWith(Read), false, false, false, 8), |
| 174 | 9: ByteField("Trellisus", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 175 | 10: ByteField("Actualce", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 176 | 11: Uint16Field("UpbokleR", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11), |
| 177 | 12: ByteField("ActualRateAdaptationModeUpstream", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12), |
| 178 | 13: ByteField("ActualImpulseNoiseProtectionRocUpstream", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13), |
| 179 | 14: Uint16Field("SnrMarginRocUpstream", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14), |
| 180 | }, |
| 181 | Access: CreatedByOnu, |
| 182 | Support: UnknownSupport, |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | // NewVdsl2LineInventoryAndStatusDataPart2 (class ID 169) creates the basic |
| 187 | // Managed Entity definition that is used to validate an ME of this type that |
| 188 | // is received from or transmitted to the OMCC. |
| 189 | func NewVdsl2LineInventoryAndStatusDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 190 | return NewManagedEntity(*vdsl2lineinventoryandstatusdatapart2BME, params...) |
| 191 | } |