This shows you the differences between two versions of the page.
| logicpython:cubloc_api:hread [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:hread [2026/04/10 02:37] (current) – removed mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== HRead ====== | ||
| - | |||
| - | Read data from the simulated SRAM heap. | ||
| - | |||
| - | ===== Syntax ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import HRead | ||
| - | |||
| - | HRead( address: int, byteLength: int, returnType: type[int] | type[float] | type[bytes] | type[bytearray] = int, ) | ||
| - | </ | ||
| - | |||
| - | ===== Parameters ===== | ||
| - | |||
| - | * **address**: | ||
| - | * **byteLength**: | ||
| - | * **returnType**: | ||
| - | |||
| - | ===== Return Value ===== | ||
| - | |||
| - | Returns the heap data decoded according to '' | ||
| - | |||
| - | ===== Exceptions ===== | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | ===== Example ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import HRead | ||
| - | |||
| - | # Example usage | ||
| - | result = HRead(1, 1, int) | ||
| - | print(result) | ||
| - | </ | ||
| - | |||
| - | ===== Related APIs ===== | ||
| - | |||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||