From 71f9cd4e9f019cf0532bb2156262e409d12353c2 Mon Sep 17 00:00:00 2001 From: Ryan Thompson Date: Tue, 30 Jul 2024 17:39:42 -0500 Subject: [PATCH] doc: updated buf size limit in examples and tests --- host/libraries/libbladeRF/doc/examples/sync_rx_meta.c | 2 +- host/libraries/libbladeRF/doc/examples/sync_rxtx.c | 2 +- host/libraries/libbladeRF/doc/examples/sync_tx_meta.c | 2 +- host/libraries/libbladeRF_test/test_rx_meta/src/main.c | 2 +- host/libraries/libbladeRF_test/test_streaming/src/main.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/host/libraries/libbladeRF/doc/examples/sync_rx_meta.c b/host/libraries/libbladeRF/doc/examples/sync_rx_meta.c index 40081124..1799a257 100644 --- a/host/libraries/libbladeRF/doc/examples/sync_rx_meta.c +++ b/host/libraries/libbladeRF/doc/examples/sync_rx_meta.c @@ -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; diff --git a/host/libraries/libbladeRF/doc/examples/sync_rxtx.c b/host/libraries/libbladeRF/doc/examples/sync_rxtx.c index 69b65f81..c92a6ff1 100644 --- a/host/libraries/libbladeRF/doc/examples/sync_rxtx.c +++ b/host/libraries/libbladeRF/doc/examples/sync_rxtx.c @@ -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; diff --git a/host/libraries/libbladeRF/doc/examples/sync_tx_meta.c b/host/libraries/libbladeRF/doc/examples/sync_tx_meta.c index 6a15db56..19b59252 100644 --- a/host/libraries/libbladeRF/doc/examples/sync_tx_meta.c +++ b/host/libraries/libbladeRF/doc/examples/sync_tx_meta.c @@ -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; diff --git a/host/libraries/libbladeRF_test/test_rx_meta/src/main.c b/host/libraries/libbladeRF_test/test_rx_meta/src/main.c index 629c1921..f7238773 100644 --- a/host/libraries/libbladeRF_test/test_rx_meta/src/main.c +++ b/host/libraries/libbladeRF_test/test_rx_meta/src/main.c @@ -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; diff --git a/host/libraries/libbladeRF_test/test_streaming/src/main.c b/host/libraries/libbladeRF_test/test_streaming/src/main.c index e92c17f5..76f598de 100644 --- a/host/libraries/libbladeRF_test/test_streaming/src/main.c +++ b/host/libraries/libbladeRF_test/test_streaming/src/main.c @@ -90,7 +90,7 @@ void print_help() { printf(" -e, --meta Enable META test\n"); printf(" -s, --samplerate Specify the sample rate\n"); printf(" -n, --num-samples Specify the number of samples\n"); - printf(" -b, --buffer-size Specify the buffer size (multiple of 1024)\n"); + printf(" -b, --buffer-size Specify the buffer size (multiple of 2048)\n"); printf(" -h, --help Display this help message\n"); printf("\n");