#include <uhd/rfnoc/chdr_types.hpp>
Public Member Functions | |
chdr_header ()=default | |
chdr_header (const chdr_header &rhs)=default | |
chdr_header (chdr_header &&rhs)=default | |
chdr_header (uint64_t flat_hdr) | |
Unpack the header from a uint64_t. More... | |
uint8_t | get_vc () const |
Get the virtual channel field (6 bits) More... | |
void | set_vc (uint8_t vc) |
Set the virtual channel field (6 bits) More... | |
bool | get_eob () const |
Get the end-of-burst flag (1 bit) More... | |
void | set_eob (bool eob) |
Set the end-of-burst flag (1 bit) More... | |
bool | get_eov () const |
Get the end-of-vector flag (1 bit) More... | |
void | set_eov (bool eov) |
Set the end-of-vector flag (1 bit) More... | |
packet_type_t | get_pkt_type () const |
Get the packet type field (3 bits) More... | |
void | set_pkt_type (packet_type_t pkt_type) |
Set the packet type field (3 bits) More... | |
uint8_t | get_num_mdata () const |
Get number of metadata words field (5 bits) More... | |
void | set_num_mdata (uint8_t num_mdata) |
Set number of metadata words field (5 bits) More... | |
uint16_t | get_seq_num () const |
Get the sequence number field (16 bits) More... | |
void | set_seq_num (uint16_t seq_num) |
Set the sequence number field (16 bits) More... | |
uint16_t | get_length () const |
Get the packet length field (16 bits) More... | |
void | set_length (uint16_t length) |
Set the packet length field (16 bits) More... | |
uint16_t | get_dst_epid () const |
Get the destination EPID field (16 bits) More... | |
void | set_dst_epid (uint16_t dst_epid) |
Set the destination EPID field (16 bits) More... | |
uint64_t | pack () const |
Pack the header into a uint64_t. More... | |
operator uint64_t () const | |
Pack the header into a uint64_t as an implicit cast. More... | |
bool | operator== (const chdr_header &rhs) const |
Comparison operator (==) More... | |
bool | operator!= (const chdr_header &rhs) const |
Comparison operator (!=) More... | |
const chdr_header & | operator= (const chdr_header &rhs) |
Assignment operator (=) from a chdr_header. More... | |
const chdr_header & | operator= (const uint64_t &rhs) |
Assignment operator (=) from a uint64_t. More... | |
const std::string | to_string () const |
Return a string representation of this object. More... | |
|
default |
|
default |
|
default |
|
inline |
Unpack the header from a uint64_t.
|
inline |
Get the destination EPID field (16 bits)
|
inline |
Get the end-of-burst flag (1 bit)
|
inline |
Get the end-of-vector flag (1 bit)
|
inline |
Get the packet length field (16 bits)
|
inline |
Get number of metadata words field (5 bits)
|
inline |
Get the packet type field (3 bits)
|
inline |
Get the sequence number field (16 bits)
|
inline |
Get the virtual channel field (6 bits)
|
inline |
Pack the header into a uint64_t as an implicit cast.
|
inline |
Comparison operator (!=)
|
inline |
Assignment operator (=) from a chdr_header.
|
inline |
Assignment operator (=) from a uint64_t.
|
inline |
Comparison operator (==)
|
inline |
Pack the header into a uint64_t.
|
inline |
Set the destination EPID field (16 bits)
|
inline |
Set the end-of-burst flag (1 bit)
|
inline |
Set the end-of-vector flag (1 bit)
|
inline |
Set the packet length field (16 bits)
|
inline |
Set number of metadata words field (5 bits)
|
inline |
Set the packet type field (3 bits)
|
inline |
Set the sequence number field (16 bits)
|
inline |
Set the virtual channel field (6 bits)
|
inline |
Return a string representation of this object.