UHD 003.001.000
Functions

uhd::usrp::dsp_type1 Namespace Reference

Functions

UHD_API boost::uint32_t calc_rx_mux_word (subdev_conn_t subdev_conn)
UHD_API boost::uint32_t calc_tx_mux_word (subdev_conn_t subdev_conn)
UHD_API boost::uint32_t calc_cordic_word_and_update (double &freq, double codec_rate)
UHD_API boost::uint32_t calc_cic_filter_word (unsigned rate)
UHD_API boost::uint32_t calc_iq_scale_word (boost::int16_t i, boost::int16_t q)
UHD_API boost::uint32_t calc_iq_scale_word (unsigned rate)
UHD_API boost::uint32_t calc_stream_cmd_word (const stream_cmd_t &stream_cmd)

Function Documentation

UHD_API boost::uint32_t uhd::usrp::dsp_type1::calc_cic_filter_word ( unsigned  rate)

Calculate the CIC filter word from the rate. Check if requested decim/interp rate is: multiple of 4, enable two halfband filters multiple of 2, enable one halfband filter handle remainder in CIC

Parameters:
ratethe requested rate in Sps
Returns:
the 32-bit cic filter control word
UHD_API boost::uint32_t uhd::usrp::dsp_type1::calc_cordic_word_and_update ( double &  freq,
double  codec_rate 
)

Calculate the cordic word from the frequency and clock rate. The frequency will be set to the actual (possible) frequency.

Parameters:
freqthe requested frequency in Hz
codec_ratethe dsp codec rate in Hz
Returns:
the 32-bit cordic control word
UHD_API boost::uint32_t uhd::usrp::dsp_type1::calc_iq_scale_word ( boost::int16_t  i,
boost::int16_t  q 
)

Calculate the IQ scale factor word from I and Q components.

Parameters:
ithe I component of the scalar
qthe Q component of the scalar
Returns:
the 32-bit scale factor control word
UHD_API boost::uint32_t uhd::usrp::dsp_type1::calc_iq_scale_word ( unsigned  rate)

Calculate the IQ scale factor word from the rate.

Parameters:
ratethe requested rate in Sps
Returns:
the 32-bit scale factor control word
UHD_API boost::uint32_t uhd::usrp::dsp_type1::calc_rx_mux_word ( subdev_conn_t  subdev_conn)

Calculate the rx mux word from properties.

Parameters:
subdev_connthe subdev connection type
Returns:
the 32-bit rx mux control word
UHD_API boost::uint32_t uhd::usrp::dsp_type1::calc_stream_cmd_word ( const stream_cmd_t &  stream_cmd)

Calculate the stream command word from the stream command struct.

Parameters:
stream_cmdthe requested stream command with mode, flags, timestamp
Returns:
the 32-bit stream command word
UHD_API boost::uint32_t uhd::usrp::dsp_type1::calc_tx_mux_word ( subdev_conn_t  subdev_conn)

Calculate the tx mux word from properties.

Parameters:
subdev_connthe subdev connection type
Returns:
the 32-bit tx mux control word
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines