serviceoptions

package
v0.0.0-...-e993038 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoPriority uint8 = iota
	Priority1
	Priority2
	Priority3
)

Priority Levels

Variables

View Source
var PriorityName = map[uint8]string{
	NoPriority: "no priority",
	Priority1:  "priority 1",
	Priority2:  "priority 2",
	Priority3:  "priority 3",
}

PriorityName is a map of priority level to string.

Functions

This section is empty.

Types

type ServiceOptions

type ServiceOptions struct {
	// Emergency service
	Emergency bool
	// Not defined in document
	Privacy bool
	// Broadcast service (only defined in group calls)
	Broadcast bool
	// Open Voice Call Mode
	OpenVoiceCallMode bool
	// Priority 3 (0b11) is the highest priority
	Priority uint8
}

ServiceOptions Conforms to ETSI TS 102-361-2 7.2.1

func ParseServiceOptions

func ParseServiceOptions(data byte) ServiceOptions

ParseServiceOptions parses the service options byte.

func (*ServiceOptions) Byte

func (so *ServiceOptions) Byte() byte

Byte packs the service options to a single byte.

func (*ServiceOptions) String

func (so *ServiceOptions) String() string

String representatation of the service options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL