mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * Copyright 2020-present Open Networking Foundation |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 4 | * |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [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 |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 8 | * |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 10 | * |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [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 | */ |
| 17 | /* |
| 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 | // XdslLineInventoryAndStatusDataPart5ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL line inventory and status data part 5 |
| 30 | const XdslLineInventoryAndStatusDataPart5ClassID = ClassID(325) // 0x0145 |
| 31 | |
| 32 | var xdsllineinventoryandstatusdatapart5BME *ManagedEntityDefinition |
| 33 | |
| 34 | // XdslLineInventoryAndStatusDataPart5 (Class ID: #325 / 0x0145) |
| 35 | // This ME extends the attributes defined in the xDSL line inventory and status data parts 1..4. |
| 36 | // This ME reports FEXT and NEXT attributes, and pertains to Annex C of [ITUT G.992.3] (ADSL2) and |
| 37 | // Annex C of [ITUT G.992.5] (ADSL2plus). |
| 38 | // |
| 39 | // Relationships |
| 40 | // This is one of the status data MEs associated with an xDSL UNI. The ONU automatically creates or |
| 41 | // deletes an instance of this ME upon creation or deletion of a PPTP xDSL UNI part 1 that supports |
| 42 | // these attributes. |
| 43 | // |
| 44 | // Attributes |
| 45 | // Managed Entity Id |
| 46 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 47 | // implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. (R) (mandatory) (2-bytes) |
| 48 | // |
| 49 | // Fext Downstream Snr Margin |
| 50 | // The FEXT SNRMds attribute is the downstream SNR margin measured during FEXTR duration at the |
| 51 | // ATU-R. The attribute value ranges from 0 (-64.0-dB) to 1270 (+63.0-dB). The special value 0xFFFF |
| 52 | // indicates that the attribute is out of range. (R) (mandatory) (2-bytes) |
| 53 | // |
| 54 | // Next Downstream Snr Margin |
| 55 | // The NEXT SNRMds attribute is the downstream SNR margin measured during NEXTR duration at the |
| 56 | // ATU-R. The attribute value ranges from 0 (-64.0-dB) to 1270 (+63.0-dB). The special value 0xFFFF |
| 57 | // indicates that the attribute is out of range. (R) (mandatory) (2-bytes) |
| 58 | // |
| 59 | // Fext Upstream Snr Margin |
| 60 | // The FEXT SNRMus attribute is the upstream SNR margin (see clause 7.5.1.16 of [ITUT G.997.1]) |
| 61 | // measured during FEXTC duration at the ATU-C. The attribute value ranges from 0 (-64.0-dB) to |
| 62 | // 1270 (+63.0-dB). The special value 0xFFFF indicates that the attribute is out of range. (R) |
| 63 | // (mandatory) (2-bytes) |
| 64 | // |
| 65 | // Next Upstream Snr Margin |
| 66 | // The NEXT SNRMus attribute is the upstream SNR margin (see clause 7.5.1.16 of [ITUT-G.997.1]) |
| 67 | // measured during NEXTC duration at the ATU-C. The attribute value ranges from 0 (-64.0-dB) to |
| 68 | // 1270 (+63.0-dB). The special value 0xFFFF indicates that the attribute is out of range. (R) |
| 69 | // (mandatory) (2-bytes) |
| 70 | // |
| 71 | // Fext Downstream Maximum Attainable Data Rate |
| 72 | // The FEXT ATTNDRds attribute is the maximum downstream net data rate calculated from FEXT |
| 73 | // downstream SNR(f) (see clause 7.5.1.28.3.1 of [ITUT G.997.1]). The rate is coded in bits per |
| 74 | // second. (R) (mandatory) (4-bytes) |
| 75 | // |
| 76 | // Next Downstream Maximum Attainable Data Rate |
| 77 | // The NEXT ATTNDRds attribute is the maximum downstream net data rate calculated from NEXT |
| 78 | // downstream SNR(f) (see clause 7.5.1.28.3.2 of [ITUT G.997.1]). The rate is coded in bits per |
| 79 | // second. (R) (mandatory) (4-bytes) |
| 80 | // |
| 81 | // Fext Upstream Maximum Attainable Data Rate |
| 82 | // The FEXT ATTNDRus attribute is the maximum upstream net data rate calculated from FEXT upstream |
| 83 | // SNR(f) (see clause 7.5.1.28.6.1 of [ITUT G.997.1]). The rate is coded in bits per second. (R) |
| 84 | // (mandatory) (4-bytes) |
| 85 | // |
| 86 | // Next Upstream Maximum Attainable Data Rate |
| 87 | // The NEXT ATTNDRus attribute is the maximum upstream net data rate calculated from NEXT upstream |
| 88 | // SNR(f) (see clause 7.5.1.28.6.2 of [ITUT G.997.1]). The rate is coded in bits per second. (R) |
| 89 | // (mandatory) (4-bytes) |
| 90 | // |
| 91 | // Fext Downstream Actual Power Spectral Density |
| 92 | // The FEXT ACTPSDds attribute is the average downstream transmit PSD over the used subcarriers |
| 93 | // (see clause-7.5.1.21.1 of [ITUT G.997.1]) calculated from the REFPSDds and RMSGIds for FEXTR |
| 94 | // duration. The attribute value ranges from 0 (-90.0-dBm/Hz) to 900 (0.0-dBm/Hz). The special |
| 95 | // value 0xFFFF indicates that the parameter is out of range. (R) (mandatory) (2-bytes) |
| 96 | // |
| 97 | // Next Downstream Actual Power Spectral Density |
| 98 | // The NEXT ACTPSDds attribute is the average downstream transmit PSD over the used subcarriers |
| 99 | // (see clause-7.5.1.21.2 of [ITUT G.997.1]) calculated from the REFPSDds and RMSGIds for NEXTR |
| 100 | // duration. The attribute value ranges from 0 (-90.0-dBm/Hz) to 900 (0.0-dBm/Hz). The special |
| 101 | // value 0xFFFF indicates that the parameter is out of range. (R) (mandatory) (2-bytes) |
| 102 | // |
| 103 | // Fext Upstream Actual Power Spectral Density |
| 104 | // The FEXT ACTPSDus attribute is the average upstream transmit PSD over the used subcarriers (see |
| 105 | // clause-7.5.1.22.1 of [ITUT G.997.1]) calculated from the REFPSDus and RMSGIus for FEXTC |
| 106 | // duration. The attribute value ranges from 0 (-90.0-dBm/Hz) to 900 (0.0-dBm/Hz). The special |
| 107 | // value 0xFFFF indicates that the parameter is out of range. (R) (mandatory) (2-bytes) |
| 108 | // |
| 109 | // Next Upstream Actual Power Spectral Density |
| 110 | // The NEXT ACTPSDus attribute is the average upstream transmit PSD over the used subcarriers (see |
| 111 | // clause-7.5.1.22.2 of [ITUT G.997.1]) calculated from the REFPSDus and RMSGIus for NEXTC |
| 112 | // duration. The attribute value ranges from 0 (-90.0-dBm/Hz) to 900 (0.0-dBm/Hz). The special |
| 113 | // value 0xFFFF indicates that the parameter is out of range. (R) (mandatory) (2-bytes) |
| 114 | // |
| 115 | // Fext Downstream Actual Aggregate Transmit Power |
| 116 | // The FEXT ACTATPds attribute is the total amount of transmit power (see clause 7.5.1.24.1 of |
| 117 | // [ITUT G.997.1]) calculated from PSDds measured during FEXTR duration at the ATU-R. The attribute |
| 118 | // value ranges from 0 (-31.0-dBm) to 620 (+31.0-dBm). The special value 0xFFFF indicates that the |
| 119 | // parameter is out of range. (R) (mandatory) (2-bytes) |
| 120 | // |
| 121 | // Next Downstream Actual Aggregate Transmit Power |
| 122 | // The NEXT ACTATPds attribute is the total amount of transmit power (see clause 7.5.1.24.2 of |
| 123 | // [ITUT G.997.1]) calculated from PSDds measured during NEXTR duration at the ATU-R. The attribute |
| 124 | // value ranges from 0 (-31.0-dBm) to 620 (+31.0-dBm). The special value 0xFFFF indicates that the |
| 125 | // parameter is out of range. (R) (mandatory) (2-bytes) |
| 126 | // |
| 127 | // Fext Upstream Actual Aggregate Transmit Power |
| 128 | // The FEXT ACTATPus attribute is the total transmit power (see clause 7.5.1.25.1 of [ITUT |
| 129 | // G.997.1]) calculated from PSDus measured during FEXTC duration at the ATU-C. The attribute value |
| 130 | // ranges from 0 (-31.0-dBm) to 620 (+31.0-dBm). The special value 0xFFFF indicates that the |
| 131 | // parameter is out of range. (R) (mandatory) (2-bytes) |
| 132 | // |
| 133 | // Next Upstream Actual Aggregate Transmit Power |
| 134 | // The NEXT ACTATPus attribute is the total transmit power (see clause 7.5.1.25.2 of [ITUT |
| 135 | // G.997.1]) calculated from PSDus measured during NEXTC duration at the ATU-C. The attribute value |
| 136 | // ranges from 0 (-31.0-dBm) to 620 (+31.0-dBm). The special value 0xFFFF indicates that the |
| 137 | // parameter is out of range. (R) (mandatory) (2-bytes) |
| 138 | // |
| 139 | type XdslLineInventoryAndStatusDataPart5 struct { |
| 140 | ManagedEntityDefinition |
| 141 | Attributes AttributeValueMap |
| 142 | } |
| 143 | |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 144 | // Attribute name constants |
| 145 | |
| 146 | const XdslLineInventoryAndStatusDataPart5_FextDownstreamSnrMargin = "FextDownstreamSnrMargin" |
| 147 | const XdslLineInventoryAndStatusDataPart5_NextDownstreamSnrMargin = "NextDownstreamSnrMargin" |
| 148 | const XdslLineInventoryAndStatusDataPart5_FextUpstreamSnrMargin = "FextUpstreamSnrMargin" |
| 149 | const XdslLineInventoryAndStatusDataPart5_NextUpstreamSnrMargin = "NextUpstreamSnrMargin" |
| 150 | const XdslLineInventoryAndStatusDataPart5_FextDownstreamMaximumAttainableDataRate = "FextDownstreamMaximumAttainableDataRate" |
| 151 | const XdslLineInventoryAndStatusDataPart5_NextDownstreamMaximumAttainableDataRate = "NextDownstreamMaximumAttainableDataRate" |
| 152 | const XdslLineInventoryAndStatusDataPart5_FextUpstreamMaximumAttainableDataRate = "FextUpstreamMaximumAttainableDataRate" |
| 153 | const XdslLineInventoryAndStatusDataPart5_NextUpstreamMaximumAttainableDataRate = "NextUpstreamMaximumAttainableDataRate" |
| 154 | const XdslLineInventoryAndStatusDataPart5_FextDownstreamActualPowerSpectralDensity = "FextDownstreamActualPowerSpectralDensity" |
| 155 | const XdslLineInventoryAndStatusDataPart5_NextDownstreamActualPowerSpectralDensity = "NextDownstreamActualPowerSpectralDensity" |
| 156 | const XdslLineInventoryAndStatusDataPart5_FextUpstreamActualPowerSpectralDensity = "FextUpstreamActualPowerSpectralDensity" |
| 157 | const XdslLineInventoryAndStatusDataPart5_NextUpstreamActualPowerSpectralDensity = "NextUpstreamActualPowerSpectralDensity" |
| 158 | const XdslLineInventoryAndStatusDataPart5_FextDownstreamActualAggregateTransmitPower = "FextDownstreamActualAggregateTransmitPower" |
| 159 | const XdslLineInventoryAndStatusDataPart5_NextDownstreamActualAggregateTransmitPower = "NextDownstreamActualAggregateTransmitPower" |
| 160 | const XdslLineInventoryAndStatusDataPart5_FextUpstreamActualAggregateTransmitPower = "FextUpstreamActualAggregateTransmitPower" |
| 161 | const XdslLineInventoryAndStatusDataPart5_NextUpstreamActualAggregateTransmitPower = "NextUpstreamActualAggregateTransmitPower" |
| 162 | |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 163 | func init() { |
| 164 | xdsllineinventoryandstatusdatapart5BME = &ManagedEntityDefinition{ |
| 165 | Name: "XdslLineInventoryAndStatusDataPart5", |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 166 | ClassID: XdslLineInventoryAndStatusDataPart5ClassID, |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 167 | MessageTypes: mapset.NewSetWith( |
| 168 | Get, |
| 169 | ), |
| 170 | AllowedAttributeMask: 0xffff, |
| 171 | AttributeDefinitions: AttributeDefinitionMap{ |
Holger Hildebrandt | 3ac49bd | 2022-02-07 17:46:43 +0000 | [diff] [blame] | 172 | 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0), |
| 173 | 1: Uint16Field(XdslLineInventoryAndStatusDataPart5_FextDownstreamSnrMargin, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 174 | 2: Uint16Field(XdslLineInventoryAndStatusDataPart5_NextDownstreamSnrMargin, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), false, false, false, 2), |
| 175 | 3: Uint16Field(XdslLineInventoryAndStatusDataPart5_FextUpstreamSnrMargin, UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 176 | 4: Uint16Field(XdslLineInventoryAndStatusDataPart5_NextUpstreamSnrMargin, UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 177 | 5: Uint32Field(XdslLineInventoryAndStatusDataPart5_FextDownstreamMaximumAttainableDataRate, UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 178 | 6: Uint32Field(XdslLineInventoryAndStatusDataPart5_NextDownstreamMaximumAttainableDataRate, UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 179 | 7: Uint32Field(XdslLineInventoryAndStatusDataPart5_FextUpstreamMaximumAttainableDataRate, UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 180 | 8: Uint32Field(XdslLineInventoryAndStatusDataPart5_NextUpstreamMaximumAttainableDataRate, UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 181 | 9: Uint16Field(XdslLineInventoryAndStatusDataPart5_FextDownstreamActualPowerSpectralDensity, UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 182 | 10: Uint16Field(XdslLineInventoryAndStatusDataPart5_NextDownstreamActualPowerSpectralDensity, UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 183 | 11: Uint16Field(XdslLineInventoryAndStatusDataPart5_FextUpstreamActualPowerSpectralDensity, UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11), |
| 184 | 12: Uint16Field(XdslLineInventoryAndStatusDataPart5_NextUpstreamActualPowerSpectralDensity, UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12), |
| 185 | 13: Uint16Field(XdslLineInventoryAndStatusDataPart5_FextDownstreamActualAggregateTransmitPower, UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13), |
| 186 | 14: Uint16Field(XdslLineInventoryAndStatusDataPart5_NextDownstreamActualAggregateTransmitPower, UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14), |
| 187 | 15: Uint16Field(XdslLineInventoryAndStatusDataPart5_FextUpstreamActualAggregateTransmitPower, UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15), |
| 188 | 16: Uint16Field(XdslLineInventoryAndStatusDataPart5_NextUpstreamActualAggregateTransmitPower, UnsignedIntegerAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, false, false, 16), |
mpagenko | 836a1fd | 2021-11-01 16:12:42 +0000 | [diff] [blame] | 189 | }, |
| 190 | Access: CreatedByOnu, |
| 191 | Support: UnknownSupport, |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | // NewXdslLineInventoryAndStatusDataPart5 (class ID 325) creates the basic |
| 196 | // Managed Entity definition that is used to validate an ME of this type that |
| 197 | // is received from or transmitted to the OMCC. |
| 198 | func NewXdslLineInventoryAndStatusDataPart5(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 199 | return NewManagedEntity(*xdsllineinventoryandstatusdatapart5BME, params...) |
| 200 | } |