terminal

package
v0.0.0-...-344dc5b Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const VoiceFrameDuration = time.Millisecond * 60

Variables

This section is empty.

Functions

This section is empty.

Types

type Slot

type Slot struct {
	// contains filtered or unexported fields
}

func NewSlot

func NewSlot() *Slot

type Terminal

type Terminal struct {
	ID            uint32
	Call          string
	CallMap       map[uint32]string
	Repeater      dmr.Repeater
	TalkGroup     []uint32
	SoftwareDelay bool
	// contains filtered or unexported fields
}

func New

func New(id uint32, call string, r dmr.Repeater) *Terminal

func (*Terminal) Send

func (t *Terminal) Send(p *dmr.Packet) error

func (*Terminal) SetTalkGroups

func (t *Terminal) SetTalkGroups(tg []uint32)

func (*Terminal) SetVoiceFrameFunc

func (t *Terminal) SetVoiceFrameFunc(f VoiceFrameFunc)

type VoiceFrameFunc

type VoiceFrameFunc func(*dmr.Packet, []byte)

Jump to

Keyboard shortcuts

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