| 867 | } |
| 868 | |
| 869 | bool uhd_device::recv_async_msg() |
| 870 | { |
| 871 | uhd::async_metadata_t md; |
| 872 | if (!usrp_dev->get_device()->recv_async_msg(md)) |
| 873 | return false; |
| 874 | |
| 875 | // Assume that any error requires resynchronization |
| 876 | if (md.event_code != uhd::async_metadata_t::EVENT_CODE_BURST_ACK) { |
| 877 | aligned = false; |
| 878 | |
| 879 | if ((md.event_code != uhd::async_metadata_t::EVENT_CODE_UNDERFLOW) && |
| 880 | (md.event_code != uhd::async_metadata_t::EVENT_CODE_TIME_ERROR)) { |
| 881 | LOG(ERR) << str_code(md); |
| 882 | } |
| 883 | } |
| 884 | |
| 885 | return true; |
| 886 | } |
| 887 | |
| 888 | std::string uhd_device::str_code(uhd::rx_metadata_t metadata) |
| 889 | { |