usrpserv/usrp/types.go

29 lines
295 B
Go
Raw Permalink Normal View History

2024-05-24 23:07:40 +01:00
package usrp
import (
"net"
"time"
)
const (
METADATA int8 = 2
)
type Client struct {
UDPAddr net.UDPAddr
Sock *net.UDPConn
}
type Frame struct {
Seq uint32
Metadata int8
Callsign string
Time time.Time
PCM PCM
PTT int8
}
type PCM struct {
Data [320]byte
}