-
Notifications
You must be signed in to change notification settings - Fork 37
/
NAS_AlwaysonPDUSessionRequested.go
38 lines (32 loc) · 1.14 KB
/
NAS_AlwaysonPDUSessionRequested.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
package nasType
// AlwaysonPDUSessionRequested 9.11.4.4
// Iei Row, sBit, len = [0, 0], 8 , 4
// APSR Row, sBit, len = [0, 0], 1 , 1
type AlwaysonPDUSessionRequested struct {
Octet uint8
}
func NewAlwaysonPDUSessionRequested(iei uint8) (alwaysonPDUSessionRequested *AlwaysonPDUSessionRequested) {
alwaysonPDUSessionRequested = &AlwaysonPDUSessionRequested{}
alwaysonPDUSessionRequested.SetIei(iei)
return alwaysonPDUSessionRequested
}
// AlwaysonPDUSessionRequested 9.11.4.4
// Iei Row, sBit, len = [0, 0], 8 , 4
func (a *AlwaysonPDUSessionRequested) GetIei() (iei uint8) {
return a.Octet & GetBitMask(8, 4) >> (4)
}
// AlwaysonPDUSessionRequested 9.11.4.4
// Iei Row, sBit, len = [0, 0], 8 , 4
func (a *AlwaysonPDUSessionRequested) SetIei(iei uint8) {
a.Octet = (a.Octet & 15) + ((iei & 15) << 4)
}
// AlwaysonPDUSessionRequested 9.11.4.4
// APSR Row, sBit, len = [0, 0], 1 , 1
func (a *AlwaysonPDUSessionRequested) GetAPSR() (aPSR uint8) {
return a.Octet & GetBitMask(1, 0)
}
// AlwaysonPDUSessionRequested 9.11.4.4
// APSR Row, sBit, len = [0, 0], 1 , 1
func (a *AlwaysonPDUSessionRequested) SetAPSR(aPSR uint8) {
a.Octet = (a.Octet & 254) + (aPSR & 1)
}