libbladeRF: bladeRF2.h File Reference

| libbladeRF 2.4.1-git Nuand bladeRF library

Data Structures | Macros | Enumerations | Functions
bladeRF2.h File Reference

## Description

bladeRF2-specific API

Copyright (C) 2013-2017 Nuand LLC

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file bladeRF2.h.

Go to the source code of this file.

## Data Structures
struct | bladerf_rf_switch_config

## Macros
#define | BLADERF_RFIC_RXFIR_DEFAULT BLADERF_RFIC_RXFIR_DEC1
#define | BLADERF_RFIC_TXFIR_DEFAULT BLADERF_RFIC_TXFIR_BYPASS

## Enumerations
enum | bladerf_rfic_rxfir { BLADERF_RFIC_RXFIR_BYPASS = 0 , BLADERF_RFIC_RXFIR_CUSTOM , BLADERF_RFIC_RXFIR_DEC1 , BLADERF_RFIC_RXFIR_DEC2 , BLADERF_RFIC_RXFIR_DEC4 }
enum | bladerf_rfic_txfir { BLADERF_RFIC_TXFIR_BYPASS = 0 , BLADERF_RFIC_TXFIR_CUSTOM , BLADERF_RFIC_TXFIR_INT1 , BLADERF_RFIC_TXFIR_INT2 , BLADERF_RFIC_TXFIR_INT4 }
enum | bladerf_power_sources { BLADERF_UNKNOWN , BLADERF_PS_DC , BLADERF_PS_USB_VBUS }
enum | bladerf_clock_select { CLOCK_SELECT_ONBOARD , CLOCK_SELECT_EXTERNAL }
enum | bladerf_pmic_register { BLADERF_PMIC_CONFIGURATION , BLADERF_PMIC_VOLTAGE_SHUNT , BLADERF_PMIC_VOLTAGE_BUS , BLADERF_PMIC_POWER , BLADERF_PMIC_CURRENT , BLADERF_PMIC_CALIBRATION }

## Functions
API_EXPORT int CALL_CONV | bladerf_get_bias_tee (struct bladerf *dev, bladerf_channel ch, bool *enable)
API_EXPORT int CALL_CONV | bladerf_set_bias_tee (struct bladerf *dev, bladerf_channel ch, bool enable)
API_EXPORT int CALL_CONV | bladerf_get_rfic_register (struct bladerf *dev, uint16_t address, uint8_t *val)
API_EXPORT int CALL_CONV | bladerf_set_rfic_register (struct bladerf *dev, uint16_t address, uint8_t val)
API_EXPORT int CALL_CONV | bladerf_get_rfic_temperature (struct bladerf *dev, float *val)
API_EXPORT int CALL_CONV | bladerf_get_rfic_rssi (struct bladerf *dev, bladerf_channel ch, int32_t *pre_rssi, int32_t *sym_rssi)
API_EXPORT int CALL_CONV | bladerf_get_rfic_ctrl_out (struct bladerf *dev, uint8_t *ctrl_out)
API_EXPORT int CALL_CONV | bladerf_get_rfic_rx_fir (struct bladerf *dev, bladerf_rfic_rxfir *rxfir)
API_EXPORT int CALL_CONV | bladerf_set_rfic_rx_fir (struct bladerf *dev, bladerf_rfic_rxfir rxfir)
API_EXPORT int CALL_CONV | bladerf_get_rfic_tx_fir (struct bladerf *dev, bladerf_rfic_txfir *txfir)
API_EXPORT int CALL_CONV | bladerf_set_rfic_tx_fir (struct bladerf *dev, bladerf_rfic_txfir txfir)
API_EXPORT int CALL_CONV | bladerf_get_pll_lock_state (struct bladerf *dev, bool *locked)
API_EXPORT int CALL_CONV | bladerf_get_pll_enable (struct bladerf *dev, bool *enabled)
API_EXPORT int CALL_CONV | bladerf_set_pll_enable (struct bladerf *dev, bool enable)
API_EXPORT int CALL_CONV | bladerf_get_pll_refclk_range (struct bladerf *dev, const struct bladerf_range **range)
API_EXPORT int CALL_CONV | bladerf_get_pll_refclk (struct bladerf *dev, uint64_t *frequency)
API_EXPORT int CALL_CONV | bladerf_set_pll_refclk (struct bladerf *dev, uint64_t frequency)
API_EXPORT int CALL_CONV | bladerf_get_pll_register (struct bladerf *dev, uint8_t address, uint32_t *val)
API_EXPORT int CALL_CONV | bladerf_set_pll_register (struct bladerf *dev, uint8_t address, uint32_t val)
API_EXPORT int CALL_CONV | bladerf_get_power_source (struct bladerf *dev, bladerf_power_sources *val)
API_EXPORT int CALL_CONV | bladerf_get_clock_select (struct bladerf *dev, bladerf_clock_select *sel)
API_EXPORT int CALL_CONV | bladerf_set_clock_select (struct bladerf *dev, bladerf_clock_select sel)
API_EXPORT int CALL_CONV | bladerf_get_clock_output (struct bladerf *dev, bool *state)
API_EXPORT int CALL_CONV | bladerf_set_clock_output (struct bladerf *dev, bool enable)
API_EXPORT int CALL_CONV | bladerf_get_pmic_register (struct bladerf *dev, bladerf_pmic_register reg, void *val)
API_EXPORT int CALL_CONV | bladerf_get_rf_switch_config (struct bladerf *dev, bladerf_rf_switch_config *config)