dmrconst

package
v1.0.60 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParrotUser     = uint(9990)
	SuperAdminUser = uint(999999)
)
View Source
const (
	VoiceA = iota
	VoiceB
	VoiceC
	VoiceD
	VoiceE
	VoiceF
)
View Source
const HBRPMaxPacketLength = 55
View Source
const HBRPPacketLength = 53

Variables

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

CallsignRegex is a regex for validating callsigns.

Functions

This section is empty.

Types

type Command

type Command string

Command is a DMR command.

const (
	CommandDMRA    Command = "DMRA"    // DMR talker alias
	CommandDMRD    Command = "DMRD"    // DMR data
	CommandMSTCL   Command = "MSTCL"   // master server is closing connection
	CommandMSTNAK  Command = "MSTNAK"  // master -> repeater nak
	CommandMSTPONG Command = "MSTPONG" // RPTPING response
	CommandRPTL    Command = "RPTL"    // RPTLogin -- a repeater wants to login
	CommandRPTPING Command = "RPTPING" // repeater -> master ping
	CommandRPTCL   Command = "RPTCL"   // repeater wants to disconnect
	CommandRPTACK  Command = "RPTACK"  // mater -> repeater ack
	CommandRPTK    Command = "RPTK"    // Login challenge response
	CommandRPTC    Command = "RPTC"    // repeater wants to send config or disconnect
	CommandRPTO    Command = "RPTO"    // Repeater options. https://github.com/g4klx/MMDVMHost/blob/master/DMRplus_startup_options.md
	CommandRPTSBKN Command = "RPTSBKN" // Synchronous Site Beacon?
)

Command Types.

type DataType

type DataType uint

DataType is a DMR data type.

const (
	DTypeVoiceHead DataType = 0x1
	DTypeVoiceTerm DataType = 0x2
)

type FrameType

type FrameType uint

FrameType is a DMR frame type.

const (
	FrameVoice     FrameType = 0x0
	FrameVoiceSync FrameType = 0x1
	FrameDataSync  FrameType = 0x2
)

func (*FrameType) ExtensionType

func (r *FrameType) ExtensionType() int8

ExtensionType returns the extension type for the frame.

func (*FrameType) Len

func (r *FrameType) Len() int

Len returns the length of the frame.

func (*FrameType) MarshalBinaryTo

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

MarshalBinaryTo writes the frame to the byte slice.

func (*FrameType) String

func (r *FrameType) String() string

String returns the string representation of the frame.

func (*FrameType) UnmarshalBinary

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

UnmarshalBinary reads the frame from the byte slice.

type Timeslot added in v1.0.60

type Timeslot uint8
const (
	TimeslotOne Timeslot = 1
	TimeslotTwo Timeslot = 2
)

Jump to

Keyboard shortcuts

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