-
Notifications
You must be signed in to change notification settings - Fork 37
/
NAS_PDUSessionReactivationResult.go
262 lines (222 loc) · 8.25 KB
/
NAS_PDUSessionReactivationResult.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
package nasType
// PDUSessionReactivationResult 9.11.3.42
// PSI7 Row, sBit, len = [0, 0], 8 , 1
// PSI6 Row, sBit, len = [0, 0], 7 , 1
// PSI5 Row, sBit, len = [0, 0], 6 , 1
// PSI4 Row, sBit, len = [0, 0], 5 , 1
// PSI3 Row, sBit, len = [0, 0], 4 , 1
// PSI2 Row, sBit, len = [0, 0], 3 , 1
// PSI1 Row, sBit, len = [0, 0], 2 , 1
// PSI0 Row, sBit, len = [0, 0], 1 , 1
// PSI15 Row, sBit, len = [1, 1], 8 , 1
// PSI14 Row, sBit, len = [1, 1], 7 , 1
// PSI13 Row, sBit, len = [1, 1], 6 , 1
// PSI12 Row, sBit, len = [1, 1], 5 , 1
// PSI11 Row, sBit, len = [1, 1], 4 , 1
// PSI10 Row, sBit, len = [1, 1], 3 , 1
// PSI9 Row, sBit, len = [1, 1], 2 , 1
// PSI8 Row, sBit, len = [1, 1], 1 , 1
// Spare Row, sBit, len = [2, 2], 1 , INF
type PDUSessionReactivationResult struct {
Iei uint8
Len uint8
Buffer []uint8
}
func NewPDUSessionReactivationResult(iei uint8) (pDUSessionReactivationResult *PDUSessionReactivationResult) {
pDUSessionReactivationResult = &PDUSessionReactivationResult{}
pDUSessionReactivationResult.SetIei(iei)
return pDUSessionReactivationResult
}
// PDUSessionReactivationResult 9.11.3.42
// Iei Row, sBit, len = [], 8, 8
func (a *PDUSessionReactivationResult) GetIei() (iei uint8) {
return a.Iei
}
// PDUSessionReactivationResult 9.11.3.42
// Iei Row, sBit, len = [], 8, 8
func (a *PDUSessionReactivationResult) SetIei(iei uint8) {
a.Iei = iei
}
// PDUSessionReactivationResult 9.11.3.42
// Len Row, sBit, len = [], 8, 8
func (a *PDUSessionReactivationResult) GetLen() (len uint8) {
return a.Len
}
// PDUSessionReactivationResult 9.11.3.42
// Len Row, sBit, len = [], 8, 8
func (a *PDUSessionReactivationResult) SetLen(len uint8) {
a.Len = len
a.Buffer = make([]uint8, a.Len)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI7 Row, sBit, len = [0, 0], 8 , 1
func (a *PDUSessionReactivationResult) GetPSI7() (pSI7 uint8) {
return a.Buffer[0] & GetBitMask(8, 7) >> (7)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI7 Row, sBit, len = [0, 0], 8 , 1
func (a *PDUSessionReactivationResult) SetPSI7(pSI7 uint8) {
a.Buffer[0] = (a.Buffer[0] & 127) + ((pSI7 & 1) << 7)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI6 Row, sBit, len = [0, 0], 7 , 1
func (a *PDUSessionReactivationResult) GetPSI6() (pSI6 uint8) {
return a.Buffer[0] & GetBitMask(7, 6) >> (6)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI6 Row, sBit, len = [0, 0], 7 , 1
func (a *PDUSessionReactivationResult) SetPSI6(pSI6 uint8) {
a.Buffer[0] = (a.Buffer[0] & 191) + ((pSI6 & 1) << 6)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI5 Row, sBit, len = [0, 0], 6 , 1
func (a *PDUSessionReactivationResult) GetPSI5() (pSI5 uint8) {
return a.Buffer[0] & GetBitMask(6, 5) >> (5)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI5 Row, sBit, len = [0, 0], 6 , 1
func (a *PDUSessionReactivationResult) SetPSI5(pSI5 uint8) {
a.Buffer[0] = (a.Buffer[0] & 223) + ((pSI5 & 1) << 5)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI4 Row, sBit, len = [0, 0], 5 , 1
func (a *PDUSessionReactivationResult) GetPSI4() (pSI4 uint8) {
return a.Buffer[0] & GetBitMask(5, 4) >> (4)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI4 Row, sBit, len = [0, 0], 5 , 1
func (a *PDUSessionReactivationResult) SetPSI4(pSI4 uint8) {
a.Buffer[0] = (a.Buffer[0] & 239) + ((pSI4 & 1) << 4)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI3 Row, sBit, len = [0, 0], 4 , 1
func (a *PDUSessionReactivationResult) GetPSI3() (pSI3 uint8) {
return a.Buffer[0] & GetBitMask(4, 3) >> (3)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI3 Row, sBit, len = [0, 0], 4 , 1
func (a *PDUSessionReactivationResult) SetPSI3(pSI3 uint8) {
a.Buffer[0] = (a.Buffer[0] & 247) + ((pSI3 & 1) << 3)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI2 Row, sBit, len = [0, 0], 3 , 1
func (a *PDUSessionReactivationResult) GetPSI2() (pSI2 uint8) {
return a.Buffer[0] & GetBitMask(3, 2) >> (2)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI2 Row, sBit, len = [0, 0], 3 , 1
func (a *PDUSessionReactivationResult) SetPSI2(pSI2 uint8) {
a.Buffer[0] = (a.Buffer[0] & 251) + ((pSI2 & 1) << 2)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI1 Row, sBit, len = [0, 0], 2 , 1
func (a *PDUSessionReactivationResult) GetPSI1() (pSI1 uint8) {
return a.Buffer[0] & GetBitMask(2, 1) >> (1)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI1 Row, sBit, len = [0, 0], 2 , 1
func (a *PDUSessionReactivationResult) SetPSI1(pSI1 uint8) {
a.Buffer[0] = (a.Buffer[0] & 253) + ((pSI1 & 1) << 1)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI0 Row, sBit, len = [0, 0], 1 , 1
func (a *PDUSessionReactivationResult) GetPSI0() (pSI0 uint8) {
return a.Buffer[0] & GetBitMask(1, 0)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI0 Row, sBit, len = [0, 0], 1 , 1
func (a *PDUSessionReactivationResult) SetPSI0(pSI0 uint8) {
a.Buffer[0] = (a.Buffer[0] & 254) + (pSI0 & 1)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI15 Row, sBit, len = [1, 1], 8 , 1
func (a *PDUSessionReactivationResult) GetPSI15() (pSI15 uint8) {
return a.Buffer[1] & GetBitMask(8, 7) >> (7)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI15 Row, sBit, len = [1, 1], 8 , 1
func (a *PDUSessionReactivationResult) SetPSI15(pSI15 uint8) {
a.Buffer[1] = (a.Buffer[1] & 127) + ((pSI15 & 1) << 7)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI14 Row, sBit, len = [1, 1], 7 , 1
func (a *PDUSessionReactivationResult) GetPSI14() (pSI14 uint8) {
return a.Buffer[1] & GetBitMask(7, 6) >> (6)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI14 Row, sBit, len = [1, 1], 7 , 1
func (a *PDUSessionReactivationResult) SetPSI14(pSI14 uint8) {
a.Buffer[1] = (a.Buffer[1] & 191) + ((pSI14 & 1) << 6)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI13 Row, sBit, len = [1, 1], 6 , 1
func (a *PDUSessionReactivationResult) GetPSI13() (pSI13 uint8) {
return a.Buffer[1] & GetBitMask(6, 5) >> (5)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI13 Row, sBit, len = [1, 1], 6 , 1
func (a *PDUSessionReactivationResult) SetPSI13(pSI13 uint8) {
a.Buffer[1] = (a.Buffer[1] & 223) + ((pSI13 & 1) << 5)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI12 Row, sBit, len = [1, 1], 5 , 1
func (a *PDUSessionReactivationResult) GetPSI12() (pSI12 uint8) {
return a.Buffer[1] & GetBitMask(5, 4) >> (4)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI12 Row, sBit, len = [1, 1], 5 , 1
func (a *PDUSessionReactivationResult) SetPSI12(pSI12 uint8) {
a.Buffer[1] = (a.Buffer[1] & 239) + ((pSI12 & 1) << 4)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI11 Row, sBit, len = [1, 1], 4 , 1
func (a *PDUSessionReactivationResult) GetPSI11() (pSI11 uint8) {
return a.Buffer[1] & GetBitMask(4, 3) >> (3)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI11 Row, sBit, len = [1, 1], 4 , 1
func (a *PDUSessionReactivationResult) SetPSI11(pSI11 uint8) {
a.Buffer[1] = (a.Buffer[1] & 247) + ((pSI11 & 1) << 3)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI10 Row, sBit, len = [1, 1], 3 , 1
func (a *PDUSessionReactivationResult) GetPSI10() (pSI10 uint8) {
return a.Buffer[1] & GetBitMask(3, 2) >> (2)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI10 Row, sBit, len = [1, 1], 3 , 1
func (a *PDUSessionReactivationResult) SetPSI10(pSI10 uint8) {
a.Buffer[1] = (a.Buffer[1] & 251) + ((pSI10 & 1) << 2)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI9 Row, sBit, len = [1, 1], 2 , 1
func (a *PDUSessionReactivationResult) GetPSI9() (pSI9 uint8) {
return a.Buffer[1] & GetBitMask(2, 1) >> (1)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI9 Row, sBit, len = [1, 1], 2 , 1
func (a *PDUSessionReactivationResult) SetPSI9(pSI9 uint8) {
a.Buffer[1] = (a.Buffer[1] & 253) + ((pSI9 & 1) << 1)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI8 Row, sBit, len = [1, 1], 1 , 1
func (a *PDUSessionReactivationResult) GetPSI8() (pSI8 uint8) {
return a.Buffer[1] & GetBitMask(1, 0)
}
// PDUSessionReactivationResult 9.11.3.42
// PSI8 Row, sBit, len = [1, 1], 1 , 1
func (a *PDUSessionReactivationResult) SetPSI8(pSI8 uint8) {
a.Buffer[1] = (a.Buffer[1] & 254) + (pSI8 & 1)
}
// PDUSessionReactivationResult 9.11.3.42
// Spare Row, sBit, len = [2, 2], 1 , INF
func (a *PDUSessionReactivationResult) GetSpare() (spare []uint8) {
spare = make([]uint8, len(a.Buffer)-2)
copy(spare, a.Buffer[2:])
return spare
}
// PDUSessionReactivationResult 9.11.3.42
// Spare Row, sBit, len = [2, 2], 1 , INF
func (a *PDUSessionReactivationResult) SetSpare(spare []uint8) {
copy(a.Buffer[2:], spare)
}