blob: 76d3dd0ca53dbeacb02c9d015fcc926030a5b447 [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 XdslSubcarrierMaskingUpstreamProfileClassId ClassID = ClassID(109)
25
26var xdslsubcarriermaskingupstreamprofileBME *ManagedEntityDefinition
27
28// XdslSubcarrierMaskingUpstreamProfile (class ID #109)
29// This ME contains the subcarrier masking upstream profile for an xDSL UNI. An instance of this ME
30// is 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, setbycreate) (mandatory) (2 bytes)
40//
41// Upstream Subcarrier Mask
42// Subcarrier number 1 is the lowest, and the number of xDSL subcarriers, upstream (NSCus) is the
43// highest subcarrier that can be transmitted in the upstream direction. For [ITUT G.992.3],
44// [ITUT G.992.4] and [ITUT G.992.5], it is defined in the corresponding Recommendation. For Annex
45// A of [ITUT G.992.1] and [ITUT G.992.2], NSCus = 32 and for Annex B of [ITUT G.992.1], NSCus =
46// 64. (R, W, setbycreate) (mandatory) (8 bytes)
47//
48type XdslSubcarrierMaskingUpstreamProfile struct {
49 ManagedEntityDefinition
50 Attributes AttributeValueMap
51}
52
53func init() {
54 xdslsubcarriermaskingupstreamprofileBME = &ManagedEntityDefinition{
55 Name: "XdslSubcarrierMaskingUpstreamProfile",
56 ClassID: 109,
57 MessageTypes: mapset.NewSetWith(
58 Create,
59 Delete,
60 Get,
61 Set,
62 ),
63 AllowedAttributeMask: 0X8000,
64 AttributeDefinitions: AttributeDefinitionMap{
65 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
66 1: Uint64Field("UpstreamSubcarrierMask", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 1),
67 },
68 }
69}
70
71// NewXdslSubcarrierMaskingUpstreamProfile (class ID 109 creates the basic
72// Managed Entity definition that is used to validate an ME of this type that
73// is received from the wire, about to be sent on the wire.
74func NewXdslSubcarrierMaskingUpstreamProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
75 return NewManagedEntity(xdslsubcarriermaskingupstreamprofileBME, params...)
76}