29 lines
295 B
Go
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
|
||
|
}
|