scc 2026.07
SystemC components library
eth::eth_packet_payload Struct Reference
Inheritance diagram for eth::eth_packet_payload:
Collaboration diagram for eth::eth_packet_payload:

Public Member Functions

 eth_packet_payload (tlm::nw::tlm_base_mm_interface *mm)
const sc_core::sc_time & get_sender_clk_period () const
void set_sender_clk_period (sc_core::sc_time period)
Public Member Functions inherited from tlm::nw::tlm_network_payload< ETH >
 tlm_network_payload ()
 Default constructor.
virtual ~tlm_network_payload ()=default
void deep_copy_from (const tlm_network_payload &other)
 Non-virtual deep-copying of the object.
ETH get_command () const
 Gets the command from the payload.
void set_command (const ETH command)
 Sets the command in the payload.
std::vector< uint8_t > const & get_data () const
 Gets the data from the payload.
void set_data (std::vector< uint8_t > const &value)
 Sets the data in the payload.
bool is_response_ok () const
 Checks if the response status is OK.
bool is_response_error () const
 Checks if the response status is an error.
tlm_response_status get_response_status () const
 Gets the response status from the payload.
void set_response_status (const tlm_response_status response_status)
 Sets the response status in the payload.
std::string get_response_string () const
 Gets the response status as a string.
Public Member Functions inherited from tlm::nw::tlm_network_payload_base
 tlm_network_payload_base ()
 Default constructor.
 tlm_network_payload_base (tlm_base_mm_interface *mm)
 Constructor with memory management interface.
virtual ~tlm_network_payload_base ()
void reset ()
 Constructor with memory management interface.
void acquire ()
 Acquires a reference to the payload.
void release ()
 Releases a reference to the payload.
int get_ref_count () const
 Gets the reference count of the payload.
void set_mm (tlm_base_mm_interface *mm)
bool has_mm () const
void copy_extensions_from (const tlm_network_payload_base &other)
void update_extensions_from (const tlm_network_payload_base &other)
void free_all_extensions ()
template<typename T>
T * set_extension (T *ext)
tlm_extension_base * set_extension (unsigned int index, tlm_extension_base *ext)
template<typename T>
T * set_auto_extension (T *ext)
tlm_extension_base * set_auto_extension (unsigned int index, tlm_extension_base *ext)
template<typename T>
void get_extension (T *&ext) const
template<typename T>
T * get_extension () const
tlm_extension_base * get_extension (unsigned int index) const
template<typename T>
void clear_extension (const T *ext)
template<typename T>
void clear_extension ()
template<typename T>
void release_extension (T *ext)
template<typename T>
void release_extension ()
size_t get_extension_count ()
void resize_extensions ()

Public Attributes

const uint64_t unique_id {get_id()}

Additional Inherited Members

Static Public Member Functions inherited from tlm::nw::tlm_network_payload< ETH >
static tlm_network_payload< ETH > * create ()
 Creates a new instance of the tlm_network_payload using a thread-local memory manager.
Protected Member Functions inherited from tlm::nw::tlm_network_payload< ETH >
tlm_network_payload< ETH > & operator= (const tlm_network_payload< ETH > &x)
Protected Attributes inherited from tlm::nw::tlm_network_payload< ETH >
ETH m_command
std::vector< uint8_t > m_data
tlm_response_status m_response_status

Detailed Description

Definition at line 75 of file eth_tlm.h.

Constructor & Destructor Documentation

◆ eth_packet_payload() [1/2]

eth::eth_packet_payload::eth_packet_payload ( )
inline

Definition at line 76 of file eth_tlm.h.

◆ eth_packet_payload() [2/2]

eth::eth_packet_payload::eth_packet_payload ( tlm::nw::tlm_base_mm_interface * mm)
inlineexplicit

Definition at line 78 of file eth_tlm.h.

Member Function Documentation

◆ get_sender_clk_period()

const sc_core::sc_time & eth::eth_packet_payload::get_sender_clk_period ( ) const
inline

Definition at line 83 of file eth_tlm.h.

◆ set_sender_clk_period()

void eth::eth_packet_payload::set_sender_clk_period ( sc_core::sc_time period)
inline

Definition at line 85 of file eth_tlm.h.

Member Data Documentation

◆ unique_id

const uint64_t eth::eth_packet_payload::unique_id {get_id()}

Definition at line 87 of file eth_tlm.h.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/interfaces/eth/eth_tlm.h