Function soapysdr_sys::SoapySDRDevice_readStream
source · pub unsafe extern "C" fn SoapySDRDevice_readStream(
device: *mut SoapySDRDevice,
stream: *mut SoapySDRStream,
buffs: *const *mut c_void,
numElems: usize,
flags: *mut c_int,
timeNs: *mut c_longlong,
timeoutUs: c_long
) -> c_int
Expand description
Read elements from a stream for reception. This is a multi-channel call, and buffs should be an array of void *, where each pointer will be filled with data from a different channel.
Client code compatibility: The readStream() call should be well defined at all times, including prior to activation and after deactivation. When inactive, readStream() should implement the timeout specified by the caller and return SOAPY_SDR_TIMEOUT.
\param device a pointer to a device instance \param stream the opaque pointer to a stream handle \param buffs an array of void* buffers num chans in size \param numElems the number of elements in each buffer \param [out] flags optional flag indicators about the result \param [out] timeNs the buffer’s timestamp in nanoseconds \param timeoutUs the timeout in microseconds \return the number of elements read per buffer or error code