diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-11-25 14:41:47 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-12-01 13:34:35 -0800 |
commit | 7f6e4917a16ca7a3bea37bc278d010439c2d1b32 (patch) | |
tree | 4f9f1e9b147fd1f722f7ecd87e0202689f379c8a /host/include | |
parent | bc6b4539630e4a61eeff70d0f6f6395944712b31 (diff) | |
download | uhd-7f6e4917a16ca7a3bea37bc278d010439c2d1b32.tar.gz uhd-7f6e4917a16ca7a3bea37bc278d010439c2d1b32.tar.bz2 uhd-7f6e4917a16ca7a3bea37bc278d010439c2d1b32.zip |
rfnoc: Add more comments to rfnoc_graph
This adds some more explanatory comments around active and static
connections.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/rfnoc_graph.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/host/include/uhd/rfnoc_graph.hpp b/host/include/uhd/rfnoc_graph.hpp index 968075cff..b25d7c207 100644 --- a/host/include/uhd/rfnoc_graph.hpp +++ b/host/include/uhd/rfnoc_graph.hpp @@ -172,6 +172,9 @@ public: * Note you need to also call this on statically connected blocks if you * desire to use them. * + * Connections that are made using this API call will be listed when calling + * enumerate_active_connections(). + * * \param src_blk The block ID of the source block to connect. * \param src_port The port of the source block to connect. * \param dst_blk The block ID of the destination block to connect to. @@ -226,6 +229,9 @@ public: * connection will not be changed until a new connection is made on the source * port. * + * Disconnected edges will no longer be listed in + * enumerate_active_connections(). + * * \param src_blk The block ID of the source block to disconnect. * \param src_port The port of the source block to disconnect. * \param dst_blk The block ID of the destination block to disconnect from. @@ -285,12 +291,20 @@ public: /*! Enumerate all the possible static connections in the graph * + * A static connection is a connection that is statically connected in + * hardware. Note that static connections also need to be declared using + * connect() if an application wants to use them, or they won't be available + * for property propagation or any other graph mechanism. + * * \return A vector containing all the static edges in the graph. */ virtual std::vector<graph_edge_t> enumerate_static_connections() const = 0; /*! Enumerate all the active connections in the graph * + * An active connection is a connection which was previously created by + * calling connect(). + * * \return A vector containing all the active edges in the graph. */ virtual std::vector<graph_edge_t> enumerate_active_connections() = 0; |