UartMemory

For conceptual usage, see:

Implementation

This Python API is implemented directly in PyRogue.

class pyrogue.protocols.UartMemory(device, baud, timeout=1, **kwargs)[source]

UART-based memory slave interface for register access over serial.

Implements a simple text-based protocol for reading and writing 32-bit register values over a serial UART connection.

Parameters:
  • device (str) – Serial device path (for example /dev/ttyUSB0 or COM1).

  • baud (int) – Baud rate for serial communication.

  • timeout (float, default: 1) – Read timeout in seconds.

  • **kwargs (Any) – Additional keyword arguments passed to serial.Serial.

readline()[source]

Read a line from the serial port until newline or carriage return.

Returns:

Line read from the serial port (empty on timeout).

Return type:

str

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> >)