OsCommandMemorySlave

class pyrogue.interfaces.OsCommandMemorySlave(*, minWidth=4, maxSize=1024)[source]

Memory slave that maps transactions to Python functions via address-based commands.

Parameters:
  • minWidth (int, default: 4) – Minimum access width in bytes.

  • maxSize (int, default: 1024) – Maximum transaction size in bytes.

command(addr, base)[source]

Decorator to register a function as a command at the given address.

Parameters:
  • addr (int) – Memory-mapped address for this command.

  • base (Model) – Object with fromBytes/toBytes for argument serialization.

Returns:

Decorator that registers the wrapped function.

Return type:

Callable[[Callable[..., Any]], Callable[..., Any]]

setName((Slave)arg1, (str)arg2) None :
C++ signature :

void setName(rogue::interfaces::memory::Slave {lvalue},std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)