libbladeRF 2.4.1-0.2021.10-3
Nuand bladeRF library
Functions

Description

These functions provide the ability to select various RF ports for RX and TX channels. This is normally handled automatically.

These functions are thread-safe.

Functions

API_EXPORT int CALL_CONV bladerf_set_rf_port (struct bladerf *dev, bladerf_channel ch, const char *port)
 
API_EXPORT int CALL_CONV bladerf_get_rf_port (struct bladerf *dev, bladerf_channel ch, const char **port)
 
API_EXPORT int CALL_CONV bladerf_get_rf_ports (struct bladerf *dev, bladerf_channel ch, const char **ports, unsigned int count)
 

Function Documentation

◆ bladerf_get_rf_port()

API_EXPORT int CALL_CONV bladerf_get_rf_port ( struct bladerf *  dev,
bladerf_channel  ch,
const char **  port 
)

Get the RF port

Parameters
devDevice handle
[in]chChannel
[out]portRF port name
Returns
0 on success, value from Error codes list on failure

◆ bladerf_get_rf_ports()

API_EXPORT int CALL_CONV bladerf_get_rf_ports ( struct bladerf *  dev,
bladerf_channel  ch,
const char **  ports,
unsigned int  count 
)

Get available RF ports

This function may be called with NULL for ports, or 0 for count, to determine the number of RF ports.

Parameters
devDevice handle
[in]chChannel
[out]portsRF port names
[out]countNumber to populate
Returns
Number of RF ports on success, value from Error codes list on failure

◆ bladerf_set_rf_port()

API_EXPORT int CALL_CONV bladerf_set_rf_port ( struct bladerf *  dev,
bladerf_channel  ch,
const char *  port 
)

Set the RF port

Parameters
devDevice handle
[in]chChannel
[in]portRF port name
Returns
0 on success, value from Error codes list on failure