|
rogue
|
RSSI header container and codec. More...
#include <Header.h>
Public Member Functions | |
| Header (std::shared_ptr< rogue::interfaces::stream::Frame > frame) | |
| Constructs a header wrapper for an existing frame. | |
| ~Header () | |
| Destroys the header wrapper. | |
| std::shared_ptr< rogue::interfaces::stream::Frame > | getFrame () |
| Returns the underlying frame. | |
| bool | verify () |
| Verifies header checksum and initializes cached fields. | |
| void | update () |
| Encodes current field values into the frame and updates checksum. | |
| struct timeval & | getTime () |
| Returns the last transmit timestamp. | |
| uint32_t | count () |
| Returns the transmit count. | |
| void | rstTime () |
| Resets transmit timestamp to the current time. | |
| std::string | dump () |
| Returns a formatted string of header contents. | |
Static Public Member Functions | |
| static std::shared_ptr< rogue::protocols::rssi::Header > | create (std::shared_ptr< rogue::interfaces::stream::Frame > frame) |
| Creates a header wrapper for an existing frame. | |
Public Attributes | |
| bool | syn |
| SYN flag (synchronization/header-extension present). | |
| bool | ack |
| ACK flag. | |
| bool | rst |
| RST flag. | |
| bool | nul |
| NUL/keepalive flag. | |
| bool | busy |
| Busy flag. | |
| uint8_t | sequence |
| Sequence number field. | |
| uint8_t | acknowledge |
| Acknowledge number field. | |
| uint8_t | version |
| Protocol version (SYN headers only). | |
| bool | chk |
| CHK capability flag (SYN headers only). | |
| uint8_t | maxOutstandingSegments |
| Maximum outstanding segments (SYN headers only). | |
| uint16_t | maxSegmentSize |
| Maximum segment size (SYN headers only). | |
| uint16_t | retransmissionTimeout |
| Retransmission timeout (SYN headers only). | |
| uint16_t | cumulativeAckTimeout |
| Cumulative ACK timeout (SYN headers only). | |
| uint16_t | nullTimeout |
| NULL/keepalive timeout (SYN headers only). | |
| uint8_t | maxRetransmissions |
| Maximum retransmissions (SYN headers only). | |
| uint8_t | maxCumulativeAck |
| Maximum cumulative ACK count (SYN headers only). | |
| uint8_t | timeoutUnit |
| Timeout unit field (SYN headers only). | |
| uint32_t | connectionId |
| Connection ID (SYN headers only). | |
Static Public Attributes | |
| static const int32_t | HeaderSize = 8 |
| Encoded RSSI non-SYN header size in bytes. | |
| static const uint32_t | SynSize = 24 |
| Encoded RSSI SYN header size in bytes. | |
RSSI header container and codec.
Wraps a stream frame and provides helpers for encoding, decoding, and validating RSSI header fields.
Field model:
|
explicit |
Constructs a header wrapper for an existing frame.
Creator.
This constructor is a low-level C++ allocation path. Prefer create() when shared ownership or Python exposure is required.
| frame | Frame containing RSSI header bytes. |
Definition at line 78 of file Header.cpp.
| rogue::protocols::rssi::Header::~Header | ( | ) |
| uint32_t rogue::protocols::rssi::Header::count | ( | ) |
Returns the transmit count.
Get Count.
Definition at line 213 of file Header.cpp.
|
static |
Creates a header wrapper for an existing frame.
Create.
Parameter semantics are identical to the constructor; see Header() for wrapper-construction details. This static factory is the preferred construction path when the object is shared across Rogue graph connections or exposed to Python. It returns std::shared_ptr ownership compatible with Rogue pointer typedefs.
| frame | Frame containing RSSI header bytes. |
Definition at line 72 of file Header.cpp.
| std::string rogue::protocols::rssi::Header::dump | ( | ) |
Returns a formatted string of header contents.
Dump message.
Definition at line 223 of file Header.cpp.
| rogue::interfaces::stream::FramePtr rogue::protocols::rssi::Header::getFrame | ( | ) |
Returns the underlying frame.
Get Frame.
Definition at line 106 of file Header.cpp.
| struct timeval & rogue::protocols::rssi::Header::getTime | ( | ) |
Returns the last transmit timestamp.
Get time.
Definition at line 208 of file Header.cpp.
| void rogue::protocols::rssi::Header::rstTime | ( | ) |
Resets transmit timestamp to the current time.
Reset timer.
Definition at line 218 of file Header.cpp.
| void rogue::protocols::rssi::Header::update | ( | ) |
Encodes current field values into the frame and updates checksum.
Update checksum, set tx time and increment tx count.
Definition at line 154 of file Header.cpp.
| bool rogue::protocols::rssi::Header::verify | ( | ) |
Verifies header checksum and initializes cached fields.
Verify header contents.
Definition at line 111 of file Header.cpp.
| uint8_t rogue::protocols::rssi::Header::acknowledge |
| bool rogue::protocols::rssi::Header::chk |
| uint32_t rogue::protocols::rssi::Header::connectionId |
| uint16_t rogue::protocols::rssi::Header::cumulativeAckTimeout |
|
static |
| uint8_t rogue::protocols::rssi::Header::maxCumulativeAck |
| uint8_t rogue::protocols::rssi::Header::maxOutstandingSegments |
| uint8_t rogue::protocols::rssi::Header::maxRetransmissions |
| uint16_t rogue::protocols::rssi::Header::maxSegmentSize |
| bool rogue::protocols::rssi::Header::nul |
| uint16_t rogue::protocols::rssi::Header::nullTimeout |
| uint16_t rogue::protocols::rssi::Header::retransmissionTimeout |
| uint8_t rogue::protocols::rssi::Header::sequence |
| bool rogue::protocols::rssi::Header::syn |
|
static |
| uint8_t rogue::protocols::rssi::Header::timeoutUnit |
| uint8_t rogue::protocols::rssi::Header::version |