Functions | |
def | conv_packed_binary_string_to_1_0_string |
'' --> '10101111' | |
def | conv_1_0_string_to_packed_binary_string |
'10101111' -> ('', False) | |
def | is_1_0_string |
def | string_to_hex_list |
def | whiten |
def | dewhiten |
def | make_header |
def | make_packet |
Build a packet, given access code, payload, and whitener offset. | |
def | unmake_packet |
Return (ok, payload). | |
Variables | |
default_access_code = \ | |
preamble = \ | |
tuple | random_mask_tuple |
tuple | random_mask_vec8 = numpy.array(random_mask_tuple, numpy.uint8) |
def gnuradio::packet_utils::conv_1_0_string_to_packed_binary_string | ( | s | ) |
'10101111' -> ('', False)
Basically the inverse of conv_packed_binary_string_to_1_0_string, but also returns a flag indicating if we had to pad with leading zeros to get to a multiple of 8.
def gnuradio::packet_utils::conv_packed_binary_string_to_1_0_string | ( | s | ) |
'' --> '10101111'
def gnuradio::packet_utils::dewhiten | ( | s, | ||
o | ||||
) |
def gnuradio::packet_utils::is_1_0_string | ( | s | ) |
def gnuradio::packet_utils::make_header | ( | payload_len, | ||
whitener_offset = 0 | ||||
) |
def gnuradio::packet_utils::make_packet | ( | payload, | ||
samples_per_symbol, | ||||
bits_per_symbol, | ||||
access_code = default_access_code , |
||||
pad_for_usrp = True , |
||||
whitener_offset = 0 , |
||||
whitening = True | ||||
) |
Build a packet, given access code, payload, and whitener offset.
payload,: | packet payload, len [0, 4096] | |
samples_per_symbol,: | samples per symbol (needed for padding calculation) samples_per_symbol: int | |
bits_per_symbol,: | (needed for padding calculation) bits_per_symbol: int | |
access_code,: | string of ascii 0's and 1's | |
whitener_offset | offset into whitener string to use [0-16) |
def gnuradio::packet_utils::string_to_hex_list | ( | s | ) |
def gnuradio::packet_utils::unmake_packet | ( | whitened_payload_with_crc, | ||
whitener_offset = 0 , |
||||
dewhitening = True | ||||
) |
Return (ok, payload).
whitened_payload_with_crc,: | string |
def gnuradio::packet_utils::whiten | ( | s, | ||
o | ||||
) |
tuple gnuradio::packet_utils::random_mask_vec8 = numpy.array(random_mask_tuple, numpy.uint8) |