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 FrameType ¶
type FrameType uint
FrameType is a DMR frame type.
func (*FrameType) ExtensionType ¶
ExtensionType returns the extension type for the frame.
func (*FrameType) MarshalBinaryTo ¶
MarshalBinaryTo writes the frame to the byte slice.
func (*FrameType) UnmarshalBinary ¶
UnmarshalBinary reads the frame from the byte slice.
Click to show internal directories.
Click to hide internal directories.