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