Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [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 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [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 | */ |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 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 | // XdslSubcarrierMaskingDownstreamProfileClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL subcarrier masking downstream profile |
| 30 | const XdslSubcarrierMaskingDownstreamProfileClassID ClassID = ClassID(108) |
| 31 | |
| 32 | var xdslsubcarriermaskingdownstreamprofileBME *ManagedEntityDefinition |
| 33 | |
| 34 | // XdslSubcarrierMaskingDownstreamProfile (class ID #108) |
| 35 | // This ME contains the subcarrier masking downstream profile for an xDSL UNI. Instances of this ME |
| 36 | // are 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 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0 is |
| 45 | // reserved. (R, set-by-create) (mandatory) (2-bytes) |
| 46 | // |
| 47 | // Downstream Subcarrier Mask 1 |
| 48 | // Downstream subcarrier mask 1: Subcarriers 1 to 128. (R,-W, set-by-create) (mandatory) (16-bytes) |
| 49 | // |
| 50 | // Downstream Subcarrier Mask 2 |
| 51 | // Downstream subcarrier mask 2: Subcarriers 129 to 256. (R,-W) (mandatory for modems that support |
| 52 | // NSCds-> 128) (16-bytes) |
| 53 | // |
| 54 | // Downstream Subcarrier Mask 3 |
| 55 | // Downstream subcarrier mask 3: Subcarriers 257 to 384. (R,-W) (mandatory for modems that support |
| 56 | // NSCds-> 256) (16-bytes) |
| 57 | // |
| 58 | // Downstream Subcarrier Mask 4 |
| 59 | // Downstream subcarrier mask 4: Subcarriers 385 to 512. (R,-W) (mandatory for modems that support |
| 60 | // NSCds-> 384) (16-bytes) |
| 61 | // |
| 62 | // Mask Valid |
| 63 | // (R,-W) (mandatory) (1-byte) |
| 64 | // |
| 65 | type XdslSubcarrierMaskingDownstreamProfile struct { |
| 66 | ManagedEntityDefinition |
| 67 | Attributes AttributeValueMap |
| 68 | } |
| 69 | |
| 70 | func init() { |
| 71 | xdslsubcarriermaskingdownstreamprofileBME = &ManagedEntityDefinition{ |
| 72 | Name: "XdslSubcarrierMaskingDownstreamProfile", |
| 73 | ClassID: 108, |
| 74 | MessageTypes: mapset.NewSetWith( |
| 75 | Create, |
| 76 | Delete, |
| 77 | Get, |
| 78 | Set, |
| 79 | ), |
| 80 | AllowedAttributeMask: 0xf800, |
| 81 | AttributeDefinitions: AttributeDefinitionMap{ |
| 82 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 83 | 1: MultiByteField("DownstreamSubcarrierMask1", OctetsAttributeType, 0x8000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1), |
| 84 | 2: MultiByteField("DownstreamSubcarrierMask2", OctetsAttributeType, 0x4000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 2), |
| 85 | 3: MultiByteField("DownstreamSubcarrierMask3", OctetsAttributeType, 0x2000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 3), |
| 86 | 4: MultiByteField("DownstreamSubcarrierMask4", OctetsAttributeType, 0x1000, 16, toOctets("AAAAAAAAAAAAAAAAAAAAAA=="), mapset.NewSetWith(Read, Write), false, false, false, 4), |
| 87 | 5: ByteField("MaskValid", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, false, false, 5), |
| 88 | }, |
| 89 | Access: CreatedByOlt, |
| 90 | Support: UnknownSupport, |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // NewXdslSubcarrierMaskingDownstreamProfile (class ID 108) creates the basic |
| 95 | // Managed Entity definition that is used to validate an ME of this type that |
| 96 | // is received from or transmitted to the OMCC. |
| 97 | func NewXdslSubcarrierMaskingDownstreamProfile(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 98 | return NewManagedEntity(*xdslsubcarriermaskingdownstreamprofileBME, params...) |
| 99 | } |