Record bounded IQ samples without blocking acquisition.
More...
|
| 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.
|
Record bounded IQ samples without blocking acquisition.
◆ __init__()
| None sdrforge.live_transport_server.IqCapture.__init__ |
( |
| self, |
|
|
Path | directory ) |
Initialize controller state and resources.
- Parameters
-
| self | Instance. |
| directory | Capture output directory. |
◆ _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
-
- 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
-
| self | Instance. |
| block | Acquired 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
-
| self | Instance. |
| duration_seconds | Requested recording duration in seconds. |
| filename | Simple IQ output filename. |
| frequency_hz | Center or initial tuning frequency in Hz. |
| sample_rate_hz | Acquisition sample rate in Hz. |
| gain_db | RF 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
-
- Returns
- Requested result or process exit status.
◆ stop()
| None sdrforge.live_transport_server.IqCapture.stop |
( |
| self | ) |
|
Stop the active worker or capture.
- Parameters
-
◆ _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: