libhackrf
HackRF SDR platform library
|
USB transfer information passed to RX or TX callback. More...
#include <hackrf.h>
Data Fields | |
hackrf_device * | device |
HackRF USB device for this transfer. More... | |
uint8_t * | buffer |
transfer data buffer (interleaved 8 bit I/Q samples) More... | |
int | buffer_length |
length of data buffer in bytes More... | |
int | valid_length |
number of buffer bytes that were transferred More... | |
void * | rx_ctx |
User provided RX context. More... | |
void * | tx_ctx |
User provided TX context. More... | |
A callback should treat all these fields as read-only except that a TX callback should write to the data buffer and may write to valid_length to indicate that a smaller number of bytes is to be transmitted.
uint8_t* hackrf_transfer::buffer |
int hackrf_transfer::buffer_length |
hackrf_device* hackrf_transfer::device |
void* hackrf_transfer::rx_ctx |
Not used by the library, but available to transfer callbacks for use. Set along with the transfer callback using hackrf_start_rx or hackrf_start_rx_sweep
void* hackrf_transfer::tx_ctx |
Not used by the library, but available to transfer callbacks for use. Set along with the transfer callback using hackrf_start_tx
int hackrf_transfer::valid_length |