Cmd
rogue::protocols::srp::Cmd transmits lightweight opcode/context stream
commands for fire-and-forget control paths. It is not an SRP register protocol,
but remains in the srp namespace for API compatibility.
For conceptual guidance, see SRP Protocol Command.
Python binding
This C++ class is also exported into Python as rogue.protocols.srp.Cmd.
Python API page: - Cmd
objects in C++ are referenced by the following shared pointer typedef:
The class description is shown below:
-
class Cmd : public rogue::interfaces::stream::Master
[header] Lightweight command protocol transmitter for opcode/context messages.
Cmdimplements a small command protocol that carries only an opcode and a context value. It is typically used for lightweight hardware commands such as triggers, strobes, and other fire-and-forget control events.This protocol is distinct from SRP and does not model request/response memory transactions. In common usage, frames sent by
Cmddo not require a response path.Historical note: the class resides in
rogue::protocols::srpfor API compatibility with existing applications. Although that namespace placement is not semantically ideal, changing it would break downstream code.Public Functions
Public Static Functions
-
static std::shared_ptr<rogue::protocols::srp::Cmd> create()
[header] [impl] Creates an SRP command interface instance.
Class creation.
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_ptrownership compatible with Rogue pointer typedefs.Company : SLAC National Accelerator Laboratory
Description : CMD protocol bridge, 0
This file is part of the rogue software platform. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of the rogue software platform, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the LICENSE.txt file.
- Returns:
Shared pointer to the created
Cmd.
-
static std::shared_ptr<rogue::protocols::srp::Cmd> create()