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