doc: updated buf size limit in examples and tests

This commit is contained in:
Ryan Thompson 2024-07-30 17:39:42 -05:00
commit 71f9cd4e9f
5 changed files with 5 additions and 5 deletions

View file

@ -57,7 +57,7 @@ int16_t *init(struct bladerf *dev, int16_t num_samples, bladerf_format format,
* restricted to multiples of any particular size.
*
* The value for `num_samples` has no major restrictions here, while the
* `buffer_size` below must be a multiple of 1024.
* `buffer_size` below must be a multiple of 2048.
*/
int16_t *samples;

View file

@ -67,7 +67,7 @@ static int init_sync(struct bladerf *dev)
* received.
*/
const unsigned int num_buffers = 16;
const unsigned int buffer_size = 8192; /* Must be a multiple of 1024 */
const unsigned int buffer_size = 8192; /* Must be a multiple of 2048 */
const unsigned int num_transfers = 8;
const unsigned int timeout_ms = 3500;

View file

@ -94,7 +94,7 @@ int16_t *init(struct bladerf *dev, int16_t num_samples)
* restricted to multiples of any particular size.
*
* The value for `num_samples` has no major restrictions here, while the
* `buffer_size` below must be a multiple of 1024.
* `buffer_size` below must be a multiple of 2048.
*/
int16_t *samples;

View file

@ -57,7 +57,7 @@ int16_t *init(struct bladerf *dev, int16_t num_samples, bladerf_format format,
* restricted to multiples of any particular size.
*
* The value for `num_samples` has no major restrictions here, while the
* `buffer_size` below must be a multiple of 1024.
* `buffer_size` below must be a multiple of 2048.
*/
int16_t *samples;

View file

@ -90,7 +90,7 @@ void print_help() {
printf(" -e, --meta Enable META test\n");
printf(" -s, --samplerate <rate> Specify the sample rate\n");
printf(" -n, --num-samples <count> Specify the number of samples\n");
printf(" -b, --buffer-size <size> Specify the buffer size (multiple of 1024)\n");
printf(" -b, --buffer-size <size> Specify the buffer size (multiple of 2048)\n");
printf(" -h, --help Display this help message\n");
printf("\n");