usrpserv/usrp/types.go
Jim Colderwood b8138c0462 init
2024-05-24 23:07:40 +01:00

29 lines
295 B
Go

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
}