blob: c35f237bc92a698a2ee1881b0d7bed6034ae1e36 [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// PhysicalPathTerminationPointVideoAniClassID is the 16-bit ID for the OMCI
26// Managed entity Physical path termination point video ANI
27const PhysicalPathTerminationPointVideoAniClassID ClassID = ClassID(90)
28
29var physicalpathterminationpointvideoaniBME *ManagedEntityDefinition
30
31// PhysicalPathTerminationPointVideoAni (class ID #90)
32// This ME represents an RF video ANI in the ONU, where physical paths terminate and physical path
33// level functions are performed.
34//
35// The ONU automatically creates an instance of this ME per port as follows.
36//
37// o When the ONU has video ANI ports built into its factory configuration.
38//
39// o When a cardholder is provisioned to expect a circuit pack of the video ANI type.
40//
41// o When a cardholder provisioned for plug-and-play is equipped with a circuit pack of the video
42// ANI type. Note that the installation of a plug-and-play card may indicate the presence of video
43// ANI ports via equipment ID as well as its type, and indeed may cause the ONU to instantiate a
44// port-mapping package that specifies video ANI ports.
45//
46// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
47// expect a video ANI circuit pack, nor is it equipped with a video ANI circuit pack.
48//
49// Relationships
50// An instance of this ME is associated with each instance of a real or pre-provisioned video ANI
51// port.
52//
53// Attributes
54// Managed Entity Id
55// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2-byte
56// number indicates the physical position of the ANI. The first byte is the slot ID (defined in
57// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2-bytes)
58//
59// Administrative State
60// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
61// ME. Administrative state is further described in clause-A.1.6. (R,-W) (mandatory) (1-byte)
62//
63// Operational State
64// Operational state: This attribute indicates whether the ME is capable of performing its
65// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
66//
67// Arc
68// ARC: See clause A.1.4.3. (R,-W) (optional) (1-byte)
69//
70// Arc Interval
71// ARC interval: See clause A.1.4.3. (R,-W) (optional) (1-byte)
72//
73// Frequency Range Low
74// (R) (mandatory) (1-byte)
75//
76// Frequency Range High
77// (R) (mandatory) (1-byte)
78//
79// Signal Capability
80// (R) (mandatory) (1-byte)
81//
82// Optical Signal Level
83// (R) (optional) (1-byte)
84//
85// Pilot Signal Level
86// (R) (optional) (1-byte)
87//
88// Signal Level Min
89// Signal level min: This attribute indicates the minimum optical RF power per channel that results
90// in a CNR of 47-dBc for a channel of 4.5 MHz bandwidth at a receive optical power of -5-dBm. The
91// unit of this attribute is decibel-microwatt optical. (R) (mandatory) (1-byte)
92//
93// Signal Level Max
94// Signal level max: This attribute indicates the maximum optical RF power per channel that results
95// in a CTB of -57-dBc for an 80-channel ensemble of carriers at a perchannel optical modulation
96// index (OMI) of 3.5%. The unit of this attribute is decibel-microwatt optical. (R) (mandatory)
97// (1-byte)
98//
99// Pilot Frequency
100// (R,-W) (optional) (4-bytes)
101//
102// Agc Mode
103// (R,-W) (optional) (1-byte)
104//
105// Agc Setting
106// (R,-W) (optional) (1-byte)
107//
108// Video Lower Optical Threshold
109// NOTE - Because the power measurement returned in the optical signal level attribute has a
110// resolution of 1-dB, it is possible that the measured value could appear to be in-range, even
111// though an out-of-range alarm has been declared against a threshold with 0.1-dB resolution.
112//
113// Video Upper Optical Threshold
114// Video upper optical threshold: This attribute specifies the optical level used to declare the
115// video OOR high alarm. Valid values are -12 to +6-dBm in 0.1-dB increments, represented as a 2s
116// complement integer. (Coding -120 to +60, 0x00-= 0-dBm, 0x88-= -12.0-dBm, etc.) Upon ME
117// instantiation, the ONU sets this attribute to 0x19 (+2.5-dBm). (R,-W) (optional) (1-byte)
118//
119type PhysicalPathTerminationPointVideoAni struct {
120 ManagedEntityDefinition
121 Attributes AttributeValueMap
122}
123
124func init() {
125 physicalpathterminationpointvideoaniBME = &ManagedEntityDefinition{
126 Name: "PhysicalPathTerminationPointVideoAni",
127 ClassID: 90,
128 MessageTypes: mapset.NewSetWith(
129 Get,
130 Set,
131 ),
132 AllowedAttributeMask: 0xffff,
133 AttributeDefinitions: AttributeDefinitionMap{
134 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
135 1: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
136 2: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), true, true, false, 2),
137 3: ByteField("Arc", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), true, true, false, 3),
138 4: ByteField("ArcInterval", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
139 5: ByteField("FrequencyRangeLow", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
140 6: ByteField("FrequencyRangeHigh", UnsignedIntegerAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
141 7: ByteField("SignalCapability", UnsignedIntegerAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
142 8: ByteField("OpticalSignalLevel", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
143 9: ByteField("PilotSignalLevel", UnsignedIntegerAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9),
144 10: ByteField("SignalLevelMin", UnsignedIntegerAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
145 11: ByteField("SignalLevelMax", UnsignedIntegerAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
146 12: Uint32Field("PilotFrequency", UnsignedIntegerAttributeType, 0x0010, 0, mapset.NewSetWith(Read, Write), false, true, false, 12),
147 13: ByteField("AgcMode", UnsignedIntegerAttributeType, 0x0008, 0, mapset.NewSetWith(Read, Write), false, true, false, 13),
148 14: ByteField("AgcSetting", UnsignedIntegerAttributeType, 0x0004, 0, mapset.NewSetWith(Read, Write), false, true, false, 14),
149 15: ByteField("VideoLowerOpticalThreshold", UnsignedIntegerAttributeType, 0x0002, 0, mapset.NewSetWith(Read, Write), false, true, false, 15),
150 16: ByteField("VideoUpperOpticalThreshold", UnsignedIntegerAttributeType, 0x0001, 0, mapset.NewSetWith(Read, Write), false, true, false, 16),
151 },
152 Access: CreatedByOnu,
153 Support: UnknownSupport,
154 }
155}
156
157// NewPhysicalPathTerminationPointVideoAni (class ID 90) creates the basic
158// Managed Entity definition that is used to validate an ME of this type that
159// is received from or transmitted to the OMCC.
160func NewPhysicalPathTerminationPointVideoAni(params ...ParamData) (*ManagedEntity, OmciErrors) {
161 return NewManagedEntity(*physicalpathterminationpointvideoaniBME, params...)
162}