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
267 B
Go
11 lines
267 B
Go
9 years ago
|
package dmr
|
||
|
|
||
|
import "github.com/pd0mz/go-dmr/bit"
|
||
|
|
||
|
func ExtractInfoBits(payload bit.Bits) bit.Bits {
|
||
|
var b = make(bit.Bits, InfoBits)
|
||
|
copy(b[:InfoHalfBits], payload[:InfoHalfBits])
|
||
|
copy(b[InfoHalfBits:], payload[InfoHalfBits+SignalBits+SlotTypeBits:])
|
||
|
return b
|
||
|
}
|