blob: bd31bb02914507fb5be4012605583fa29838d9c0 [file] [log] [blame]
Andrea Campanella10426e22021-10-15 17:58:04 +02001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
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
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
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
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// XdslDownstreamRfiBandsProfileClassID is the 16-bit ID for the OMCI
29// Managed entity xDSL downstream RFI bands profile
30const XdslDownstreamRfiBandsProfileClassID = ClassID(111) // 0x006f
31
32var xdsldownstreamrfibandsprofileBME *ManagedEntityDefinition
33
34// XdslDownstreamRfiBandsProfile (Class ID: #111 / 0x006f)
35// This ME contains the downstream RFI bands profile for an xDSL UNI. Instances of this ME are
36// created and deleted by the OLT.
37//
38// Relationships
39// An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part
40// 1.
41//
42// Attributes
43// Managed Entity Id
44// This attribute uniquely identifies each instance of this ME. The value 0 is reserved. (R,
45// setbycreate) (mandatory) (2-bytes)
46//
47// Downstream Rfi Bands Table
48// The RFIBANDS attribute is a table where each entry comprises:
49//
50// o an entry number field (1-byte, first entry numbered 1);
51//
52// o subcarrier index 1 field (2-bytes);
53//
54// o subcarrier index 2 field (2-bytes).
55//
56// For [ITU-T G.992.5], this configuration attribute defines the subset of downstream PSD mask
57// breakpoints, as specified in the downstream PSD mask, to be used to notch an RFI band. This
58// subset consists of couples of consecutive subcarrier indices belonging to breakpoints: [ti; ti-+
59// 1], corresponding to the low level of the notch. Interpolation around these points is defined in
60// [ITUT G.992.5].
61//
62// For [ITU-T G.993.2], this attribute defines the bands where the PSD is to be reduced as
63// specified in clause 7.2.1.2 of [ITUT G.993.2]. Each band is represented by start and stop
64// subcarrier indices with a subcarrier spacing of 4.3125-kHz. Up to 16 bands may be specified.
65// This attribute defines the RFI bands for both upstream and downstream directions.
66//
67// Entries have the default value 0 for both subcarrier index 1 and subcarrier index-2. Setting an
68// entry with a non-zero subcarrier index 1 and subcarrier index-2 implies insertion into the table
69// or replacement of an existing entry. Setting an entry's subcarrier index 1 and subcarrier index
70// 2 to 0 implies deletion from the table, if present.
71//
72// (R,-W) (mandatory for [ITU-T G.992.5], [ITU-T G.993.2]) (5 * N bytes where N is the number of
73// RFI bands)
74//
75// Bands Valid
76// This Boolean attribute controls and reports the operational status of the downstream RFI bands
77// table.
78//
79// If this attribute is true, the downstream RFI bands table has been impressed on the DSL
80// equipment.
81//
82// If this attribute is false, the downstream RFI bands table has not been impressed on the DSL
83// equipment. The default value is false.
84//
85// This attribute can be modified by the ONU and OLT, as follows.
86//
87// o If the OLT changes any of the RFI bands table entries or sets bands valid false, then bands
88// valid is false.
89//
90// o If bands valid is false and OLT sets bands valid true, the ONU impresses the downstream RFI
91// bands data on to the DSL equipment.
92//
93// (R,-W) (mandatory) (1-byte)
94//
95type XdslDownstreamRfiBandsProfile struct {
96 ManagedEntityDefinition
97 Attributes AttributeValueMap
98}
99
100func init() {
101 xdsldownstreamrfibandsprofileBME = &ManagedEntityDefinition{
102 Name: "XdslDownstreamRfiBandsProfile",
103 ClassID: 111,
104 MessageTypes: mapset.NewSetWith(
105 Create,
106 Delete,
107 Get,
108 GetNext,
109 Set,
110 SetTable,
111 ),
112 AllowedAttributeMask: 0xc000,
113 AttributeDefinitions: AttributeDefinitionMap{
114 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
115 1: TableField("DownstreamRfiBandsTable", TableAttributeType, 0x8000, TableInfo{nil, 5}, mapset.NewSetWith(Read, Write), false, false, false, 1),
116 2: ByteField("BandsValid", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
117 },
118 Access: CreatedByOlt,
119 Support: UnknownSupport,
120 }
121}
122
123// NewXdslDownstreamRfiBandsProfile (class ID 111) creates the basic
124// Managed Entity definition that is used to validate an ME of this type that
125// is received from or transmitted to the OMCC.
126func NewXdslDownstreamRfiBandsProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
127 return NewManagedEntity(*xdsldownstreamrfibandsprofileBME, params...)
128}