diff options
author | eb | 2008-09-24 00:07:57 +0000 |
---|---|---|
committer | eb | 2008-09-24 00:07:57 +0000 |
commit | 8979083cd32897b7fc258d071b17d19fae0cc9d1 (patch) | |
tree | 0e3b53d8bf3dc05d4511595eebe24655eeda9680 /usrp2/host/include | |
parent | 801b22a99512ed3dfd2b92bfc597bfc3451ccbc9 (diff) | |
download | gnuradio-8979083cd32897b7fc258d071b17d19fae0cc9d1.tar.gz gnuradio-8979083cd32897b7fc258d071b17d19fae0cc9d1.tar.bz2 gnuradio-8979083cd32897b7fc258d071b17d19fae0cc9d1.zip |
Renamed identifiers for consistency: s/complex_float/32fc/ s/complex_16/16sc/.
Merged eb/u2-wip -r9645:9646 into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9647 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/host/include')
-rw-r--r-- | usrp2/host/include/usrp2/copiers.h | 24 | ||||
-rw-r--r-- | usrp2/host/include/usrp2/usrp2.h | 28 |
2 files changed, 30 insertions, 22 deletions
diff --git a/usrp2/host/include/usrp2/copiers.h b/usrp2/host/include/usrp2/copiers.h index 43674f7ac..e98126f65 100644 --- a/usrp2/host/include/usrp2/copiers.h +++ b/usrp2/host/include/usrp2/copiers.h @@ -33,14 +33,14 @@ namespace usrp2 { */ void - copy_u2_complex_16_to_host_complex_16(size_t nitems, - const uint32_t *items, - std::complex<int16_t> *host_items); + copy_u2_16sc_to_host_16sc(size_t nitems, + const uint32_t *items, + std::complex<int16_t> *host_items); void - copy_u2_complex_16_to_host_complex_float(size_t nitems, - const uint32_t *items, - std::complex<float> *host_items); + copy_u2_16sc_to_host_32fc(size_t nitems, + const uint32_t *items, + std::complex<float> *host_items); /* * ---------------------------------------------------------------- @@ -49,14 +49,14 @@ namespace usrp2 { */ void - copy_host_complex_16_to_u2_complex_16(size_t nitems, - const std::complex<int16_t> *host_items, - uint32_t *items); + copy_host_16sc_to_u2_16sc(size_t nitems, + const std::complex<int16_t> *host_items, + uint32_t *items); void - copy_host_complex_float_to_u2_complex_16(size_t nitems, - const std::complex<float> *host_items, - uint32_t *items); + copy_host_32fc_to_u2_16sc(size_t nitems, + const std::complex<float> *host_items, + uint32_t *items); } diff --git a/usrp2/host/include/usrp2/usrp2.h b/usrp2/host/include/usrp2/usrp2.h index 4e875d343..b76d31c8d 100644 --- a/usrp2/host/include/usrp2/usrp2.h +++ b/usrp2/host/include/usrp2/usrp2.h @@ -205,14 +205,18 @@ namespace usrp2 { * \brief transmit complex<float> samples to USRP2 * * \param channel specifies the channel to send them to - * \param samples are the samples to transmit + * \param samples are the samples to transmit. They should be in the range [-1.0, +1.0] * \param nsamples is the number of samples to transmit * \param metadata provides the timestamp and flags + * + * The complex<float> samples are converted to the appropriate + * "on the wire" representation, depending on the current USRP2 + * configuration. Typically, this is big-endian 16-bit I & Q. */ - bool tx_complex_float(unsigned int channel, - const std::complex<float> *samples, - size_t nsamples, - const tx_metadata *metadata); + bool tx_32fc(unsigned int channel, + const std::complex<float> *samples, + size_t nsamples, + const tx_metadata *metadata); /*! * \brief transmit complex<int16_t> samples to USRP2 @@ -221,11 +225,15 @@ namespace usrp2 { * \param samples are the samples to transmit * \param nsamples is the number of samples to transmit * \param metadata provides the timestamp and flags + * + * The complex<int16_t> samples are converted to the appropriate + * "on the wire" representation, depending on the current USRP2 + * configuration. Typically, this is big-endian 16-bit I & Q. */ - bool tx_complex_int16(unsigned int channel, - const std::complex<int16_t> *samples, - size_t nsamples, - const tx_metadata *metadata); + bool tx_16sc(unsigned int channel, + const std::complex<int16_t> *samples, + size_t nsamples, + const tx_metadata *metadata); /*! * \brief transmit raw uint32_t data items to USRP2 @@ -233,7 +241,7 @@ namespace usrp2 { * The caller is responsible for ensuring that the items are * formatted appropriately for the USRP2 and its configuration. * This method is used primarily by the system itself. Users - * should call tx_complex_float or tx_complex_16 instead. + * should call tx_32fc or tx_16sc instead. * * \param channel specifies the channel to send them to * \param items are the data items to transmit |