libbladeRF: bladeRF1.h Source File

| libbladeRF 2.2.1-git 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 {
204 BLADERF_LNA_GAIN_UNKNOWN,
205 BLADERF_LNA_GAIN_BYPASS,
206 BLADERF_LNA_GAIN_MID,
207 BLADERF_LNA_GAIN_MAX
208 } bladerf_lna_gain;
209
215 #define BLADERF_LNA_GAIN_MID_DB 3
216
222 #define BLADERF_LNA_GAIN_MAX_DB 6
223
238 API_EXPORT
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
267 API_EXPORT
268 int CALL_CONV bladerf_set_txvga1(struct bladerf *dev, int gain);
269
280 API_EXPORT
281 int CALL_CONV bladerf_get_txvga1(struct bladerf *dev, int *gain);
282
293 API_EXPORT
294 int CALL_CONV bladerf_set_lna_gain(struct bladerf *dev, bladerf_lna_gain gain);
295
306 API_EXPORT
307 int CALL_CONV bladerf_get_lna_gain(struct bladerf *dev, bladerf_lna_gain *gain);
308
323 API_EXPORT
324 int CALL_CONV bladerf_set_rxvga1(struct bladerf *dev, int gain);
325
336 API_EXPORT
337 int CALL_CONV bladerf_get_rxvga1(struct bladerf *dev, int *gain);
338
353 API_EXPORT
354 int CALL_CONV bladerf_set_rxvga2(struct bladerf *dev, int gain);
355
364 API_EXPORT
365 int CALL_CONV bladerf_get_rxvga2(struct bladerf *dev, int *gain);
366
383 typedef enum {
384 BLADERF_SAMPLING_UNKNOWN,
385 BLADERF_SAMPLING_INTERNAL,
386 BLADERF_SAMPLING_EXTERNAL
387 } bladerf_sampling;
388
401 API_EXPORT
402 int CALL_CONV bladerf_set_sampling(struct bladerf *dev,
403 bladerf_sampling sampling);
404
414 API_EXPORT
415 int CALL_CONV bladerf_get_sampling(struct bladerf *dev,
416 bladerf_sampling *sampling);
417
418
434 typedef enum {
435 BLADERF_LPF_NORMAL,
436 BLADERF_LPF_BYPASSED,
437 BLADERF_LPF_DISABLED
438 } bladerf_lpf_mode;
439
449 API_EXPORT
450 int CALL_CONV bladerf_set_lpf_mode(struct bladerf *dev,
451 bladerf_channel ch,
452 bladerf_lpf_mode mode);
453
463 API_EXPORT
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 {
509 BLADERF_SMB_MODE_INVALID = -1,
511 BLADERF_SMB_MODE_DISABLED,
515 BLADERF_SMB_MODE_OUTPUT,
521 BLADERF_SMB_MODE_INPUT,
526 BLADERF_SMB_MODE_UNAVAILBLE,
531 } bladerf_smb_mode;
532
549 API_EXPORT
550 int CALL_CONV bladerf_set_smb_mode(struct bladerf *dev, bladerf_smb_mode mode);
551
560 API_EXPORT
561 int CALL_CONV bladerf_get_smb_mode(struct bladerf *dev, bladerf_smb_mode *mode);
562
583 API_EXPORT
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
611 API_EXPORT
612 int CALL_CONV bladerf_set_smb_frequency(struct bladerf *dev,
613 uint32_t rate,
614 uint32_t *actual);
615
624 API_EXPORT
625 int CALL_CONV bladerf_get_rational_smb_frequency(
626 struct bladerf *dev, struct bladerf_rational_rate *rate);
627
636 API_EXPORT
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
908 API_EXPORT
909 int CALL_CONV bladerf_expansion_gpio_read(struct bladerf *dev, uint32_t *val);
910
925 API_EXPORT
926 int CALL_CONV bladerf_expansion_gpio_write(struct bladerf *dev, uint32_t val);
927
959 API_EXPORT
960 int CALL_CONV bladerf_expansion_gpio_masked_write(struct bladerf *dev,
961 uint32_t mask,
962 uint32_t value);
963
973 API_EXPORT
974 int CALL_CONV bladerf_expansion_gpio_dir_read(struct bladerf *dev,
975 uint32_t *outputs);
976
992 API_EXPORT
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 {
1052 BLADERF_XB200_50M = 0,
1053
1055 BLADERF_XB200_144M,
1056
1062 BLADERF_XB200_222M,
1063
1077 BLADERF_XB200_CUSTOM,
1078
1085 BLADERF_XB200_AUTO_1DB,
1086
1093 BLADERF_XB200_AUTO_3DB
1094 } bladerf_xb200_filter;
1095
1099 typedef enum {
1100 BLADERF_XB200_BYPASS = 0,
1101 BLADERF_XB200_MIX
1102 } bladerf_xb200_path;
1103
1107 typedef enum {
1108 BLADERF_XB300_TRX_INVAL = -1,
1109 BLADERF_XB300_TRX_TX = 0,
1110 BLADERF_XB300_TRX_RX,
1111 BLADERF_XB300_TRX_UNSET
1112 } bladerf_xb300_trx;
1113
1117 typedef enum {
1118 BLADERF_XB300_AMP_INVAL = -1,
1119 BLADERF_XB300_AMP_PA = 0,
1120 BLADERF_XB300_AMP_LNA,
1121 BLADERF_XB300_AMP_PA_AUX
1122 } bladerf_xb300_amplifier;
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,
1215 bladerf_xb300_amplifier amp,
1216 bool enable);
1226 API_EXPORT
1227 int CALL_CONV bladerf_xb300_get_amplifier_enable(struct bladerf *dev,
1228 bladerf_xb300_amplifier amp,
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
1260 } bladerf_cal_module;
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
1495 struct bladerf_lms_dc_cals {
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
1521 int CALL_CONV bladerf_lms_set_dc_cals(
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_ */
bladerf_lna_gain
bladerf_lna_gain
Definition: bladeRF1.h:203
bladerf_set_lpf_mode
API_EXPORT int CALL_CONV bladerf_set_lpf_mode(struct bladerf *dev, bladerf_channel ch, bladerf_lpf_mode mode)
BLADERF_XB200_222M
@ BLADERF_XB200_222M
Definition: bladeRF1.h:1062
bladerf_lms_dc_cals::rxvga2b_q
int16_t rxvga2b_q
Definition: bladeRF1.h:1505
bladerf_xb200_path
bladerf_xb200_path
Definition: bladeRF1.h:1099
BLADERF_XB300_TRX_UNSET
@ BLADERF_XB300_TRX_UNSET
Definition: bladeRF1.h:1111
BLADERF_XB300_TRX_TX
@ BLADERF_XB300_TRX_TX
Definition: bladeRF1.h:1109
bladerf_lms_dc_cals::rx_lpf_q
int16_t rx_lpf_q
Definition: bladeRF1.h:1500
bladerf_cal_module
bladerf_cal_module
Definition: bladeRF1.h:1254
BLADERF_XB300_AMP_LNA
@ BLADERF_XB300_AMP_LNA
Definition: bladeRF1.h:1120
bladerf_xb300_set_trx
API_EXPORT int CALL_CONV bladerf_xb300_set_trx(struct bladerf *dev, bladerf_xb300_trx trx)
bladerf_xb200_set_filterbank
API_EXPORT int CALL_CONV bladerf_xb200_set_filterbank(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_filter filter)
bladerf_xb300_set_amplifier_enable
API_EXPORT int CALL_CONV bladerf_xb300_set_amplifier_enable(struct bladerf *dev, bladerf_xb300_amplifier amp, bool enable)
bladerf_expansion_gpio_dir_write
API_EXPORT int CALL_CONV bladerf_expansion_gpio_dir_write(struct bladerf *dev, uint32_t outputs)
bladerf_calibrate_dc
API_EXPORT int CALL_CONV bladerf_calibrate_dc(struct bladerf *dev, bladerf_cal_module module)
bladerf_lms_dc_cals::dc_ref
int16_t dc_ref
Definition: bladeRF1.h:1501
bladerf_lms_dc_cals::rxvga2b_i
int16_t rxvga2b_i
Definition: bladeRF1.h:1504
BLADERF_SMB_MODE_DISABLED
@ BLADERF_SMB_MODE_DISABLED
Definition: bladeRF1.h:511
bladerf_get_sampling
API_EXPORT int CALL_CONV bladerf_get_sampling(struct bladerf *dev, bladerf_sampling *sampling)
bladerf_expansion_gpio_dir_masked_write
API_EXPORT int CALL_CONV bladerf_expansion_gpio_dir_masked_write(struct bladerf *dev, uint32_t mask, uint32_t outputs)
bladerf_channel
int bladerf_channel
Definition: libbladeRF.h:624
BLADERF_SMB_MODE_INPUT
@ BLADERF_SMB_MODE_INPUT
Definition: bladeRF1.h:521
BLADERF_SMB_MODE_UNAVAILBLE
@ BLADERF_SMB_MODE_UNAVAILBLE
Definition: bladeRF1.h:526
bladerf_get_rxvga2
API_EXPORT int CALL_CONV bladerf_get_rxvga2(struct bladerf *dev, int *gain)
bladerf_set_sampling
API_EXPORT int CALL_CONV bladerf_set_sampling(struct bladerf *dev, bladerf_sampling sampling)
bladerf_set_smb_mode
API_EXPORT int CALL_CONV bladerf_set_smb_mode(struct bladerf *dev, bladerf_smb_mode mode)
BLADERF_LPF_NORMAL
@ BLADERF_LPF_NORMAL
Definition: bladeRF1.h:435
API_EXPORT
#define API_EXPORT
Definition: libbladeRF.h:82
bladerf_set_lna_gain
API_EXPORT int CALL_CONV bladerf_set_lna_gain(struct bladerf *dev, bladerf_lna_gain gain)
BLADERF_SAMPLING_UNKNOWN
@ BLADERF_SAMPLING_UNKNOWN
Definition: bladeRF1.h:384
bladerf_get_rational_smb_frequency
API_EXPORT int CALL_CONV bladerf_get_rational_smb_frequency(struct bladerf *dev, struct bladerf_rational_rate *rate)
bladerf_expansion_gpio_write
API_EXPORT int CALL_CONV bladerf_expansion_gpio_write(struct bladerf *dev, uint32_t val)
bladerf_xb300_get_trx
API_EXPORT int CALL_CONV bladerf_xb300_get_trx(struct bladerf *dev, bladerf_xb300_trx *trx)
bladerf_xb_spi_write
API_EXPORT int CALL_CONV bladerf_xb_spi_write(struct bladerf *dev, uint32_t val)
bladerf_xb300_get_output_power
API_EXPORT int CALL_CONV bladerf_xb300_get_output_power(struct bladerf *dev, float *val)
BLADERF_SAMPLING_EXTERNAL
@ BLADERF_SAMPLING_EXTERNAL
Definition: bladeRF1.h:386
bladerf_lms_get_dc_cals
API_EXPORT int CALL_CONV bladerf_lms_get_dc_cals(struct bladerf *dev, struct bladerf_lms_dc_cals *dc_cals)
bladerf_xb300_amplifier
bladerf_xb300_amplifier
Definition: bladeRF1.h:1117
bladerf_xb200_set_path
API_EXPORT int CALL_CONV bladerf_xb200_set_path(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_path path)
bladerf_xb200_filter
bladerf_xb200_filter
Definition: bladeRF1.h:1050
bladerf_expansion_gpio_read
API_EXPORT int CALL_CONV bladerf_expansion_gpio_read(struct bladerf *dev, uint32_t *val)
bladerf_lms_set_dc_cals
API_EXPORT int CALL_CONV bladerf_lms_set_dc_cals(struct bladerf *dev, const struct bladerf_lms_dc_cals *dc_cals)
BLADERF_SMB_MODE_OUTPUT
@ BLADERF_SMB_MODE_OUTPUT
Definition: bladeRF1.h:515
bladerf_si5338_write
API_EXPORT int CALL_CONV bladerf_si5338_write(struct bladerf *dev, uint8_t address, uint8_t val)
bladerf_sampling
bladerf_sampling
Definition: bladeRF1.h:383
bladerf_set_txvga2
API_EXPORT int CALL_CONV bladerf_set_txvga2(struct bladerf *dev, int gain)
bladerf_lms_dc_cals::tx_lpf_q
int16_t tx_lpf_q
Definition: bladeRF1.h:1498
BLADERF_XB200_144M
@ BLADERF_XB200_144M
Definition: bladeRF1.h:1055
bladerf_get_txvga2
API_EXPORT int CALL_CONV bladerf_get_txvga2(struct bladerf *dev, int *gain)
BLADERF_XB300_TRX_RX
@ BLADERF_XB300_TRX_RX
Definition: bladeRF1.h:1110
bladerf_get_smb_frequency
API_EXPORT int CALL_CONV bladerf_get_smb_frequency(struct bladerf *dev, unsigned int *rate)
BLADERF_LNA_GAIN_MID
@ BLADERF_LNA_GAIN_MID
Definition: bladeRF1.h:206
BLADERF_SMB_MODE_INVALID
@ BLADERF_SMB_MODE_INVALID
Definition: bladeRF1.h:509
BLADERF_XB200_CUSTOM
@ BLADERF_XB200_CUSTOM
Definition: bladeRF1.h:1077
bladerf_lms_dc_cals::rx_lpf_i
int16_t rx_lpf_i
Definition: bladeRF1.h:1499
BLADERF_XB200_AUTO_1DB
@ BLADERF_XB200_AUTO_1DB
Definition: bladeRF1.h:1085
bladerf_lms_dc_cals::tx_lpf_i
int16_t tx_lpf_i
Definition: bladeRF1.h:1497
bladerf_xb200_get_filterbank
API_EXPORT int CALL_CONV bladerf_xb200_get_filterbank(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_filter *filter)
BLADERF_LNA_GAIN_MAX
@ BLADERF_LNA_GAIN_MAX
Definition: bladeRF1.h:207
BLADERF_LNA_GAIN_BYPASS
@ BLADERF_LNA_GAIN_BYPASS
Definition: bladeRF1.h:205
bladerf_get_lna_gain
API_EXPORT int CALL_CONV bladerf_get_lna_gain(struct bladerf *dev, bladerf_lna_gain *gain)
bladerf_get_rxvga1
API_EXPORT int CALL_CONV bladerf_get_rxvga1(struct bladerf *dev, int *gain)
BLADERF_XB300_AMP_PA
@ BLADERF_XB300_AMP_PA
Definition: bladeRF1.h:1119
bladerf_lms_dc_cals::rxvga2a_i
int16_t rxvga2a_i
Definition: bladeRF1.h:1502
bladerf_rational_rate
Definition: libbladeRF.h:1016
bladerf_dac_read
API_EXPORT int CALL_CONV bladerf_dac_read(struct bladerf *dev, uint16_t *val)
bladerf_lpf_mode
bladerf_lpf_mode
Definition: bladeRF1.h:434
bladerf_expansion_gpio_dir_read
API_EXPORT int CALL_CONV bladerf_expansion_gpio_dir_read(struct bladerf *dev, uint32_t *outputs)
bladerf_lms_dc_cals
Definition: bladeRF1.h:1495
bladerf_get_smb_mode
API_EXPORT int CALL_CONV bladerf_get_smb_mode(struct bladerf *dev, bladerf_smb_mode *mode)
bladerf_expansion_gpio_masked_write
API_EXPORT int CALL_CONV bladerf_expansion_gpio_masked_write(struct bladerf *dev, uint32_t mask, uint32_t value)
bladerf_xb200_get_path
API_EXPORT int CALL_CONV bladerf_xb200_get_path(struct bladerf *dev, bladerf_channel ch, bladerf_xb200_path *path)
CALL_CONV
#define CALL_CONV
Definition: libbladeRF.h:85
bladerf_smb_mode
bladerf_smb_mode
Definition: bladeRF1.h:508
bladerf_set_rxvga2
API_EXPORT int CALL_CONV bladerf_set_rxvga2(struct bladerf *dev, int gain)
bladerf_dac_write
API_EXPORT int CALL_CONV bladerf_dac_write(struct bladerf *dev, uint16_t val)
bladerf_get_lpf_mode
API_EXPORT int CALL_CONV bladerf_get_lpf_mode(struct bladerf *dev, bladerf_channel ch, bladerf_lpf_mode *mode)
BLADERF_XB200_BYPASS
@ BLADERF_XB200_BYPASS
Definition: bladeRF1.h:1100
BLADERF_SAMPLING_INTERNAL
@ BLADERF_SAMPLING_INTERNAL
Definition: bladeRF1.h:385
bladerf_set_rxvga1
API_EXPORT int CALL_CONV bladerf_set_rxvga1(struct bladerf *dev, int gain)
bladerf_lms_write
API_EXPORT int CALL_CONV bladerf_lms_write(struct bladerf *dev, uint8_t address, uint8_t val)
BLADERF_XB300_TRX_INVAL
@ BLADERF_XB300_TRX_INVAL
Definition: bladeRF1.h:1108
BLADERF_LPF_DISABLED
@ BLADERF_LPF_DISABLED
Definition: bladeRF1.h:437
BLADERF_LPF_BYPASSED
@ BLADERF_LPF_BYPASSED
Definition: bladeRF1.h:436
BLADERF_XB300_AMP_INVAL
@ BLADERF_XB300_AMP_INVAL
Definition: bladeRF1.h:1118
bladerf_lms_dc_cals::lpf_tuning
int16_t lpf_tuning
Definition: bladeRF1.h:1496
BLADERF_XB200_MIX
@ BLADERF_XB200_MIX
Definition: bladeRF1.h:1101
bladerf_xb300_trx
bladerf_xb300_trx
Definition: bladeRF1.h:1107
bladerf_set_smb_frequency
API_EXPORT int CALL_CONV bladerf_set_smb_frequency(struct bladerf *dev, uint32_t rate, uint32_t *actual)
bladerf_get_txvga1
API_EXPORT int CALL_CONV bladerf_get_txvga1(struct bladerf *dev, int *gain)
BLADERF_XB200_AUTO_3DB
@ BLADERF_XB200_AUTO_3DB
Definition: bladeRF1.h:1093
bladerf_set_txvga1
API_EXPORT int CALL_CONV bladerf_set_txvga1(struct bladerf *dev, int gain)
BLADERF_LNA_GAIN_UNKNOWN
@ BLADERF_LNA_GAIN_UNKNOWN
Definition: bladeRF1.h:204
bladerf_set_rational_smb_frequency
API_EXPORT int CALL_CONV bladerf_set_rational_smb_frequency(struct bladerf *dev, struct bladerf_rational_rate *rate, struct bladerf_rational_rate *actual)
bladerf_si5338_read
API_EXPORT int CALL_CONV bladerf_si5338_read(struct bladerf *dev, uint8_t address, uint8_t *val)
bladerf_xb300_get_amplifier_enable
API_EXPORT int CALL_CONV bladerf_xb300_get_amplifier_enable(struct bladerf *dev, bladerf_xb300_amplifier amp, bool *enable)
bladerf_lms_dc_cals::rxvga2a_q
int16_t rxvga2a_q
Definition: bladeRF1.h:1503
BLADERF_XB300_AMP_PA_AUX
@ BLADERF_XB300_AMP_PA_AUX
Definition: bladeRF1.h:1121
BLADERF_XB200_50M
@ BLADERF_XB200_50M
Definition: bladeRF1.h:1052
bladerf_lms_read
API_EXPORT int CALL_CONV bladerf_lms_read(struct bladerf *dev, uint8_t address, uint8_t *val)