SideBandSim

For conceptual usage, see:

Implementation

This Python API is implemented directly in PyRogue.

class pyrogue.interfaces.simulation.SideBandSim(host, port)[source]

Sideband simulator using paired ZMQ sockets.

Parameters:
  • host (str) – Hostname or IP address.

  • port (int) – Base sideband port.

setRecvCb(cbFunc)[source]

Set the callback for received sideband data.

Parameters:

cbFunc (Callable[[int | None, int | None], Any]) – Callback of the form cbFunc(opCode, remData).

Return type:

None

send(opCode=None, remData=None)[source]

Send opCode and/or remData on the sideband channel.

Parameters:
  • opCode (int | None, default: None) – Operation code to send.

  • remData (int | None, default: None) – Remote data byte to send.

Return type:

None