libSDRForge
Loading...
Searching...
No Matches
sdrforge.live_transport_server.IqCapture Class Reference

Record bounded IQ samples without blocking acquisition. More...

Public Member Functions

None __init__ (self, Path directory)
 Initialize controller state and resources.
dict[str, object] start (self, int duration_seconds, str filename, *, int frequency_hz, int sample_rate_hz, float|None gain_db)
 Start the capture or acquisition worker.
None observe (self, IqBlock block)
 Queue samples from the current acquisition block.
None stop (self)
 Stop the active worker or capture.
dict[str, object] cancel (self)
 Cancel the current capture.
dict[str, object] status (self)
 Return a snapshot of capture state.

Public Attributes

 directory = directory

Protected Member Functions

None _finish_locked (self, str reason)
None _write (self, Path path)

Protected Attributes

 _lock = threading.Lock()
queue.Queue[bytes] _queue = queue.Queue(maxsize=64)
bool _active = False
dict _status = {"state": "idle"}
int _remaining = 0
float _deadline = 0.0
threading.Thread|None _thread = None

Detailed Description

Record bounded IQ samples without blocking acquisition.

Constructor & Destructor Documentation

◆ __init__()

None sdrforge.live_transport_server.IqCapture.__init__ ( self,
Path directory )

Initialize controller state and resources.

Parameters
selfInstance.
directoryCapture output directory.

Member Function Documentation

◆ _finish_locked()

None sdrforge.live_transport_server.IqCapture._finish_locked ( self,
str reason )
protected

◆ _write()

None sdrforge.live_transport_server.IqCapture._write ( self,
Path path )
protected

◆ cancel()

dict[str, object] sdrforge.live_transport_server.IqCapture.cancel ( self)

Cancel the current capture.

Parameters
selfInstance.
Returns
Requested result or process exit status.

◆ observe()

None sdrforge.live_transport_server.IqCapture.observe ( self,
IqBlock block )

Queue samples from the current acquisition block.

Parameters
selfInstance.
blockAcquired IQ sample block.

◆ start()

dict[str, object] sdrforge.live_transport_server.IqCapture.start ( self,
int duration_seconds,
str filename,
* ,
int frequency_hz,
int sample_rate_hz,
float | None gain_db )

Start the capture or acquisition worker.

Parameters
selfInstance.
duration_secondsRequested recording duration in seconds.
filenameSimple IQ output filename.
frequency_hzCenter or initial tuning frequency in Hz.
sample_rate_hzAcquisition sample rate in Hz.
gain_dbRF gain in dB, or None for automatic gain.
Returns
Requested result or process exit status.

◆ status()

dict[str, object] sdrforge.live_transport_server.IqCapture.status ( self)

Return a snapshot of capture state.

Parameters
selfInstance.
Returns
Requested result or process exit status.

◆ stop()

None sdrforge.live_transport_server.IqCapture.stop ( self)

Stop the active worker or capture.

Parameters
selfInstance.

Member Data Documentation

◆ _active

bool sdrforge.live_transport_server.IqCapture._active = False
protected

◆ _deadline

float sdrforge.live_transport_server.IqCapture._deadline = 0.0
protected

◆ _lock

sdrforge.live_transport_server.IqCapture._lock = threading.Lock()
protected

◆ _queue

queue.Queue[bytes] sdrforge.live_transport_server.IqCapture._queue = queue.Queue(maxsize=64)
protected

◆ _remaining

int sdrforge.live_transport_server.IqCapture._remaining = 0
protected

◆ _status

sdrforge.live_transport_server.IqCapture._status = {"state": "idle"}
protected

◆ _thread

threading.Thread | None sdrforge.live_transport_server.IqCapture._thread = None
protected

◆ directory

sdrforge.live_transport_server.IqCapture.directory = directory

The documentation for this class was generated from the following file: