blob: 46c5041b8a6cf4fb7ce1625771a95f77282ac11a [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// XdslSubcarrierMaskingDownstreamProfileClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL subcarrier masking downstream profile
27const XdslSubcarrierMaskingDownstreamProfileClassID ClassID = ClassID(108)
28
29var xdslsubcarriermaskingdownstreamprofileBME *ManagedEntityDefinition
30
31// XdslSubcarrierMaskingDownstreamProfile (class ID #108)
32// This ME contains the subcarrier masking downstream profile for an xDSL UNI. Instances of this ME
33// are 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// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0 is
42// reserved. (R, set-by-create) (mandatory) (2-bytes)
43//
44// Downstream Subcarrier Mask 1
45// Downstream subcarrier mask 1: Subcarriers 1 to 128. (R,-W, set-by-create) (mandatory) (16-bytes)
46//
47// Downstream Subcarrier Mask 2
48// Downstream subcarrier mask 2: Subcarriers 129 to 256. (R,-W) (mandatory for modems that support
49// NSCds-> 128) (16-bytes)
50//
51// Downstream Subcarrier Mask 3
52// Downstream subcarrier mask 3: Subcarriers 257 to 384. (R,-W) (mandatory for modems that support
53// NSCds-> 256) (16-bytes)
54//
55// Downstream Subcarrier Mask 4
56// Downstream subcarrier mask 4: Subcarriers 385 to 512. (R,-W) (mandatory for modems that support
57// NSCds-> 384) (16-bytes)
58//
59// Mask Valid
60// (R,-W) (mandatory) (1-byte)
61//
62type XdslSubcarrierMaskingDownstreamProfile struct {
63 ManagedEntityDefinition
64 Attributes AttributeValueMap
65}
66
67func init() {
68 xdslsubcarriermaskingdownstreamprofileBME = &ManagedEntityDefinition{
69 Name: "XdslSubcarrierMaskingDownstreamProfile",
70 ClassID: 108,
71 MessageTypes: mapset.NewSetWith(
72 Create,
73 Delete,
74 Get,
75 Set,
76 ),
77 AllowedAttributeMask: 0xf800,
78 AttributeDefinitions: AttributeDefinitionMap{
79 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
80 1: MultiByteField("DownstreamSubcarrierMask1", OctetsAttributeType, 0x8000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
81 2: MultiByteField("DownstreamSubcarrierMask2", OctetsAttributeType, 0x4000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 2),
82 3: MultiByteField("DownstreamSubcarrierMask3", OctetsAttributeType, 0x2000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 3),
83 4: MultiByteField("DownstreamSubcarrierMask4", OctetsAttributeType, 0x1000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 4),
84 5: ByteField("MaskValid", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5),
85 },
86 Access: CreatedByOlt,
87 Support: UnknownSupport,
88 }
89}
90
91// NewXdslSubcarrierMaskingDownstreamProfile (class ID 108) creates the basic
92// Managed Entity definition that is used to validate an ME of this type that
93// is received from or transmitted to the OMCC.
94func NewXdslSubcarrierMaskingDownstreamProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
95 return NewManagedEntity(*xdslsubcarriermaskingdownstreamprofileBME, params...)
96}