blob: 8264200cc02421ed0b2d8b95730a9589d6322e3e [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 PhysicalPathTerminationPointPotsUniClassId ClassID = ClassID(53)
25
26var physicalpathterminationpointpotsuniBME *ManagedEntityDefinition
27
28// PhysicalPathTerminationPointPotsUni (class ID #53)
29// This ME represents a POTS UNI in the ONU, where a physical path terminates and physical path
30// level functions (analogue telephony) are performed.
31//
32// The ONU automatically creates an instance of this ME per port as follows.
33//
34// • When the ONU has POTS ports built into its factory configuration.
35//
36// • When a cardholder is provisioned to expect a circuit pack of the POTS type.
37//
38// • When a cardholder provisioned for plug-and-play is equipped with a circuit pack of the POTS
39// type. Note that the installation of a plug-and-play card may indicate the presence of POTS ports
40// via equipment ID as well as type, and indeed may cause the ONU to instantiate a port-mapping
41// package that specifies POTS ports.
42//
43// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
44// expect a POTS circuit pack, nor is it equipped with a POTS circuit pack.
45//
46// Relationships
47// An instance of this ME is associated with each real or pre-provisioned POTS port. Either a SIP
48// or a VoIP voice CTP links to the POTS UNI. Status is available from a VoIP line status ME, and
49// RTP and call control PM may be collected on this point.
50//
51// Attributes
52// Managed Entity Id
53// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2 byte
54// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
55// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2 bytes)
56//
57// Administrative State
58// When the administrative state is set to lock, all user functions of this UNI are blocked, and
59// alarms, TCAs and AVCs for this ME and all dependent MEs are no longer generated. Selection of a
60// default value for this attribute is outside the scope of this Recommendation. (R, W) (mandatory)
61// (1 byte)
62//
63// Deprecated
64// Deprecated: This attribute is not used and should not be supported. (R, W) (optional) (2 bytes)
65//
66// Arc
67// ARC: See clause A.1.4.3. (R, W) (optional) (1 byte)
68//
69// Arc Interval
70// ARC interval: See clause A.1.4.3. (R, W) (optional) (1 byte)
71//
72// Impedance
73// where C1, R1, and R2 are related as shown in Figure 9.9.1-1. Upon ME instantiation, the ONU sets
74// this attribute to 0. (R, W) (optional) (1 byte)
75//
76// Transmission Path
77// Transmission path: This attribute allows setting the POTS UNI either to full-time on-hook
78// transmission (0) or part-time on-hook transmission (1). Upon ME instantiation, the ONU sets this
79// attribute to 0. (R, W) (optional) (1 byte)
80//
81// Rx Gain
82// Rx gain: This attribute specifies a gain value for the received signal in the form of a 2s
83// complement number. Valid values are –120 (12.0 dB) to 60 (+6.0 dB). The direction of the
84// affected signal is in the D to A direction, towards the telephone set. Upon ME instantiation,
85// the ONU sets this attribute to 0. (R, W) (optional) (1 byte)
86//
87// Tx Gain
88// Tx gain: This attribute specifies a gain value for the transmit signal in the form of a 2s
89// complement number. Valid values are –120 (12.0 dB) to 60 (+6.0 dB). The direction of the
90// affected signal is in the A to D direction, away from the telephone set. Upon ME instantiation,
91// the ONU sets this attribute to 0. (R, W) (optional) (1 byte)
92//
93// Operational State
94// Operational state: This attribute indicates whether the ME is capable of performing its
95// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1 byte)
96//
97// Hook State
98// Hook state: This attribute indicates the current state of the subscriber line: 0 = on hook, 1 =
99// off hook (R) (optional) (1 byte)
100//
101// Pots Holdover Time
102// POTS holdover time: This attribute determines the time during which the POTS loop voltage is
103// held up when a LOS or softswitch connectivity is detected (please refer to the following table
104// for description of behaviours).. After the specified time elapses, the ONU drops the loop
105// voltage, and may thereby cause premises intrusion alarm or fire panel circuits to go active.
106// When the ONU ranges successfully on the PON or softswitch connectivity is restored, it restores
107// the POTS loop voltage immediately and resets the timer to zero. The attribute is expressed in
108// seconds. The default value 0 selects the vendor's factory policy. (R, W) (optional) (2 bytes)
109//
110// Nominal Feed Voltage
111// Nominal feed voltage: This attribute indicates the designed nominal feed voltage of the POTS
112// loop. It is an absolute value with resolution 1 V. This attribute does not represent the actual
113// voltage measured on the loop, which is available through the test command. (R, W) (optional)
114// (1 byte)
115//
116// Loss Of Softswitch
117// Loss of softswitch: This Boolean attribute controls whether the T/R holdover initiation
118// criteria. False disables loss of softswitch connectivity detection as criteria for initiating
119// the POTS holdover timer. True enables loss of softswitch connectivity detection as criteria for
120// initiating the POTS holdover timer. This attribute is optional (if not implemented, the POTS
121// holdover time is triggered on a LOS when POTS holdover is greater than zero). (R, W) (optional)
122// (1 byte)
123//
124type PhysicalPathTerminationPointPotsUni struct {
125 ManagedEntityDefinition
126 Attributes AttributeValueMap
127}
128
129func init() {
130 physicalpathterminationpointpotsuniBME = &ManagedEntityDefinition{
131 Name: "PhysicalPathTerminationPointPotsUni",
132 ClassID: 53,
133 MessageTypes: mapset.NewSetWith(
134 Get,
135 Set,
136 Test,
137 ),
138 AllowedAttributeMask: 0XFFF8,
139 AttributeDefinitions: AttributeDefinitionMap{
140 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
141 1: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), true, false, false, false, 1),
142 2: Uint16Field("Deprecated", 0, mapset.NewSetWith(Read, Write), false, false, true, true, 2),
143 3: ByteField("Arc", 0, mapset.NewSetWith(Read, Write), true, false, true, false, 3),
144 4: ByteField("ArcInterval", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 4),
145 5: ByteField("Impedance", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 5),
146 6: ByteField("TransmissionPath", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 6),
147 7: ByteField("RxGain", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 7),
148 8: ByteField("TxGain", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 8),
149 9: ByteField("OperationalState", 0, mapset.NewSetWith(Read), true, false, true, false, 9),
150 10: ByteField("HookState", 0, mapset.NewSetWith(Read), false, false, true, false, 10),
151 11: Uint16Field("PotsHoldoverTime", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 11),
152 12: ByteField("NominalFeedVoltage", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 12),
153 13: ByteField("LossOfSoftswitch", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 13),
154 },
155 }
156}
157
158// NewPhysicalPathTerminationPointPotsUni (class ID 53 creates the basic
159// Managed Entity definition that is used to validate an ME of this type that
160// is received from the wire, about to be sent on the wire.
161func NewPhysicalPathTerminationPointPotsUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
162 return NewManagedEntity(physicalpathterminationpointpotsuniBME, params...)
163}