aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert/gen_convert_general.py
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-10-07 10:47:56 -0700
committerJosh Blum <josh@joshknows.com>2011-11-03 20:37:11 -0700
commit65fb4d225204b4ee2b7c73fc0ec393cfff9d6149 (patch)
tree7b7dac7e8bce49e9ef752f66f7944d61a4b454c2 /host/lib/convert/gen_convert_general.py
parent4c4f0810ef06be18e989b6933ff236ff97c13dd0 (diff)
downloaduhd-65fb4d225204b4ee2b7c73fc0ec393cfff9d6149.tar.gz
uhd-65fb4d225204b4ee2b7c73fc0ec393cfff9d6149.tar.bz2
uhd-65fb4d225204b4ee2b7c73fc0ec393cfff9d6149.zip
usrp1: various tweaks related to streaming
Diffstat (limited to 'host/lib/convert/gen_convert_general.py')
-rw-r--r--host/lib/convert/gen_convert_general.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/host/lib/convert/gen_convert_general.py b/host/lib/convert/gen_convert_general.py
index a5c4d4cb7..0cd4155fa 100644
--- a/host/lib/convert/gen_convert_general.py
+++ b/host/lib/convert/gen_convert_general.py
@@ -84,25 +84,6 @@ DECLARE_CONVERTER(sc16_item16_usrp1, 1, $(cpu_type), $(width), PRIORITY_GENERAL)
}
}
-DECLARE_CONVERTER($(cpu_type), $(width), sc8_item16_usrp1, 1, PRIORITY_GENERAL){
- #for $w in range($width)
- const $(cpu_type)_t *input$(w) = reinterpret_cast<const $(cpu_type)_t *>(inputs[$(w)]);
- #end for
- boost::uint16_t *output = reinterpret_cast<boost::uint16_t *>(outputs[0]);
-
- if (scale_factor == 0){} //avoids unused warning
-
- for (size_t i = 0, j = 0; i < nsamps; i++){
- #for $w in range($width)
- {
- const boost::uint8_t real = boost::int8_t(input$(w)[i].real()$(do_scale));
- const boost::uint8_t imag = boost::int8_t(input$(w)[i].imag()$(do_scale));
- output[j++] = $(to_wire)((boost::uint16_t(imag) << 8) | real);
- }
- #end for
- }
-}
-
DECLARE_CONVERTER(sc8_item16_usrp1, 1, $(cpu_type), $(width), PRIORITY_GENERAL){
const boost::uint16_t *input = reinterpret_cast<const boost::uint16_t *>(inputs[0]);
#for $w in range($width)