Command struct for configuration and control of streaming:
A stream command defines how the device sends samples to the host. Streaming is controlled by submitting a stream command to the rx dsp. Granular control over what the device streams to the host can be achieved through submission of multiple (carefully-crafted) commands.
The mode parameter controls how streaming is issued to the device:
- "Start continuous" tells the device to stream samples indefinitely.
- "Stop continuous" tells the device to end continuous streaming.
- "Num samps and done" tells the device to stream num samps and to not expect a future stream command for contiguous samples.
- "Num samps and more" tells the device to stream num samps and to expect a future stream command for contiguous samples.
The stream now parameter controls when the stream begins. When true, the device will begin streaming ASAP. When false, the device will begin streaming at a time specified by time_spec.
Note: When a radio runs at multiple samples per clock cycle, it may not be possible to request samples at any given time, and num_samps
might have to be an integer multiple of SPC.