You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
260 B
Go
11 lines
260 B
Go
9 years ago
|
package dmr
|
||
|
|
||
|
import "github.com/tehmaze/go-dmr/bit"
|
||
|
|
||
|
func ExtractVoiceBits(payload bit.Bits) bit.Bits {
|
||
|
var b = make(bit.Bits, VoiceBits)
|
||
|
copy(b[:VoiceHalfBits], payload[:VoiceHalfBits])
|
||
|
copy(b[VoiceHalfBits:], payload[VoiceHalfBits+SyncBits:])
|
||
|
return b
|
||
|
}
|