From 8979083cd32897b7fc258d071b17d19fae0cc9d1 Mon Sep 17 00:00:00 2001 From: eb Date: Wed, 24 Sep 2008 00:07:57 +0000 Subject: 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 --- usrp2/host/include/usrp2/copiers.h | 24 ++++++++++++------------ usrp2/host/include/usrp2/usrp2.h | 28 ++++++++++++++++++---------- 2 files changed, 30 insertions(+), 22 deletions(-) (limited to 'usrp2/host/include') 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 *host_items); + copy_u2_16sc_to_host_16sc(size_t nitems, + const uint32_t *items, + std::complex *host_items); void - copy_u2_complex_16_to_host_complex_float(size_t nitems, - const uint32_t *items, - std::complex *host_items); + copy_u2_16sc_to_host_32fc(size_t nitems, + const uint32_t *items, + std::complex *host_items); /* * ---------------------------------------------------------------- @@ -49,14 +49,14 @@ namespace usrp2 { */ void - copy_host_complex_16_to_u2_complex_16(size_t nitems, - const std::complex *host_items, - uint32_t *items); + copy_host_16sc_to_u2_16sc(size_t nitems, + const std::complex *host_items, + uint32_t *items); void - copy_host_complex_float_to_u2_complex_16(size_t nitems, - const std::complex *host_items, - uint32_t *items); + copy_host_32fc_to_u2_16sc(size_t nitems, + const std::complex *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 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 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 *samples, - size_t nsamples, - const tx_metadata *metadata); + bool tx_32fc(unsigned int channel, + const std::complex *samples, + size_t nsamples, + const tx_metadata *metadata); /*! * \brief transmit complex 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 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 *samples, - size_t nsamples, - const tx_metadata *metadata); + bool tx_16sc(unsigned int channel, + const std::complex *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 -- cgit