#include <uhd/rfnoc/chdr_types.hpp>
◆ ctrl_payload() [1/3]
uhd::rfnoc::chdr::ctrl_payload::ctrl_payload |
( |
| ) |
|
|
default |
◆ ctrl_payload() [2/3]
uhd::rfnoc::chdr::ctrl_payload::ctrl_payload |
( |
const ctrl_payload & |
rhs | ) |
|
|
default |
◆ ctrl_payload() [3/3]
uhd::rfnoc::chdr::ctrl_payload::ctrl_payload |
( |
ctrl_payload && |
rhs | ) |
|
|
default |
◆ deserialize() [1/2]
void uhd::rfnoc::chdr::ctrl_payload::deserialize |
( |
const uint64_t * |
buff, |
|
|
size_t |
buff_size, |
|
|
const std::function< uint64_t(uint64_t)> & |
conv_byte_order |
|
) |
| |
Deserialize the payload from a uint64_t buffer
- Parameters
-
buff | Buffer to deserialize the payload from |
buff_size | Number of elements in the buffer |
conv_byte_order | Byte order converter function (buffer to host endianness) |
◆ deserialize() [2/2]
template<endianness_t endianness>
void uhd::rfnoc::chdr::ctrl_payload::deserialize |
( |
const uint64_t * |
buff, |
|
|
size_t |
buff_size |
|
) |
| |
|
inline |
Deserialize the payload from a uint64_t buffer (no conversion function)
- Parameters
-
buff | Buffer to deserialize the payload from |
buff_size | Number of elements in the buffer |
◆ get_length()
size_t uhd::rfnoc::chdr::ctrl_payload::get_length |
( |
| ) |
const |
Get the serialized size of this payload in 64 bit words.
◆ has_timestamp()
bool uhd::rfnoc::chdr::ctrl_payload::has_timestamp |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool uhd::rfnoc::chdr::ctrl_payload::operator!= |
( |
const ctrl_payload & |
rhs | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
bool uhd::rfnoc::chdr::ctrl_payload::operator== |
( |
const ctrl_payload & |
rhs | ) |
const |
◆ populate_header()
void uhd::rfnoc::chdr::ctrl_payload::populate_header |
( |
chdr_header & |
header | ) |
const |
Populate the header for this type of packet.
◆ serialize() [1/2]
size_t uhd::rfnoc::chdr::ctrl_payload::serialize |
( |
uint64_t * |
buff, |
|
|
size_t |
max_size_bytes, |
|
|
const std::function< uint64_t(uint64_t)> & |
conv_byte_order |
|
) |
| const |
Serialize the payload to a uint64_t buffer.
◆ serialize() [2/2]
template<endianness_t endianness>
size_t uhd::rfnoc::chdr::ctrl_payload::serialize |
( |
uint64_t * |
buff, |
|
|
size_t |
max_size_bytes |
|
) |
| const |
|
inline |
Serialize the payload to a uint64_t buffer (no conversion function)
◆ to_string()
std::string uhd::rfnoc::chdr::ctrl_payload::to_string |
( |
| ) |
const |
Return a string representation of this object.
◆ address
uint32_t uhd::rfnoc::chdr::ctrl_payload::address = 0 |
Address for transaction (20 bits)
◆ byte_enable
uint8_t uhd::rfnoc::chdr::ctrl_payload::byte_enable = 0xF |
Byte-enable mask for transaction (4 bits)
◆ data_vtr
std::vector<uint32_t> uhd::rfnoc::chdr::ctrl_payload::data_vtr = {0} |
Data for transaction (vector of 32 bits)
◆ dst_port
uint16_t uhd::rfnoc::chdr::ctrl_payload::dst_port = 0 |
Destination port for transaction (10 bits)
◆ is_ack
bool uhd::rfnoc::chdr::ctrl_payload::is_ack = false |
Is Acknowledgment Flag (1 bit)
◆ op_code
◆ seq_num
uint8_t uhd::rfnoc::chdr::ctrl_payload::seq_num = 0 |
◆ src_epid
uint16_t uhd::rfnoc::chdr::ctrl_payload::src_epid = 0 |
Source endpoint ID of transaction (16 bits)
◆ src_port
uint16_t uhd::rfnoc::chdr::ctrl_payload::src_port = 0 |
Source port for transaction (10 bits)
◆ status
Transaction status (4 bits)
◆ timestamp
boost::optional<uint64_t> uhd::rfnoc::chdr::ctrl_payload::timestamp = boost::none |
Has Time Flag (1 bit) and timestamp (64 bits)
The documentation for this class was generated from the following file: