Block
For conceptual usage, see:
Python binding
This C++ class is also exported into Python as rogue.interfaces.memory.Block.
Python API page: - Block
objects in C++ are referenced by the following shared pointer typedef:
-
typedef std::shared_ptr<rogue::interfaces::memory::Block> rogue::interfaces::memory::BlockPtr
[header] Shared pointer alias for
Block.
The class description is shown below:
-
class Block : public rogue::interfaces::memory::Master
[header] Memory interface block device.
Bridges higher-level variable access to lower-level memory transactions.
A
Blockowns staged byte storage for a register region and one or moreVariableobjects that map bit fields into that storage. Typed access methods (setUInt,getString,setFloat, etc.) are not selected directly by users ofBlock; instead, eachVariablebinds to the appropriateBlockmethod pair according to its model (UInt,Int,Bool,String,Float,Double,Fixed,Bytes,PyFunc) and width constraints.Conversion and transport are separated:
Conversion methods (
set*/get*) pack/unpack values between native types and staged bytes using variable metadata (bit offsets, bit widths, byte order, list indexing/stride).Transaction methods (
write,read,startTransaction,checkTransaction) move staged bytes to/from hardware, wait for completion where requested, and handle verify/retry/update behavior.
Typical usage is through
VariableAPIs, which call the matchingBlockconversion method and then issue read/write transactions.Public Functions
-
Block(uint64_t offset, uint32_t size)
[header] [impl] Constructs a block device with a given offset and size.
This constructor is a low-level C++ allocation path. Prefer
create()when shared ownership or Python exposure is required.- Parameters:
offset – Memory offset of the block.
size – Memory size (footprint) of the block.
-
std::string path()
[header] [impl] Returns the path of the block in the device tree.
Exposed as
pathproperty in Python.- Returns:
Full path of the block.
-
std::string mode()
[header] [impl] Returns the block access mode.
Supported modes include
"RW","RO", and"WO". Exposed asmodeproperty in Python.- Returns:
Mode string.
-
bool bulkOpEn()
[header] [impl] Returns whether this block participates in bulk operations.
Exposed as
bulkOpEnproperty in Python.- Returns:
Bulk-operation enable flag.
-
void setEnable(bool enable)
[header] [impl] Sets the block enable state.
Exposed as
setEnable()in Python.- Parameters:
enable – Set to
trueto enable block operations.
-
inline void setLogLevel(uint32_t level)
[header] Sets logging verbosity level for this block.
- Parameters:
level – Logging level value.
-
uint64_t offset()
[header] [impl] Returns the local offset of this block.
Exposed as
offsetproperty in Python.- Returns:
64-bit address offset.
-
uint64_t address()
[header] [impl] Returns the full address of this block.
Includes parent address plus local offset. Exposed as
addressproperty in Python.- Returns:
64-bit address.
-
uint32_t size()
[header] [impl] Returns block size in bytes.
Exposed as
sizeproperty in Python.- Returns:
32-bit block size.
-
void startTransaction(uint32_t type, bool forceWr, bool check, rogue::interfaces::memory::Variable *var, int32_t index = -1)
[header] [impl] Starts a C++ transaction for this block.
- Parameters:
type – Transaction type.
forceWr – Forces write even when block is not stale.
check – If
true, immediately callscheckTransaction()before returning. This waits for completion, surfaces transaction errors, and validates pending verify data.var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
Starts a block transaction from Python.
Exposed internally as
_startTransaction()in Python and wrapped by PyRogue helper functions such aspyrogue.startTransaction().- Parameters:
type – Transaction type.
forceWr – Forces write even when block is not stale.
check – If
true, immediately callscheckTransaction()before returning. This waits for completion, surfaces transaction errors, validates pending verify data, and updates Python Variables when needed.var – Variable associated with transaction, or
Nonefor block scope.index – Variable index for list variables, or
-1for full variable.
-
bool checkTransaction()
[header] [impl] Waits for pending transaction completion and checks the result.
Waits for pending transactions on this Block, surfaces transaction errors, validates pending verify data, and returns whether Variables should be updated.
-
void checkTransactionPy()
[header] [impl] Waits for pending transaction completion and checks the result.
Python version of
checkTransaction(), with variable update calls. Waits for pending transactions, surfaces transaction errors, validates pending verify data, and throws an exception if an error occurred. Exposed internally as_checkTransaction()in Python and wrapped by PyRogue wait/check helper functions.
-
void write(rogue::interfaces::memory::Variable *var, int32_t index = -1)
[header] [impl] Issues a write/verify/wait-and-check sequence from C++.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
void read(rogue::interfaces::memory::Variable *var, int32_t index = -1)
[header] [impl] Issues a read/wait-and-check sequence from C++.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
Adds variables to this block (C++ API).
Exposed as
addVariables()in Python.- Parameters:
variables – Variable list.
-
void addVariablesPy(boost::python::object variables)
[header] [impl] Adds variables to this block (Python API).
- Parameters:
variables – Python list/iterable of variables.
-
std::vector<std::shared_ptr<rogue::interfaces::memory::Variable>> variables()
[header] [impl] Returns the variable list associated with this block (C++ API).
Return a list of variables in the block.
-
boost::python::object variablesPy()
[header] [impl] Returns the variable list associated with this block (Python API).
Return a list of variables in the block.
Exposed as
variablesproperty in Python.
-
void rateTest()
[header] [impl] Runs block rate-test helper for performance testing.
Python: Exposed as
rateTestto python users.
-
void setPyFunc(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets variable data using a Python callback/value.
Used for
PyFuncvariables and Python fallback paths for large-width integer variables where direct scalar conversion is not used. Calls model-specifictoBytes()conversion before writing staged bytes.- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getPyFunc(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets variable data using a Python callback/value conversion.
Used for
PyFuncvariables and Python fallback paths for large-width integer variables where direct scalar conversion is not used. Reads staged bytes and calls model-specificfromBytes()conversion.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object representing the variable value.
-
void setByteArrayPy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets variable data from Python byte-array-like input.
Primary Python path for
Bytesvariables. Also used by some large-width numeric model paths when values are represented as raw bytes.- Parameters:
value – Python source buffer.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getByteArrayPy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets variable data as a Python byte-array-like object.
Primary Python path for
Bytesvariables. Also used by some large-width numeric model paths when values are represented as raw bytes.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing the variable bytes.
-
void setByteArray(const uint8_t *value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets variable data from C++ byte array input.
Primary C++ path for
Bytesvariables and width-overflow fallback path for numeric models that cannot be represented in native scalar types.- Parameters:
value – Source byte buffer.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
void getByteArray(uint8_t *value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets variable data into a C++ byte array buffer.
Primary C++ path for
Bytesvariables and width-overflow fallback path for numeric models that cannot be represented in native scalar types.- Parameters:
value – Destination byte buffer.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
void setUIntPy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets unsigned-integer variable data from Python input.
Python path for
UIntvariables when width is 64 bits or less. Supports scalar values and array/list updates for list variables.- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getUIntPy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets unsigned-integer variable data as Python output.
Python path for
UIntvariables when width is 64 bits or less. Returns either a scalar or an array/list-like object for list variables.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing unsigned-integer value.
-
void setUInt(const uint64_t &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets unsigned-integer variable data from C++ input.
C++ path for
UIntvariables when width is 64 bits or less. WiderUIntvalues are handled through byte-array conversion paths.- Parameters:
value – Source unsigned-integer value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
uint64_t getUInt(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets unsigned-integer variable data as C++ output.
C++ path for
UIntvariables when width is 64 bits or less. WiderUIntvalues are handled through byte-array conversion paths.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Unsigned-integer value.
-
void setIntPy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets signed-integer variable data from Python input.
Python path for
Intvariables when width is 64 bits or less. Supports scalar values and array/list updates for list variables.- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getIntPy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets signed-integer variable data as Python output.
Python path for
Intvariables when width is 64 bits or less. Returns either a scalar or an array/list-like object for list variables.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing signed-integer value.
-
void setInt(const int64_t &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets signed-integer variable data from C++ input.
C++ path for
Intvariables when width is 64 bits or less. WiderIntvalues are handled through byte-array conversion paths.- Parameters:
value – Source signed-integer value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
int64_t getInt(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets signed-integer variable data as C++ output.
C++ path for
Intvariables when width is 64 bits or less. WiderIntvalues are handled through byte-array conversion paths.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Signed-integer value.
-
void setBoolPy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets boolean variable data from Python input.
Python path for
Boolvariables.- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getBoolPy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets boolean variable data as Python output.
Python path for
Boolvariables.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing boolean value.
-
void setBool(const bool &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets boolean variable data from C++ input.
C++ path for
Boolvariables.- Parameters:
value – Source boolean value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
bool getBool(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets boolean variable data as C++ output.
C++ path for
Boolvariables.- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Boolean value.
-
void setStringPy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets string variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getStringPy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets string variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing string value.
-
void setString(const std::string &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets string variable data from C++ input.
- Parameters:
value – Source string value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
std::string getString(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets string variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
String value.
-
void getString(rogue::interfaces::memory::Variable *var, std::string &valueRet, int32_t index)
[header] [impl] Gets string variable data into an output string reference.
- Parameters:
var – Variable associated with the transaction.
valueRet – Destination string reference.
index – Variable index for list variables, or
-1for full variable.
-
inline void getValue(rogue::interfaces::memory::Variable *var, std::string &valueRet, int32_t index)
[header] Alias to
getString(var, valueRet, index).- Parameters:
var – Variable associated with the transaction.
valueRet – Destination string reference.
index – Variable index for list variables, or
-1for full variable.
-
void setFloatPy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets float variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getFloatPy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets float variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing float value.
-
void setFloat(const float &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets float variable data from C++ input.
- Parameters:
value – Source float value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
float getFloat(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets float variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Float value.
-
void setFloat16Py(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets half-precision float variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getFloat16Py(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets half-precision float variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing float value.
-
void setFloat16(const float &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets half-precision float variable data from C++ input.
- Parameters:
value – Source float value (converted to half-precision for storage).
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
float getFloat16(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets half-precision float variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Float value converted from half-precision.
-
void setFloat8Py(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets 8-bit E4M3 float variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getFloat8Py(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets 8-bit E4M3 float variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing float value.
-
void setFloat8(const float &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets 8-bit E4M3 float variable data from C++ input.
- Parameters:
value – Source float value (converted to E4M3 for storage).
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
float getFloat8(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets 8-bit E4M3 float variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Float value converted from E4M3.
-
void setBFloat16Py(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets BFloat16 variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getBFloat16Py(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets BFloat16 variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing float value.
-
void setBFloat16(const float &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets BFloat16 variable data from C++ input.
- Parameters:
value – Source float value (converted to BFloat16 for storage).
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
float getBFloat16(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets BFloat16 variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Float value converted from BFloat16.
-
void setTensorFloat32Py(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets TensorFloat32 variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getTensorFloat32Py(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets TensorFloat32 variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing float value.
-
void setTensorFloat32(const float &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets TensorFloat32 variable data from C++ input.
- Parameters:
value – Source float value (converted to TF32 for storage).
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
float getTensorFloat32(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets TensorFloat32 variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Float value converted from TensorFloat32.
-
void setFloat6Py(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets 6-bit E3M2 float variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getFloat6Py(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets 6-bit E3M2 float variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing float value.
-
void setFloat6(const float &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets 6-bit E3M2 float variable data from C++ input.
- Parameters:
value – Source float value (converted to E3M2 for storage).
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
float getFloat6(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets 6-bit E3M2 float variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Float value converted from E3M2.
-
void setFloat4Py(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets 4-bit E2M1 float variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getFloat4Py(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets 4-bit E2M1 float variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing float value.
-
void setFloat4(const float &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets 4-bit E2M1 float variable data from C++ input.
- Parameters:
value – Source float value (converted to E2M1 for storage).
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
float getFloat4(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets 4-bit E2M1 float variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Float value converted from E2M1.
-
void setDoublePy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets double variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getDoublePy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets double variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing double value.
-
void setDouble(const double &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets double variable data from C++ input.
- Parameters:
value – Source double value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
double getDouble(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets double variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Double value.
-
void setFixedPy(boost::python::object &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets fixed-point variable data from Python input.
- Parameters:
value – Python source value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
boost::python::object getFixedPy(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets fixed-point variable data as Python output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Python object containing fixed-point value.
-
void setFixed(const double &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets fixed-point variable data from C++ input.
- Parameters:
value – Source fixed-point value.
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
double getFixed(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets fixed-point variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Fixed-point value.
-
void setUFixed(const double &value, rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Sets unsigned fixed-point variable data from C++ input.
- Parameters:
value – Source fixed-point value (must be non-negative and within unsigned range).
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
-
double getUFixed(rogue::interfaces::memory::Variable *var, int32_t index)
[header] [impl] Gets unsigned fixed-point variable data as C++ output.
- Parameters:
var – Variable associated with the transaction.
index – Variable index for list variables, or
-1for full variable.
- Returns:
Unsigned fixed-point value.
Public Static Functions
-
static std::shared_ptr<rogue::interfaces::memory::Block> create(uint64_t offset, uint32_t size)
[header] [impl] Creates a memory block.
Exposed to Python as
rogue.interfaces.memory.Block(). This static factory is the preferred construction path when the object is shared across Rogue graph connections or exposed to Python. It returnsstd::shared_ptrownership compatible with Rogue pointer typedefs.- Parameters:
offset – Memory offset of the block.
size – Memory size (footprint) of the block.
- Returns:
Shared pointer to the created block.