libbladeRF  2.2.1
Nuand bladeRF library
bladeRF1.h
Go to the documentation of this file.
1 
22 #ifndef BLADERF1_H_
23 #define BLADERF1_H_
24 
47 #define BLADERF_SAMPLERATE_MIN 80000u
48 
54 #define BLADERF_SAMPLERATE_REC_MAX 40000000u
55 
60 #define BLADERF_BANDWIDTH_MIN 1500000u
61 
66 #define BLADERF_BANDWIDTH_MAX 28000000u
67 
78 #define BLADERF_FREQUENCY_MIN_XB200 0u
79 
84 #define BLADERF_FREQUENCY_MIN 237500000u
85 
90 #define BLADERF_FREQUENCY_MAX 3800000000u
91 
105 #define BLADERF_FLASH_ADDR_FIRMWARE 0x00000000
106 
108 #define BLADERF_FLASH_BYTE_LEN_FIRMWARE 0x00030000
109 
111 #define BLADERF_FLASH_ADDR_CAL 0x00030000
112 
114 #define BLADERF_FLASH_BYTE_LEN_CAL 0x100
115 
122 #define BLADERF_FLASH_ADDR_FPGA 0x00040000
123 
154 #define BLADERF_RXVGA1_GAIN_MIN 5
155 
160 #define BLADERF_RXVGA1_GAIN_MAX 30
161 
166 #define BLADERF_RXVGA2_GAIN_MIN 0
167 
172 #define BLADERF_RXVGA2_GAIN_MAX 30
173 
178 #define BLADERF_TXVGA1_GAIN_MIN (-35)
179 
184 #define BLADERF_TXVGA1_GAIN_MAX (-4)
185 
190 #define BLADERF_TXVGA2_GAIN_MIN 0
191 
196 #define BLADERF_TXVGA2_GAIN_MAX 25
197 
203 typedef enum {
209 
215 #define BLADERF_LNA_GAIN_MID_DB 3
216 
222 #define BLADERF_LNA_GAIN_MAX_DB 6
223 
239 int CALL_CONV bladerf_set_txvga2(struct bladerf *dev, int gain);
240 
251 API_EXPORT int CALL_CONV bladerf_get_txvga2(struct bladerf *dev, int *gain);
252 
268 int CALL_CONV bladerf_set_txvga1(struct bladerf *dev, int gain);
269 
281 int CALL_CONV bladerf_get_txvga1(struct bladerf *dev, int *gain);
282 
294 int CALL_CONV bladerf_set_lna_gain(struct bladerf *dev, bladerf_lna_gain gain);
295 
307 int CALL_CONV bladerf_get_lna_gain(struct bladerf *dev, bladerf_lna_gain *gain);
308 
324 int CALL_CONV bladerf_set_rxvga1(struct bladerf *dev, int gain);
325 
337 int CALL_CONV bladerf_get_rxvga1(struct bladerf *dev, int *gain);
338 
354 int CALL_CONV bladerf_set_rxvga2(struct bladerf *dev, int gain);
355 
365 int CALL_CONV bladerf_get_rxvga2(struct bladerf *dev, int *gain);
366 
383 typedef enum {
388 
402 int CALL_CONV bladerf_set_sampling(struct bladerf *dev,
403  bladerf_sampling sampling);
404 
415 int CALL_CONV bladerf_get_sampling(struct bladerf *dev,
416  bladerf_sampling *sampling);
417 
418 
434 typedef enum {
439 
450 int CALL_CONV bladerf_set_lpf_mode(struct bladerf *dev,
451  bladerf_channel ch,
452  bladerf_lpf_mode mode);
453 
464 int CALL_CONV bladerf_get_lpf_mode(struct bladerf *dev,
465  bladerf_channel ch,
466  bladerf_lpf_mode *mode);
467 
497 #define BLADERF_SMB_FREQUENCY_MAX 200000000u
498 
502 #define BLADERF_SMB_FREQUENCY_MIN ((38400000u * 66u) / (32 * 567))
503 
504 
508 typedef enum {
532 
550 int CALL_CONV bladerf_set_smb_mode(struct bladerf *dev, bladerf_smb_mode mode);
551 
561 int CALL_CONV bladerf_get_smb_mode(struct bladerf *dev, bladerf_smb_mode *mode);
562 
584 int CALL_CONV
585  bladerf_set_rational_smb_frequency(struct bladerf *dev,
586  struct bladerf_rational_rate *rate,
587  struct bladerf_rational_rate *actual);
588 
612 int CALL_CONV bladerf_set_smb_frequency(struct bladerf *dev,
613  uint32_t rate,
614  uint32_t *actual);
615 
626  struct bladerf *dev, struct bladerf_rational_rate *rate);
627 
637 int CALL_CONV bladerf_get_smb_frequency(struct bladerf *dev,
638  unsigned int *rate);
639 
655 #define BLADERF_XB_GPIO(n) (1 << (n - 1))
656 
658 #define BLADERF_XB_DIR_OUTPUT(pin) (pin)
659 
661 #define BLADERF_XB_DIR_INPUT(pin) (0)
662 
664 #define BLADERF_XB_GPIO_01 BLADERF_XB_GPIO(1)
665 
667 #define BLADERF_XB_GPIO_02 BLADERF_XB_GPIO(2)
668 
670 #define BLADERF_XB_GPIO_03 BLADERF_XB_GPIO(3)
671 
673 #define BLADERF_XB_GPIO_04 BLADERF_XB_GPIO(4)
674 
676 #define BLADERF_XB_GPIO_05 BLADERF_XB_GPIO(5)
677 
679 #define BLADERF_XB_GPIO_06 BLADERF_XB_GPIO(6)
680 
682 #define BLADERF_XB_GPIO_07 BLADERF_XB_GPIO(7)
683 
685 #define BLADERF_XB_GPIO_08 BLADERF_XB_GPIO(8)
686 
688 #define BLADERF_XB_GPIO_09 BLADERF_XB_GPIO(9)
689 
691 #define BLADERF_XB_GPIO_10 BLADERF_XB_GPIO(10)
692 
694 #define BLADERF_XB_GPIO_11 BLADERF_XB_GPIO(11)
695 
697 #define BLADERF_XB_GPIO_12 BLADERF_XB_GPIO(12)
698 
700 #define BLADERF_XB_GPIO_13 BLADERF_XB_GPIO(13)
701 
703 #define BLADERF_XB_GPIO_14 BLADERF_XB_GPIO(14)
704 
706 #define BLADERF_XB_GPIO_15 BLADERF_XB_GPIO(15)
707 
709 #define BLADERF_XB_GPIO_16 BLADERF_XB_GPIO(16)
710 
712 #define BLADERF_XB_GPIO_17 BLADERF_XB_GPIO(17)
713 
715 #define BLADERF_XB_GPIO_18 BLADERF_XB_GPIO(18)
716 
718 #define BLADERF_XB_GPIO_19 BLADERF_XB_GPIO(19)
719 
721 #define BLADERF_XB_GPIO_20 BLADERF_XB_GPIO(20)
722 
724 #define BLADERF_XB_GPIO_21 BLADERF_XB_GPIO(21)
725 
727 #define BLADERF_XB_GPIO_22 BLADERF_XB_GPIO(22)
728 
730 #define BLADERF_XB_GPIO_23 BLADERF_XB_GPIO(23)
731 
733 #define BLADERF_XB_GPIO_24 BLADERF_XB_GPIO(24)
734 
736 #define BLADERF_XB_GPIO_25 BLADERF_XB_GPIO(25)
737 
739 #define BLADERF_XB_GPIO_26 BLADERF_XB_GPIO(26)
740 
742 #define BLADERF_XB_GPIO_27 BLADERF_XB_GPIO(27)
743 
745 #define BLADERF_XB_GPIO_28 BLADERF_XB_GPIO(28)
746 
748 #define BLADERF_XB_GPIO_29 BLADERF_XB_GPIO(29)
749 
751 #define BLADERF_XB_GPIO_30 BLADERF_XB_GPIO(30)
752 
754 #define BLADERF_XB_GPIO_31 BLADERF_XB_GPIO(31)
755 
757 #define BLADERF_XB_GPIO_32 BLADERF_XB_GPIO(32)
758 
759 
761 #define BLADERF_XB200_PIN_J7_1 BLADERF_XB_GPIO_10
762 
764 #define BLADERF_XB200_PIN_J7_2 BLADERF_XB_GPIO_11
765 
767 #define BLADERF_XB200_PIN_J7_5 BLADERF_XB_GPIO_08
768 
770 #define BLADERF_XB200_PIN_J7_6 BLADERF_XB_GPIO_09
771 
773 #define BLADERF_XB200_PIN_J13_1 BLADERF_XB_GPIO_17
774 
776 #define BLADERF_XB200_PIN_J13_2 BLADERF_XB_GPIO_18
777 
778 /* XB-200 J13 Pin 6 is actually reserved for SPI */
779 
781 #define BLADERF_XB200_PIN_J16_1 BLADERF_XB_GPIO_31
782 
784 #define BLADERF_XB200_PIN_J16_2 BLADERF_XB_GPIO_32
785 
787 #define BLADERF_XB200_PIN_J16_3 BLADERF_XB_GPIO_19
788 
790 #define BLADERF_XB200_PIN_J16_4 BLADERF_XB_GPIO_20
791 
793 #define BLADERF_XB200_PIN_J16_5 BLADERF_XB_GPIO_21
794 
796 #define BLADERF_XB200_PIN_J16_6 BLADERF_XB_GPIO_24
797 
799 #define BLADERF_XB100_PIN_J2_3 BLADERF_XB_GPIO_07
800 
802 #define BLADERF_XB100_PIN_J2_4 BLADERF_XB_GPIO_08
803 
805 #define BLADERF_XB100_PIN_J3_3 BLADERF_XB_GPIO_09
806 
808 #define BLADERF_XB100_PIN_J3_4 BLADERF_XB_GPIO_10
809 
811 #define BLADERF_XB100_PIN_J4_3 BLADERF_XB_GPIO_11
812 
814 #define BLADERF_XB100_PIN_J4_4 BLADERF_XB_GPIO_12
815 
817 #define BLADERF_XB100_PIN_J5_3 BLADERF_XB_GPIO_13
818 
820 #define BLADERF_XB100_PIN_J5_4 BLADERF_XB_GPIO_14
821 
823 #define BLADERF_XB100_PIN_J11_2 BLADERF_XB_GPIO_05
824 
826 #define BLADERF_XB100_PIN_J11_3 BLADERF_XB_GPIO_04
827 
829 #define BLADERF_XB100_PIN_J11_4 BLADERF_XB_GPIO_03
830 
832 #define BLADERF_XB100_PIN_J11_5 BLADERF_XB_GPIO_06
833 
835 #define BLADERF_XB100_PIN_J12_2 BLADERF_XB_GPIO_01
836 
837 /* XB-100 header J12, pins 3 and 4 are reserved for SPI */
838 
840 #define BLADERF_XB100_PIN_J12_5 BLADERF_XB_GPIO_02
841 
843 #define BLADERF_XB100_LED_D1 BLADERF_XB_GPIO_24
844 
846 #define BLADERF_XB100_LED_D2 BLADERF_XB_GPIO_32
847 
849 #define BLADERF_XB100_LED_D3 BLADERF_XB_GPIO_30
850 
852 #define BLADERF_XB100_LED_D4 BLADERF_XB_GPIO_28
853 
855 #define BLADERF_XB100_LED_D5 BLADERF_XB_GPIO_23
856 
858 #define BLADERF_XB100_LED_D6 BLADERF_XB_GPIO_25
859 
861 #define BLADERF_XB100_LED_D7 BLADERF_XB_GPIO_31
862 
864 #define BLADERF_XB100_LED_D8 BLADERF_XB_GPIO_29
865 
867 #define BLADERF_XB100_TLED_RED BLADERF_XB_GPIO_22
868 
870 #define BLADERF_XB100_TLED_GREEN BLADERF_XB_GPIO_21
871 
873 #define BLADERF_XB100_TLED_BLUE BLADERF_XB_GPIO_20
874 
876 #define BLADERF_XB100_DIP_SW1 BLADERF_XB_GPIO_27
877 
879 #define BLADERF_XB100_DIP_SW2 BLADERF_XB_GPIO_26
880 
882 #define BLADERF_XB100_DIP_SW3 BLADERF_XB_GPIO_16
883 
885 #define BLADERF_XB100_DIP_SW4 BLADERF_XB_GPIO_15
886 
888 #define BLADERF_XB100_BTN_J6 BLADERF_XB_GPIO_19
889 
891 #define BLADERF_XB100_BTN_J7 BLADERF_XB_GPIO_18
892 
894 #define BLADERF_XB100_BTN_J8 BLADERF_XB_GPIO_17
895 
896 /* XB-100 buttons J9 and J10 are not mapped to the GPIO register,
897  * but instead to reserved SPI pins. FPGA modifications are needed to
898  * use these. */
899 
909 int CALL_CONV bladerf_expansion_gpio_read(struct bladerf *dev, uint32_t *val);
910 
926 int CALL_CONV bladerf_expansion_gpio_write(struct bladerf *dev, uint32_t val);
927 
960 int CALL_CONV bladerf_expansion_gpio_masked_write(struct bladerf *dev,
961  uint32_t mask,
962  uint32_t value);
963 
974 int CALL_CONV bladerf_expansion_gpio_dir_read(struct bladerf *dev,
975  uint32_t *outputs);
976 
993 int CALL_CONV bladerf_expansion_gpio_dir_write(struct bladerf *dev,
994  uint32_t outputs);
995 
1029 API_EXPORT
1030 int CALL_CONV bladerf_expansion_gpio_dir_masked_write(struct bladerf *dev,
1031  uint32_t mask,
1032  uint32_t outputs);
1033 
1050 typedef enum {
1053 
1056 
1063 
1078 
1086 
1095 
1099 typedef enum {
1103 
1107 typedef enum {
1113 
1117 typedef enum {
1123 
1133 API_EXPORT
1134 int CALL_CONV bladerf_xb200_set_filterbank(struct bladerf *dev,
1135  bladerf_channel ch,
1136  bladerf_xb200_filter filter);
1137 
1148 API_EXPORT
1149 int CALL_CONV bladerf_xb200_get_filterbank(struct bladerf *dev,
1150  bladerf_channel ch,
1151  bladerf_xb200_filter *filter);
1152 
1162 API_EXPORT
1163 int CALL_CONV bladerf_xb200_set_path(struct bladerf *dev,
1164  bladerf_channel ch,
1165  bladerf_xb200_path path);
1166 
1176 API_EXPORT
1177 int CALL_CONV bladerf_xb200_get_path(struct bladerf *dev,
1178  bladerf_channel ch,
1179  bladerf_xb200_path *path);
1180 
1189 API_EXPORT
1190 int CALL_CONV bladerf_xb300_set_trx(struct bladerf *dev, bladerf_xb300_trx trx);
1191 
1200 API_EXPORT
1201 int CALL_CONV bladerf_xb300_get_trx(struct bladerf *dev,
1202  bladerf_xb300_trx *trx);
1203 
1213 API_EXPORT
1214 int CALL_CONV bladerf_xb300_set_amplifier_enable(struct bladerf *dev,
1216  bool enable);
1226 API_EXPORT
1227 int CALL_CONV bladerf_xb300_get_amplifier_enable(struct bladerf *dev,
1229  bool *enable);
1238 API_EXPORT
1239 int CALL_CONV bladerf_xb300_get_output_power(struct bladerf *dev, float *val);
1240 
1254 typedef enum {
1255  BLADERF_DC_CAL_INVALID = -1,
1256  BLADERF_DC_CAL_LPF_TUNING,
1257  BLADERF_DC_CAL_TX_LPF,
1258  BLADERF_DC_CAL_RX_LPF,
1259  BLADERF_DC_CAL_RXVGA2
1261 
1270 API_EXPORT
1271 int CALL_CONV bladerf_calibrate_dc(struct bladerf *dev,
1272  bladerf_cal_module module);
1273 
1298 #define BLADERF_GPIO_LMS_RX_ENABLE (1 << 1)
1299 
1305 #define BLADERF_GPIO_LMS_TX_ENABLE (1 << 2)
1306 
1312 #define BLADERF_GPIO_TX_LB_ENABLE (2 << 3)
1313 
1319 #define BLADERF_GPIO_TX_HB_ENABLE (1 << 3)
1320 
1330 #define BLADERF_GPIO_COUNTER_ENABLE (1 << 9)
1331 
1337 #define BLADERF_GPIO_RX_MUX_MASK (0x7 << BLADERF_GPIO_RX_MUX_SHIFT)
1338 
1342 #define BLADERF_GPIO_RX_MUX_SHIFT 8
1343 
1349 #define BLADERF_GPIO_RX_LB_ENABLE (2 << 5)
1350 
1356 #define BLADERF_GPIO_RX_HB_ENABLE (1 << 5)
1357 
1367 #define BLADERF_GPIO_FEATURE_SMALL_DMA_XFER (1 << 7)
1368 
1374 #define BLADERF_GPIO_AGC_ENABLE (1 << 18)
1375 
1379 #define BLADERF_GPIO_TIMESTAMP (1 << 16)
1380 
1396 #define BLADERF_GPIO_TIMESTAMP_DIV2 (1 << 17)
1397 
1410 API_EXPORT
1411 int CALL_CONV bladerf_dac_write(struct bladerf *dev, uint16_t val);
1412 
1429 API_EXPORT
1430 int CALL_CONV bladerf_dac_read(struct bladerf *dev, uint16_t *val);
1431 
1441 API_EXPORT
1442 int CALL_CONV bladerf_si5338_read(struct bladerf *dev,
1443  uint8_t address,
1444  uint8_t *val);
1445 
1455 API_EXPORT
1456 int CALL_CONV bladerf_si5338_write(struct bladerf *dev,
1457  uint8_t address,
1458  uint8_t val);
1459 
1469 API_EXPORT
1470 int CALL_CONV bladerf_lms_read(struct bladerf *dev,
1471  uint8_t address,
1472  uint8_t *val);
1473 
1483 API_EXPORT
1484 int CALL_CONV bladerf_lms_write(struct bladerf *dev,
1485  uint8_t address,
1486  uint8_t val);
1487 
1496  int16_t lpf_tuning;
1497  int16_t tx_lpf_i;
1498  int16_t tx_lpf_q;
1499  int16_t rx_lpf_i;
1500  int16_t rx_lpf_q;
1501  int16_t dc_ref;
1502  int16_t rxvga2a_i;
1503  int16_t rxvga2a_q;
1504  int16_t rxvga2b_i;
1505  int16_t rxvga2b_q;
1506 };
1507 
1520 API_EXPORT
1522  struct bladerf *dev, const struct bladerf_lms_dc_cals *dc_cals);
1523 
1532 API_EXPORT
1533 int CALL_CONV bladerf_lms_get_dc_cals(struct bladerf *dev,
1534  struct bladerf_lms_dc_cals *dc_cals);
1535 
1544 API_EXPORT
1545 int CALL_CONV bladerf_xb_spi_write(struct bladerf *dev, uint32_t val);
1546 
1551 #endif /* BLADERF1_H_ */
API_EXPORT int CALL_CONV bladerf_xb200_set_path(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_path path)
API_EXPORT int CALL_CONV bladerf_expansion_gpio_dir_masked_write(struct bladerf *dev, uint32_t mask, uint32_t outputs)
API_EXPORT int CALL_CONV bladerf_xb300_set_amplifier_enable(struct bladerf *dev, bladerf_xb300_amplifier amp, bool enable)
API_EXPORT int CALL_CONV bladerf_get_txvga1(struct bladerf *dev, int *gain)
API_EXPORT int CALL_CONV bladerf_set_lna_gain(struct bladerf *dev, bladerf_lna_gain gain)
API_EXPORT int CALL_CONV bladerf_dac_read(struct bladerf *dev, uint16_t *val)
API_EXPORT int CALL_CONV bladerf_set_txvga1(struct bladerf *dev, int gain)
int bladerf_channel
Definition: libbladeRF.h:624
API_EXPORT int CALL_CONV bladerf_expansion_gpio_dir_read(struct bladerf *dev, uint32_t *outputs)
API_EXPORT int CALL_CONV bladerf_expansion_gpio_dir_write(struct bladerf *dev, uint32_t outputs)
API_EXPORT int CALL_CONV bladerf_get_rational_smb_frequency(struct bladerf *dev, struct bladerf_rational_rate *rate)
API_EXPORT int CALL_CONV bladerf_xb300_get_amplifier_enable(struct bladerf *dev, bladerf_xb300_amplifier amp, bool *enable)
API_EXPORT int CALL_CONV bladerf_xb300_get_trx(struct bladerf *dev, bladerf_xb300_trx *trx)
bladerf_xb300_trx
Definition: bladeRF1.h:1107
API_EXPORT int CALL_CONV bladerf_set_txvga2(struct bladerf *dev, int gain)
API_EXPORT int CALL_CONV bladerf_lms_set_dc_cals(struct bladerf *dev, const struct bladerf_lms_dc_cals *dc_cals)
API_EXPORT int CALL_CONV bladerf_lms_write(struct bladerf *dev, uint8_t address, uint8_t val)
API_EXPORT int CALL_CONV bladerf_xb300_set_trx(struct bladerf *dev, bladerf_xb300_trx trx)
API_EXPORT int CALL_CONV bladerf_xb200_set_filterbank(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_filter filter)
API_EXPORT int CALL_CONV bladerf_xb300_get_output_power(struct bladerf *dev, float *val)
API_EXPORT int CALL_CONV bladerf_expansion_gpio_masked_write(struct bladerf *dev, uint32_t mask, uint32_t value)
bladerf_lpf_mode
Definition: bladeRF1.h:434
API_EXPORT int CALL_CONV bladerf_lms_read(struct bladerf *dev, uint8_t address, uint8_t *val)
bladerf_cal_module
Definition: bladeRF1.h:1254
API_EXPORT int CALL_CONV bladerf_get_sampling(struct bladerf *dev, bladerf_sampling *sampling)
API_EXPORT int CALL_CONV bladerf_expansion_gpio_write(struct bladerf *dev, uint32_t val)
API_EXPORT int CALL_CONV bladerf_get_smb_mode(struct bladerf *dev, bladerf_smb_mode *mode)
bladerf_xb200_path
Definition: bladeRF1.h:1099
bladerf_sampling
Definition: bladeRF1.h:383
API_EXPORT int CALL_CONV bladerf_get_txvga2(struct bladerf *dev, int *gain)
API_EXPORT int CALL_CONV bladerf_get_lpf_mode(struct bladerf *dev, bladerf_channel ch, bladerf_lpf_mode *mode)
API_EXPORT int CALL_CONV bladerf_lms_get_dc_cals(struct bladerf *dev, struct bladerf_lms_dc_cals *dc_cals)
#define CALL_CONV
Definition: libbladeRF.h:85
API_EXPORT int CALL_CONV bladerf_set_smb_frequency(struct bladerf *dev, uint32_t rate, uint32_t *actual)
API_EXPORT int CALL_CONV bladerf_expansion_gpio_read(struct bladerf *dev, uint32_t *val)
API_EXPORT int CALL_CONV bladerf_dac_write(struct bladerf *dev, uint16_t val)
API_EXPORT int CALL_CONV bladerf_set_rational_smb_frequency(struct bladerf *dev, struct bladerf_rational_rate *rate, struct bladerf_rational_rate *actual)
API_EXPORT int CALL_CONV bladerf_si5338_write(struct bladerf *dev, uint8_t address, uint8_t val)
API_EXPORT int CALL_CONV bladerf_get_lna_gain(struct bladerf *dev, bladerf_lna_gain *gain)
API_EXPORT int CALL_CONV bladerf_set_smb_mode(struct bladerf *dev, bladerf_smb_mode mode)
API_EXPORT int CALL_CONV bladerf_xb200_get_filterbank(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_filter *filter)
API_EXPORT int CALL_CONV bladerf_set_sampling(struct bladerf *dev, bladerf_sampling sampling)
API_EXPORT int CALL_CONV bladerf_xb_spi_write(struct bladerf *dev, uint32_t val)
API_EXPORT int CALL_CONV bladerf_xb200_get_path(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_path *path)
API_EXPORT int CALL_CONV bladerf_set_rxvga1(struct bladerf *dev, int gain)
bladerf_smb_mode
Definition: bladeRF1.h:508
#define API_EXPORT
Definition: libbladeRF.h:82
API_EXPORT int CALL_CONV bladerf_get_rxvga1(struct bladerf *dev, int *gain)
bladerf_xb200_filter
Definition: bladeRF1.h:1050
API_EXPORT int CALL_CONV bladerf_get_smb_frequency(struct bladerf *dev, unsigned int *rate)
API_EXPORT int CALL_CONV bladerf_set_rxvga2(struct bladerf *dev, int gain)
API_EXPORT int CALL_CONV bladerf_calibrate_dc(struct bladerf *dev, bladerf_cal_module module)
bladerf_xb300_amplifier
Definition: bladeRF1.h:1117
bladerf_lna_gain
Definition: bladeRF1.h:203
API_EXPORT int CALL_CONV bladerf_si5338_read(struct bladerf *dev, uint8_t address, uint8_t *val)
API_EXPORT int CALL_CONV bladerf_set_lpf_mode(struct bladerf *dev, bladerf_channel ch, bladerf_lpf_mode mode)
API_EXPORT int CALL_CONV bladerf_get_rxvga2(struct bladerf *dev, int *gain)