libbladeRF  1.7.2
Nuand bladeRF library
Enumerations | Functions
Internal loopback

Description

The bladeRF provides a variety of loopback modes to aid in development and testing.

In general, the digital or baseband loopback modes provide the most "ideal" operating conditions, while the internal RF loopback modes introduce more of the typical nonidealities of analog systems.

These functions are thread-safe.

Enumerations

enum  bladerf_loopback {
  BLADERF_LB_FIRMWARE = 1, BLADERF_LB_BB_TXLPF_RXVGA2, BLADERF_LB_BB_TXVGA1_RXVGA2, BLADERF_LB_BB_TXLPF_RXLPF,
  BLADERF_LB_BB_TXVGA1_RXLPF, BLADERF_LB_RF_LNA1, BLADERF_LB_RF_LNA2, BLADERF_LB_RF_LNA3,
  BLADERF_LB_NONE
}
 

Functions

API_EXPORT int CALL_CONV bladerf_set_loopback (struct bladerf *dev, bladerf_loopback l)
 
API_EXPORT int CALL_CONV bladerf_get_loopback (struct bladerf *dev, bladerf_loopback *l)
 

Enumeration Type Documentation

Loopback options

Enumerator
BLADERF_LB_FIRMWARE 

Firmware loopback inside of the FX3

BLADERF_LB_BB_TXLPF_RXVGA2 

Baseband loopback. TXLPF output is connected to the RXVGA2 input.

BLADERF_LB_BB_TXVGA1_RXVGA2 

Baseband loopback. TXVGA1 output is connected to the RXVGA2 input.

BLADERF_LB_BB_TXLPF_RXLPF 

Baseband loopback. TXLPF output is connected to the RXLPF input.

BLADERF_LB_BB_TXVGA1_RXLPF 

Baseband loopback. TXVGA1 output is connected to RXLPF input.

BLADERF_LB_RF_LNA1 

RF loopback. The TXMIX output, through the AUX PA, is connected to the output of LNA1.

BLADERF_LB_RF_LNA2 

RF loopback. The TXMIX output, through the AUX PA, is connected to the output of LNA2.

BLADERF_LB_RF_LNA3 

RF loopback. The TXMIX output, through the AUX PA, is connected to the output of LNA3.

BLADERF_LB_NONE 

Disables loopback and returns to normal operation.

Definition at line 1283 of file libbladeRF.h.

Function Documentation

API_EXPORT int CALL_CONV bladerf_get_loopback ( struct bladerf *  dev,
bladerf_loopback l 
)

Get current loopback mode

Parameters
[in]devDevice handle
[out]lCurrent loopback mode
Returns
0 on success, value from Error codes list on failure
API_EXPORT int CALL_CONV bladerf_set_loopback ( struct bladerf *  dev,
bladerf_loopback  l 
)

Apply specified loopback mode

Parameters
devDevice handle
lLoopback mode. Note that BLADERF_LB_NONE disables the use of loopback functionality.
Note
Loopback modes should only be enabled or disabled while the RX and TX modules are both disabled (and therefore, when no samples are being actively streamed). Otherwise, unexpected behavior may occur.
Returns
0 on success, value from Error codes list on failure