ControllerV2

TODO

ControllerV2 objects in C++ are referenced by the following shared pointer typedef:

typedef std::shared_ptr<rogue::protocols::packetizer::ControllerV2> rogue::protocols::packetizer::ControllerV2Ptr

The class description is shown below:

class ControllerV2 : public rogue::protocols::packetizer::Controller, public rogue::EnableSharedFromThis<rogue::protocols::packetizer::ControllerV2>

Packetizer controller implementation for protocol v2.

Handles packet segmentation/reassembly and optional CRC processing between transport and application endpoints.

Public Functions

ControllerV2(bool enIbCrc, bool enObCrc, bool enSsi, std::shared_ptr<rogue::protocols::packetizer::Transport> tran, std::shared_ptr<rogue::protocols::packetizer::Application> *app)

Constructs a packetizer v2 controller.

This constructor is a low-level C++ allocation path. Prefer create() when shared ownership or Python exposure is required.

Parameters:
  • enIbCrc – Enable inbound CRC verification.

  • enObCrc – Enable outbound CRC generation.

  • enSsi – Enable SSI framing behavior.

  • tranTransport endpoint attached to this controller.

  • app – Pointer to array of application endpoints indexed by destination.

~ControllerV2()

Destroys the controller instance.

virtual void transportRx(std::shared_ptr<rogue::interfaces::stream::Frame> frame)

Processes a frame received at the transport interface.

Parameters:

frameTransport frame to decode and route.

virtual void applicationRx(std::shared_ptr<rogue::interfaces::stream::Frame> frame, uint8_t id)

Processes a frame received from one application endpoint.

Parameters:
  • frameApplication frame to packetize.

  • id – Application/destination identifier.

Public Static Functions

static std::shared_ptr<rogue::protocols::packetizer::ControllerV2> create(bool enIbCrc, bool enObCrc, bool enSsi, std::shared_ptr<rogue::protocols::packetizer::Transport> tran, std::shared_ptr<rogue::protocols::packetizer::Application> *app)

Creates a packetizer v2 controller.

Parameter semantics are identical to the constructor; see ControllerV2() for construction-path 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.

Parameters:
  • enIbCrc – Enable inbound CRC verification.

  • enObCrc – Enable outbound CRC generation.

  • enSsi – Enable SSI framing behavior.

  • tranTransport endpoint attached to this controller.

  • app – Pointer to array of application endpoints indexed by destination.

Returns:

Shared pointer to a new controller instance.