Sync config issues
Posted: Thu Aug 21, 2014 6:02 am
Hi,
I'm trying to use the synchronous tx / rx interface in a C program. Thus far I can set up all device configuration, and every setting checks out when I test it in the command line interface.
However, when setting up the synchronous interface, it doesn't seem to actually write anything. Here's a snippet from my sync_config function:
where my stream struct is defined as:
and initialized based on earlier settings. Printing them to the stdio gives the correct values, but when I run tx (or rx) in bladeRF-cli to show the config settings on the device, it just prints out the default settings.
If I'm not mistaken, the bladeRF-cli uses the async interface, which now that I mention it is why I'm not seeing a difference ... >.<
Is there any suggestion to test whether I actually wrote the correct sync config settings to the device?
Any input will be hugely appreciated.
I'm trying to use the synchronous tx / rx interface in a C program. Thus far I can set up all device configuration, and every setting checks out when I test it in the command line interface.
However, when setting up the synchronous interface, it doesn't seem to actually write anything. Here's a snippet from my sync_config function:
Code: Select all
status = bladerf_sync_config( dev,
stream->module,
BLADERF_FORMAT_SC16_Q11,
stream->num_buffers,
stream->buffer_size,
stream->num_transfers,
stream->stream_timeout);
if (status!=0){
fprintf(stderr, "%s %s\n", "Failed to configure sync interface:", bladerf_strerror(status));
bladerf_close(dev);
return status;
}
printf("DONE\n");
Code: Select all
struct bladerf_stream{
bladerf_module module;
size_t num_buffers;
size_t buffer_size;
size_t num_transfers;
int32_t stream_timeout;
};
If I'm not mistaken, the bladeRF-cli uses the async interface, which now that I mention it is why I'm not seeing a difference ... >.<
Is there any suggestion to test whether I actually wrote the correct sync config settings to the device?
Any input will be hugely appreciated.