|
USRP Hardware Driver and USRP Manual
Version: 4.4.0.HEAD-0-g5fac246b
UHD and USRP Manual
|
|
Go to the documentation of this file.
13 namespace uhd {
namespace rfnoc {
51 return !(*
this == rhs);
57 const std::string type_repr =
62 return type_repr +
":" + std::to_string(
instance);
84 struct hash<
uhd::rfnoc::res_source_info>
88 const size_t hash_type = std::hash<size_t>{}(src_info.
type);
89 const size_t hash_inst = std::hash<size_t>{}(src_info.
instance);
90 return hash_type ^ (hash_inst << 1);
@ OUTPUT_EDGE
An input edge sources this resource.
Definition: res_source_info.hpp:24
Definition: res_source_info.hpp:17
#define UHD_ASSERT_THROW(code)
Definition: exception.hpp:321
static source_t invert_edge(const source_t edge_direction)
Definition: res_source_info.hpp:73
@ FRAMEWORK
This is a special resource, only accessed by the framework.
Definition: res_source_info.hpp:25
std::string to_string() const
Returns a string representation of the source.
Definition: res_source_info.hpp:55
@ INPUT_EDGE
An input edge sources this resource.
Definition: res_source_info.hpp:23
source_t
Definition: res_source_info.hpp:21
size_t operator()(const uhd::rfnoc::res_source_info &src_info) const
Definition: res_source_info.hpp:86
res_source_info(source_t source_type, size_t instance_=0)
Definition: res_source_info.hpp:31
Definition: build_info.hpp:12
@ USER
The user API sources this resource.
Definition: res_source_info.hpp:22
source_t type
The type of source (user or edge)
Definition: res_source_info.hpp:38
bool operator!=(const res_source_info &rhs) const
Definition: res_source_info.hpp:49
bool operator==(const res_source_info &rhs) const
Definition: res_source_info.hpp:44
size_t instance
The instance of the source. For resource that is sourced by a edge, it.
Definition: res_source_info.hpp:42