HBLink/constants.py

20 lines
606 B
Python
Raw Normal View History

2016-10-10 21:11:18 -04:00
from bitarray import bitarray
BS_VOICE_SYNC = bitarray()
BS_DATA_SYNC = bitarray()
BS_VOICE_SYNC.frombytes(b'\x75\x5F\xD7\xDF\x75\xF7')
BS_DATA_SYNC.frombytes(b'\xDF\xF5\x7D\x75\xDF\x5D')
2016-10-23 12:07:16 -04:00
# Precomputed EMB values, where CC always = 1, and PI always = 0
BURST_B_EMB = bitarray('0001001110010001')
BURST_C_EMB = bitarray('0001011101110100')
BURST_D_EMB = bitarray('0001011101110100')
BURST_E_EMB = bitarray('0001010100000111')
BURST_F_EMB = bitarray('0001000111100010')
2016-09-30 15:16:53 -04:00
'''
EMB: CC(4b), PI(1b), LCSS(2b), EMB Parity(9b - QR 16,7,5)
Slot Type: CC(4b), DataType(4), Slot Type Parity(12b - )
'''