Revision 11c83c60 host/lib/usrp/usrp2/mboard_impl.cpp
| b/host/lib/usrp/usrp2/mboard_impl.cpp | ||
|---|---|---|
| 69 | 69 |
_allowed_decim_and_interp_rates.push_back(i); |
| 70 | 70 |
} |
| 71 | 71 |
|
| 72 |
//Issue a stop streaming command (in case it was left running). |
|
| 73 |
//Since this command is issued before the networking is setup, |
|
| 74 |
//most if not all junk packets will never make it to the socket. |
|
| 75 |
this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); |
|
| 76 |
|
|
| 72 | 77 |
//init the rx control registers |
| 73 | 78 |
_iface->poke32(U2_REG_RX_CTRL_NSAMPS_PER_PKT, _io_helper.get_max_recv_samps_per_packet()); |
| 74 | 79 |
_iface->poke32(U2_REG_RX_CTRL_NCHANNELS, 1); |
| ... | ... | |
| 107 | 112 |
//set default subdev specs |
| 108 | 113 |
(*this)[MBOARD_PROP_RX_SUBDEV_SPEC] = subdev_spec_t(); |
| 109 | 114 |
(*this)[MBOARD_PROP_TX_SUBDEV_SPEC] = subdev_spec_t(); |
| 110 |
|
|
| 111 |
//Issue a stop streaming command (in case it was left running). |
|
| 112 |
//Since this command is issued before the networking is setup, |
|
| 113 |
//most if not all junk packets will never make it to the socket. |
|
| 114 |
this->issue_ddc_stream_cmd(stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); |
|
| 115 | 115 |
} |
| 116 | 116 |
|
| 117 | 117 |
usrp2_mboard_impl::~usrp2_mboard_impl(void){
|
Also available in: Unified diff