diff options
| author | Ashish Chaudhari <ashish@ettus.com> | 2019-05-31 15:06:07 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:22 -0800 | 
| commit | 911b89e4f6e2df66d355448c452af0b2fc058fe6 (patch) | |
| tree | 240900847a926459533dda9a5bb5759166a41c4c /host/lib | |
| parent | de9cbe9c7c0a6e9296c561423d3b568bc1513133 (diff) | |
| download | uhd-911b89e4f6e2df66d355448c452af0b2fc058fe6.tar.gz uhd-911b89e4f6e2df66d355448c452af0b2fc058fe6.tar.bz2 uhd-911b89e4f6e2df66d355448c452af0b2fc058fe6.zip  | |
rfnoc: Added src port, EPID getters to register_iface, 64-bit calls
- Add peek64() and poke64() convenience calls
Diffstat (limited to 'host/lib')
| -rw-r--r-- | host/lib/rfnoc/ctrlport_endpoint.cpp | 15 | 
1 files changed, 14 insertions, 1 deletions
diff --git a/host/lib/rfnoc/ctrlport_endpoint.cpp b/host/lib/rfnoc/ctrlport_endpoint.cpp index 93236940f..a618eaca2 100644 --- a/host/lib/rfnoc/ctrlport_endpoint.cpp +++ b/host/lib/rfnoc/ctrlport_endpoint.cpp @@ -263,7 +263,10 @@ public:                  UHD_LOG_ERROR(                      "CTRLEP", "Malformed async message request: Invalid opcode");              } else if (rx_ctrl.dst_port != _local_port) { -                UHD_LOG_ERROR("CTRLEP", "Malformed async message request: Invalid port"); +                UHD_LOG_ERROR("CTRLEP", +                    "Malformed async message request: Invalid port " +                        << rx_ctrl.dst_port << ", expected my local port " +                        << _local_port);              } else if (rx_ctrl.data_vtr.empty()) {                  UHD_LOG_ERROR(                      "CTRLEP", "Malformed async message request: Invalid num_data"); @@ -291,6 +294,16 @@ public:          }      } +    virtual uint16_t get_src_epid() const +    { +        return _my_epid; +    } + +    virtual uint16_t get_port_num() const +    { +        return _local_port; +    } +  private:      //! Returns the length of the control payload in 32-bit words      inline static size_t get_payload_size(const ctrl_payload& payload)  | 
