pothosware/SoapyHackRF

Fill in the direct buffer access calls

guruofquality opened this issue · 1 comments

SoapySDR's direct buffer access API allows users to claim and release device buffers. Vs the stream API where the user provides a buffer that is copy-and-or-converted into.

Because the hackrf rx and tx streaming manages a queue of buffers, the direct access API calls could be easily implemented to acquire and release these buffers using the existing head and tail pointers for the fifo. The existing read/write stream call would be implemented on top of this -- just use the direct access calls rather than the condition variable.

While not strictly necessary to have this implemented. It adds a sense of completeness to the driver, stands as an additional example of how this feature can be implemented, and a few users may enjoy some overhead saved if they choose to use the direct access API.