summaryrefslogtreecommitdiff
path: root/gr-digital/python/digital/packet_utils.py
diff options
context:
space:
mode:
authorBolin Hsu <bolin.hsu@gmail.com>2014-03-29 22:00:16 -0700
committerBolin Hsu <bolin.hsu@gmail.com>2014-04-11 21:48:06 -0700
commit6643727f8a2465c88c58803b9455fe0c529cc1c0 (patch)
treef6dac9f5e36d56e827755fa2e8e4e53a6e4feec5 /gr-digital/python/digital/packet_utils.py
parent1092e685defd10692d3fa47435c716a88dfd8712 (diff)
Fix inconsistent naming and docstring
(1) In the XML files, all keys except "log" are used as parameter names. (2) Most files use the parameter name "log" to flip logging. So change the ones that use "logging" or "debug" to "log". (3) packet_mod constructor does not have the argument payload_length. (4) Add missing args to some docstrings (5) Resolve inconsistency between gmsk_demod code and doc
Diffstat (limited to 'gr-digital/python/digital/packet_utils.py')
-rw-r--r--gr-digital/python/digital/packet_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-digital/python/digital/packet_utils.py b/gr-digital/python/digital/packet_utils.py
index 865f3adbb4..d7aa4e66ca 100644
--- a/gr-digital/python/digital/packet_utils.py
+++ b/gr-digital/python/digital/packet_utils.py
@@ -113,7 +113,9 @@ def make_packet(payload, samples_per_symbol, bits_per_symbol,
bits_per_symbol: (needed for padding calculation) (int)
preamble: string of ascii 0's and 1's
access_code: string of ascii 0's and 1's
+ pad_for_usrp: If true, packets are padded such that they end up a multiple of 128 samples(512 bytes)
whitener_offset: offset into whitener string to use [0-16)
+ whitening: Whether to turn on data whitening(scrambling) (boolean)
Packet will have access code at the beginning, followed by length, payload
and finally CRC-32.