Commit graph

51 commits

Author SHA1 Message Date
Gregory R. Warnes
d097b96c36 Standardize version information. 2022-04-03 19:54:51 -07:00
Gregory R. Warnes
bcea4c95f1 Add missing loopback type 'RFIC_BIST'. 2022-04-03 19:54:25 -07:00
Gregory R. Warnes
f5526a1f76 More of add explicit conversion of channel enum strings
to values.
2022-04-03 19:54:13 -07:00
Gregory R. Warnes
8019032d3d Fix handling of module default value for calibrate method. 2022-04-03 19:50:44 -07:00
Gregory R. Warnes
0f97fe70fb MATLAB isn't automatically handling conversion of
the `bladerf_channel` enum strings because
`bladerf_channel` is declared as an int, rather than
as an enum.

To resolve this, add a new static method
`bladeRF.str2ch` to handle the conversion
and use it to wrap appropriate `obj.channel`
and `obj.module` arguments in function calls.

Further, replace enum strings
`BLADERF_CORR_LMS_DCOFF...` --> `BLADERF_CORR_DCOFF...`
and
`BLADERF_CORR_FPGA_PHASE...` --> `BLADERF_CORR_PHASE...`
because MATLAB doesn't pick up the #define
which does so for the C code.
2022-04-03 19:50:32 -07:00
Robert Ghilduta
cc50e218f9 matlab: bump to v1.0.5 2022-04-03 19:39:10 -07:00
Robert Ghilduta
7740242c7b add bladeRF 2.0 micro xA5 support to libbladeRF and FPGA 2022-04-03 19:39:10 -07:00
Robert Ghilduta
ebefe10da5 matlab: bump to version 1.0.4 2020-12-23 20:28:26 -08:00
Robert Ghilduta
cf4031f197 matlab: warn when build_thunk() working directory is not in path 2019-09-04 21:11:35 -07:00
Robert Ghilduta
54186f6569 matlab: update build_thunk(), add more error error checking and debugging 2019-09-04 21:11:25 -07:00
Robert Ghilduta
e9ef4cad79 bladeRF_XCVR: specify type bladeRF_direction 2019-09-03 16:20:48 -07:00
Robert Ghilduta
991bba2f9c matlab: add ability to select channel in bladeRF_rx_gui 2019-08-29 00:08:48 -07:00
Robert Ghilduta
a49ac5cdef matlab: allow to set and get current active channel through bladeRF_XCVR 2019-08-29 00:00:07 -07:00
Robert Ghilduta
37674ccea5 matlab: update bladerf_devinfo struct 2019-08-28 23:59:03 -07:00
Robert Ghilduta
297bea2fae matlab: update definitions 2019-08-28 04:36:13 -07:00
Rey Tucker
8f021ab65b matlab v1.0.3 2018-12-21 16:30:57 -05:00
Rey Tucker
00926587d8 host: matlab: update definitions for flash image handling functions
Updates bladerf_alloc_image, bladerf_alloc_cal_image,
and bladerf_image_write function definitions for libbladeRF v2.2.0
2018-12-21 16:30:36 -05:00
Rey Tucker
01e2dc6e22 MATLAB v1.0.2 2018-10-30 16:41:29 -04:00
Rey Tucker
74a876d274 host: matlab: fix tx_gain property handling in simulink
processTunedPropertiesImpl() was not updated during the migration
from tx_vga1+tx_vga2 to tx_gain.

h/t mando238

Fixes #654
2018-09-26 12:43:42 -04:00
Rey Tucker
5a886c355b matlab: add missing BB_TXVGA1_RXLPF loopback option
Fixes #478
2018-09-13 18:11:13 -04:00
Rey Tucker
5d94cee15c host: matlab v1.0.1
v1.0.1 (2018-08-24)
--------------------------------

This version is intended for use with libbladeRF v2.0.1.

Changes:
 * host: libbladeRF: Rename clock select option
2018-08-24 16:03:24 -04:00
Brian Glod
84ea9784ec host: libbladeRF: Rename clock select option
The bladeRF-micro has an option to use either its onboard VCTCXO or an
external 38.4 MHz clock as the clock source for components on the
board. This change addresses some ambiguity in the naming of the onboard
option by renaming it from 'vctcxo' to 'onboard'.

The valid options are now:

1. onboard
2. external
2018-08-23 23:29:56 -04:00
Rey Tucker
074f737307 host: matlab: v1.0.0
Update version tag to v1.0.0.
2018-08-13 20:27:13 -04:00
Robert Ghilduta
de0cf95199 matlab: update Simulink block
The Simulink block is updated to work with the latest libbladeRF.
2018-08-07 11:22:19 -05:00
Robert Ghilduta
b98a1fee79 matlab: update bladeRF_rx_gui
Massive changes to bladeRF_rx_gui to allow it to work with the new gain methods
and also allow it to properly inform the user of problems setting gains when
the gain mode (AGC) is set to automatic.
2018-08-07 11:22:19 -05:00
Robert Ghilduta
124bffe86a matlab: add BladeRF_Misc for miscellaneous measurements and controls
Some platforms have power and temperature monitoring, provide a way for them to
be exposed in matlab. To read the temperature of a device run the following:

> b = bladeRF()
> b.misc.temperature

misc.dc_power can be used to read the current power consumption
misc.dc_source be used to determine if the power is coming from USB or AC
2018-08-07 11:22:19 -05:00
Robert Ghilduta
3510033997 matlab: update bladeRF_XCVR
bladeRF_XCVR has to catch up to the new way of doing things in libbladeRF. Low
level gain settings like directly RXLNA, RXVGA1, RXVGA2, TXVGA1, and TXVGA2 have
all been removed to make way for the unified gain setting based on
bladerf_set_gain(). Setting the gain value to 60 for RX indicates maximum RX
gain, while a value of 60 for TX indicates a output power of 0dBm.
2018-08-07 11:22:19 -05:00
Robert Ghilduta
1815ec7695 matlab: identify new boards and FPGA sizes
Adding the new A4 and A9 boards. Currently some decisions are being made by
identifying the generation of the device. In the future this should be replaced
with a feature and capability mask.
2018-08-07 11:22:19 -05:00
Robert Ghilduta
eeb6253657 matlab: update libbladeRF_proto
Add or update the definitions for the following functions:

bladerf_enable_module
bladerf_set_gain
bladerf_set_gain_mode
bladerf_get_gain_mode
bladerf_set_sample_rate
bladerf_set_rational_sample_rate
bladerf_get_sample_rate
bladerf_get_rational_sample_rate
bladerf_set_bandwidth
bladerf_get_bandwidth
bladerf_set_lpf_mode
bladerf_get_lpf_mode
bladerf_select_band
bladerf_set_frequency
bladerf_schedule_retune
bladerf_cancel_scheduled_retunes
bladerf_get_frequency
bladerf_get_quick_tune
bladerf_set_loopback
bladerf_get_loopback
bladerf_trigger_init
bladerf_set_correction
bladerf_get_correction
bladerf_xb200_set_filterbank
bladerf_xb200_get_filterbank
bladerf_xb200_set_path
bladerf_xb200_get_path
bladerf_get_timestamp
bladerf_stream
bladerf_set_stream_timeout
bladerf_get_stream_timeout
bladerf_sync_config
bladerf_sync_tx
bladerf_read_trigger
bladerf_write_trigger
bladerf_get_board_name
bladerf_get_channel_count
bladerf_get_gain
bladerf_get_gain_modes
bladerf_get_gain_range
bladerf_set_gain_stage
bladerf_get_gain_stage
bladerf_get_gain_stage_range
bladerf_get_gain_stages
bladerf_get_sample_rate_range
bladerf_get_bandwidth_range
bladerf_get_frequency_range
bladerf_set_rf_port
bladerf_get_rf_port
bladerf_get_rf_ports
bladerf_get_loopback_modes
bladerf_is_loopback_mode_supported
bladerf_interleave_stream_buffer
bladerf_deinterleave_stream_buffer
bladerf_trim_dac_write
bladerf_trim_dac_read
bladerf_get_tuning_mode
bladerf_get_bias_tee
bladerf_set_bias_tee
bladerf_get_rfic_register
bladerf_set_rfic_register
bladerf_get_rfic_temperature
bladerf_get_rfic_rssi
bladerf_get_rfic_ctrl_out
bladerf_get_pll_lock_state
bladerf_get_pll_enable
bladerf_set_pll_enable
bladerf_get_pll_refclk_range
bladerf_get_pll_refclk
bladerf_set_pll_refclk
bladerf_get_pll_register
bladerf_set_pll_register
bladerf_get_power_source
bladerf_get_clock_select
bladerf_set_clock_select
bladerf_get_clock_output
bladerf_set_clock_output
bladerf_get_pmic_register
bladerf_get_rf_switch_config
2018-08-07 11:22:19 -05:00
Robert Ghilduta
7e015568a8 matlab: change not supported (-8) library errors to Matlab warnings
Most of the changes that make libbladeRF return -8 still allow scripts to run
without serious issues. This commit should be changed back after a few releases
once developers have had a chance to update their scripts.
2018-08-07 11:22:19 -05:00
Robert Ghilduta
106a66fddc matlab: build_thunk() now needs bladeRF1.h and bladeRF2.h
libbladeRF.h references bladeRF1.h and bladeRF2.h so they must now be copied
over to compile the matlab bindings.
2018-08-07 11:22:08 -05:00
Rey Tucker
52f6c08063 host: libbladeRF_bindings: matlab: update libbladeRF_proto.m (#547)
* libbladeRF/matlab: change win64 bool type (#543)

This should fix an error in recent Thunk builds.  I am not sure what the
side effects of this will be (esp. with older Matlab versions) but this
seems to work now.

* host: libbladeRF_bindings: re-sort libbladeRF_proto.m to match recent MATLAB output

* host: matlab: update for libbladeRF 1.9.0

Add a few missing functions:

 bladerf_set_gain_mode
 bladerf_get_gain_mode
 bladerf_set_smb_mode
 bladerf_get_smb_mode
 bladerf_trigger_init
 bladerf_trigger_arm
 bladerf_trigger_fire
 bladerf_trigger_state
 bladerf_set_vctcxo_tamer_mode
 bladerf_get_vctcxo_tamer_mode
 bladerf_xb300_set_trx
 bladerf_xb300_get_trx
 bladerf_xb300_set_amplifier_enable
 bladerf_xb300_get_amplifier_enable
 bladerf_xb300_get_output_power
 bladerf_get_fw_log
 bladerf_init_stream
 bladerf_stream
 bladerf_submit_stream_buffer
 bladerf_submit_stream_buffer_nb
 bladerf_deinit_stream
 bladerf_read_trigger
 bladerf_write_trigger

Add a few missing structs and enums, related to above

Also remove the bool_ret/bool_arg vars, as they aren't really needed any
more.

* host: matlab: fixup uint64s, cleanup

Removed the 'pathsep' from the architecture case, since it's seemingly
set by matlab itself

Not pre-allocating ival, to avoid having to count that high

* host: matlab: comment out stream-related protos

Matlab doesn't support FcnPtrs (bladerf_stream_cb) or voidPtrPtrPtr
(void***), so bladerf_init_stream is not usable.  If bladerf_init_stream
isn't usable, then anything involving struct bladerf_stream isn't
usable.
2018-03-30 14:05:00 -04:00
Brian Glod
1410ac2df9 matlab: Update README.md
- Added "Before Starting" section
- Added "MATLAB Toolbox Requirements" section
2017-07-05 08:58:17 -07:00
Jon Szymaniak
e4e7ef896a matlab: Updated version to v0.1.2 2016-06-29 14:35:17 -04:00
Jon Szymaniak
6e35ea384e matlab: Fixed loopback name typo in bladeRF_Simulink.m 2016-01-08 17:56:16 -05:00
Jon Szymaniak
b4b11da4b9 matlab: README.md touch-ups 2016-01-08 10:57:03 -05:00
Jon Szymaniak
0caef9463b matlab: Updated to v0.1.1 2016-01-07 17:04:10 -05:00
Jon Szymaniak
7f6a461348 matlab: Search for thunk file in '.' and MATLABPATH
Our proto file must provide the absolute path to the thunk library,
whether it is in the current directory or in MATLABPATH (as is the
case with our Windows installer).
2016-01-04 22:36:04 -05:00
Jon Szymaniak
e8cdde2f69 matlab: v0.1.0 release 2015-12-30 23:04:09 -05:00
Jon Szymaniak
7e704a8edf matlab: Added automatic RX/TX DC correction 2015-12-28 22:20:20 -05:00
Jon Szymaniak
f255b9ceea matlab: Removed extraneous loopback assignment 2015-12-13 12:31:46 -05:00
Jon Szymaniak
c7148b5031 matlab: Added methods for LMS6 DC cal routines 2015-12-12 21:18:56 -05:00
Jon Szymaniak
b3d268b0bc matlab: Ensure TX DAC is returned to 0+0j for tx.stop()
Waiting `num_buffers` worth of samples through this should
be more than sufficient to achieve this.
2015-12-10 15:09:52 -05:00
Jon Szymaniak
15278332f8 matlab: Added FPGA RX mux mode support 2015-12-10 14:38:55 -05:00
Jon Szymaniak
ea898fb7ae matlab: Added bladeRF.calibrate function 2015-12-08 23:03:28 -05:00
Jon Szymaniak
976bd1a174 matlab: List any functions not found in the library 2015-12-07 11:37:46 -05:00
Jon Szymaniak
2f2dd15876 matlab: Fixed items that caused warnings in 2015b
- varargout must be a cell
- Initial values in StringSets must match exactly, even though
  our accessors are case-insensitive.
2015-12-07 11:34:25 -05:00
Jon Szymaniak
71a96ba160 matlab: Made corrections in the help text for bladeRF/transmit 2015-11-30 12:41:14 -05:00
Jon Szymaniak
43ccce8d5d matlab: Updated README to note tested versions 2015-11-23 18:39:39 -05:00
Jon Szymaniak
e3f31f1e8f matlab: Fixed use of invalid varible in error msg 2015-11-23 18:25:31 -05:00