A class that represents a single management operation. More...
#include <uhd/rfnoc/chdr_types.hpp>
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 } |
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 | |
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... | |
const std::string | to_string () const |
Return a string representation of this object. More... | |
A class that represents a single management operation.
using uhd::rfnoc::chdr::mgmt_op_t::payload_t = uint64_t |
The payload for an operation is 48 bits wide.
|
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.
|
inline |
Comparison operator (==)
const std::string uhd::rfnoc::chdr::mgmt_op_t::to_string | ( | ) | const |
Return a string representation of this object.