diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2014-04-15 16:50:38 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-04-15 16:50:38 -0700 |
commit | 24b9e5bee104769db1bef04feda0c6fd07a3bc29 (patch) | |
tree | a1502eaaa63675fb19e0192c7dcc43a64c807d06 /gr-digital/python/digital/psk.py | |
parent | 4313320c03e7195c183d6ce3d5c58775b2e217be (diff) | |
parent | 850d5ca30cd10a3cf1edaf46234690c5dca3e5c4 (diff) |
Merge remote-tracking branch 'tkuester/documentation'
Diffstat (limited to 'gr-digital/python/digital/psk.py')
-rw-r--r-- | gr-digital/python/digital/psk.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gr-digital/python/digital/psk.py b/gr-digital/python/digital/psk.py index 1816ffb4ba..0e0c65ea2b 100644 --- a/gr-digital/python/digital/psk.py +++ b/gr-digital/python/digital/psk.py @@ -85,9 +85,15 @@ class psk_mod(generic_mod): """ Hierarchical block for RRC-filtered PSK modulation. - The input is a byte stream (unsigned char) and the - output is the complex modulated signal at baseband. - + The input is a byte stream (unsigned char), treated as a series of packed + symbols. Symbols are grouped from MSB to LSB. + + The output is the complex modulated signal at baseband, with a given number + of samples per symbol. + + If "Samples/Symbol" is 2, and "Number of Constellation Points" is 4, a + single byte contains four symbols, and will produce eight samples. + Args: constellation_points: Number of constellation points (must be a power of two) (integer). mod_code: Whether to use a gray_code (digital.mod_codes.GRAY_CODE) or not (digital.mod_codes.NO_CODE). @@ -113,8 +119,10 @@ class psk_demod(generic_demod): """ Hierarchical block for RRC-filtered PSK modulation. - The input is a byte stream (unsigned char) and the - output is the complex modulated signal at baseband. + The input is a complex modulated signal at baseband. + + The output is a stream of bytes, each representing a recovered bit. + The most significant bit is reported first. Args: constellation_points: Number of constellation points (must be a power of two) (integer). |