libbladeRF
2.5.0
Nuand bladeRF library
|
This section defines functionality for configuring a channel's bandwidth. In most cases, one should define the bandwidth to be less than the sample rate to minimize the impact of aliasing.
These functions are thread-safe.
Typedefs | |
typedef unsigned int | bladerf_bandwidth |
Functions | |
API_EXPORT int CALL_CONV | bladerf_set_bandwidth (struct bladerf *dev, bladerf_channel ch, bladerf_bandwidth bandwidth, bladerf_bandwidth *actual) |
API_EXPORT int CALL_CONV | bladerf_get_bandwidth (struct bladerf *dev, bladerf_channel ch, bladerf_bandwidth *bandwidth) |
API_EXPORT int CALL_CONV | bladerf_get_bandwidth_range (struct bladerf *dev, bladerf_channel ch, const struct bladerf_range **range) |
typedef unsigned int bladerf_bandwidth |
Bandwidth, in hertz (Hz)
Definition at line 1151 of file libbladeRF.h.
API_EXPORT int CALL_CONV bladerf_get_bandwidth | ( | struct bladerf * | dev, |
bladerf_channel | ch, | ||
bladerf_bandwidth * | bandwidth | ||
) |
Get the bandwidth of the channel
dev | Device Handle | |
[in] | ch | Channel |
[out] | bandwidth | Actual bandwidth in Hz |
API_EXPORT int CALL_CONV bladerf_get_bandwidth_range | ( | struct bladerf * | dev, |
bladerf_channel | ch, | ||
const struct bladerf_range ** | range | ||
) |
Get the supported range of bandwidths for a channel
dev | Device Handle | |
[in] | ch | Channel |
[out] | range | Bandwidth range |
API_EXPORT int CALL_CONV bladerf_set_bandwidth | ( | struct bladerf * | dev, |
bladerf_channel | ch, | ||
bladerf_bandwidth | bandwidth, | ||
bladerf_bandwidth * | actual | ||
) |
Set the bandwidth of the channel to the specified value in Hz
The underlying device is capable of a discrete set of bandwidth values. The caller should check the actual
parameter to determine which of these discrete bandwidth values is actually used for the requested bandwidth.
dev | Device handle | |
[in] | ch | Channel |
[in] | bandwidth | Desired bandwidth |
[out] | actual | If non-NULL, written with the actual bandwidth that the device was able to achieve. |