dmr

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CallsignRegex = regexp.MustCompile(`^([A-Z0-9]{0,8})$`)

Functions

This section is empty.

Types

type Command

type Command string
const (
	// Command Types
	COMMAND_DMRA    Command = "DMRA"    // DMR talker alias
	COMMAND_DMRD    Command = "DMRD"    // DMR data
	COMMAND_MSTCL   Command = "MSTCL"   // master server is closing connection
	COMMAND_MSTNAK  Command = "MSTNAK"  // master -> repeater nak
	COMMAND_MSTPONG Command = "MSTPONG" // RPTPING response
	COMMAND_RPTL    Command = "RPTL"    // RPTLogin -- a repeater wants to login
	COMMAND_RPTPING Command = "RPTPING" // repeater -> master ping
	COMMAND_RPTCL   Command = "RPTCL"   // repeater wants to disconnect
	COMMAND_RPTACK  Command = "RPTACK"  // mater -> repeater ack
	COMMAND_RPTK    Command = "RPTK"    // Login challenge response
	COMMAND_RPTC    Command = "RPTC"    // repeater wants to send config or disconnect
	COMMAND_RPTO    Command = "RPTO"    // Repeater options. https://github.com/g4klx/MMDVMHost/blob/master/DMRplus_startup_options.md
	COMMAND_RPTSBKN Command = "RPTSBKN" // Synchronous Site Beacon?
)

type DataType

type DataType uint
const (
	DTYPE_VOICE_HEAD DataType = 0x1
	DTYPE_VOICE_TERM DataType = 0x2
)

type FrameType

type FrameType uint
const (
	FRAME_VOICE      FrameType = 0x0
	FRAME_VOICE_SYNC FrameType = 0x1
	FRAME_DATA_SYNC  FrameType = 0x2
)

func (*FrameType) ExtensionType

func (r *FrameType) ExtensionType() int8

func (*FrameType) Len

func (r *FrameType) Len() int

func (*FrameType) MarshalBinaryTo

func (r *FrameType) MarshalBinaryTo(b []byte) error

func (*FrameType) String

func (r *FrameType) String() string

func (*FrameType) UnmarshalBinary

func (r *FrameType) UnmarshalBinary(b []byte) error

Jump to

Keyboard shortcuts

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