#include <uhd/rfnoc/chdr_types.hpp>
A class that represents a single management operation An operation consists of an operation code and some payload associated with that operation.
Classes | |
| struct | cfg_payload |
| struct | node_info_payload |
| An interpretation class for the payload for MGMT_OP_INFO_RESP. More... | |
| struct | sel_dest_payload |
| An interpretation class for the payload for MGMT_OP_SEL_DEST. More... | |
Public Types | |
| enum | op_code_t { MGMT_OP_NOP = 0 , MGMT_OP_ADVERTISE = 1 , MGMT_OP_SEL_DEST = 2 , MGMT_OP_RETURN = 3 , MGMT_OP_INFO_REQ = 4 , MGMT_OP_INFO_RESP = 5 , MGMT_OP_CFG_WR_REQ = 6 , MGMT_OP_CFG_RD_REQ = 7 , MGMT_OP_CFG_RD_RESP = 8 } |
| Operation code. More... | |
| using | payload_t = uint64_t |
| The payload for an operation is 48 bits wide. More... | |
Public Member Functions | |
| mgmt_op_t (const op_code_t op_code, const payload_t op_payload=0, const uint8_t ops_pending=0) | |
| mgmt_op_t (const mgmt_op_t &rhs)=default | |
| mgmt_op_t & | operator= (const mgmt_op_t &rhs)=default |
| uint8_t | get_ops_pending () const |
| Get the ops pending for this transaction. More... | |
| op_code_t | get_op_code () const |
| Get the op-code for this transaction. More... | |
| uint64_t | get_op_payload () const |
| Get the payload for this transaction. More... | |
| bool | operator== (const mgmt_op_t &rhs) const |
| Comparison operator (==) More... | |
| std::string | to_string () const |
| Return a string representation of this object. More... | |
| using uhd::rfnoc::chdr::mgmt_op_t::payload_t = uint64_t |
The payload for an operation is 48 bits wide.
Operation code.
Note that a management packet has 8 bits available for op codes. The values for these enums are used to construct the packets, so these values must match the values in rfnoc_chdr_internal_utils.vh.
|
inline |
|
default |
|
inline |
Get the op-code for this transaction.
|
inline |
Get the payload for this transaction.
|
inline |
Get the ops pending for this transaction.
Note that ops_pending is not used by UHD, since it can infer this value from the ops vector in mgmt_hop_t. It is needed only by the CHDR dissector.
|
inline |
Comparison operator (==)
| std::string uhd::rfnoc::chdr::mgmt_op_t::to_string | ( | ) | const |
Return a string representation of this object.