-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '3260f34bfd791c462d897dada86d05c48b5030da'
- Loading branch information
Showing
317 changed files
with
24,014 additions
and
3,725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
classdef Probe < arrus.MexObject | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
classdef ProbeModel | ||
% Probe model. | ||
% | ||
% :param modelId: id of the model | ||
% :param nElements: (scalar (for 2-D probe) or a pair (for 3-D probe))\ | ||
% probe's number of elements | ||
% :param pitch: (scalar (for 2-D probe) or a pair (for 3-D probe))\ | ||
% probe's element pitch | ||
% :param txFrequencyRange: (a pair - two-element vector) | ||
% a range [min, max] of the available tx center frequencies | ||
|
||
properties(GetAccess = public, SetAccess = private) | ||
modelId arrus.devices.probe.ProbeModelId | ||
nElements | ||
pitch | ||
txFrequencyRange (1, 2) | ||
end | ||
|
||
methods | ||
function obj = ProbeModel(modelId, nElements, pitch, ... | ||
txFrequencyRange) | ||
obj.modelId = modelId; | ||
obj.nElements = nElements; | ||
obj.pitch = pitch; | ||
obj.txFrequencyRange = txFrequencyRange; | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
classdef ProbeModelId | ||
% Probe model id. | ||
% | ||
% :param manufacturer: name of the manufacturer | ||
% :param name: name of the model | ||
|
||
properties(GetAccess = public, SetAccess = private) | ||
manufacturer | ||
name | ||
end | ||
|
||
methods | ||
function obj = ProbeModelId(manufacturer, name) | ||
obj.manufacturer = convertCharsToStrings(manufacturer); | ||
obj.name = convertCharsToStrings(name); | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
classdef ProbeSettings | ||
% Probe adapter settings. | ||
% | ||
% :param probeModel: probe's model description | ||
% :param channelMapping: (vector 1 x nChannels) channel mapping to \ | ||
% apply; if the `i`-th value is equal to `j`, it means that the \ | ||
% probe's channel `i` is connected to connector's channel `j`. | ||
|
||
properties(GetAccess = public, SetAccess = private) | ||
probeModel arrus.devices.probe.ProbeModel | ||
channelMapping | ||
end | ||
|
||
methods(Access = public) | ||
|
||
function obj = ProbeSettings(probeModel, channelMapping) | ||
obj.probeModel = probeModel; | ||
obj.channelMapping = channelMapping; | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
classdef ProbeAdapter < arrus.MexObject | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
classdef ProbeAdapterModelId | ||
% Probe adapter model id. | ||
% | ||
% :param name: name of the model | ||
% :param manufacturer: name of the manufacturer | ||
|
||
properties(GetAccess = public, SetAccess = private) | ||
manufacturer | ||
name | ||
end | ||
|
||
methods | ||
function obj = ProbeAdapterModelId(manufacturer, name) | ||
obj.manufacturer = convertCharsToStrings(manufacturer); | ||
obj.name = convertCharsToStrings(name); | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
classdef ProbeAdapterSettings | ||
% Probe adapter settings. | ||
% | ||
% :param modelId: id of the model | ||
% :param nChannels: number of adapter output channels | ||
% :param channelMapping: (matrix 2 x nChannels) channel mapping to \ | ||
% apply; for each i-th column the first row should be equal to the \ | ||
% Us4OEM's ordinal number (`o`), second row should be equal to \ | ||
% Us4OEM's channel; such a column means that adapter's channel \ | ||
% `i` is connected to o-th Us4OEM, channel number `ch`. | ||
|
||
properties(GetAccess = public, SetAccess = private) | ||
modelId arrus.devices.us4r.ProbeAdapterModelId | ||
nChannels (1, 1) | ||
channelMapping | ||
end | ||
|
||
methods(Access = public) | ||
function obj = ProbeAdapterSettings(modelId, nChannels, ... | ||
channelMapping) | ||
|
||
obj.modelId = modelId; | ||
obj.nChannels = nChannels; | ||
obj.channelMapping = channelMapping; | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
classdef RxSettings | ||
% Us4R data acquisition settings. | ||
% | ||
% :param dtgcAttenuation: (scalar, optional), DTGC attenuation value, \ | ||
% when set to empty array, DTGC will be off [dB] | ||
% :param pgaGain: (scalar) Programable Gain Amplifier gain value [dB] | ||
% :param lnaGain: (scalar) Low-noise Amplifier gain value [dB] | ||
% :param tgcSamples: (vector, optional) TGC curve to apply, when set \ | ||
% to empty array, TGC will be off [dB] | ||
% :param lpfCutoff: Low-pass filter cutoff value [Hz] | ||
% :param activeTermination: active termination value | ||
|
||
properties(GetAccess = public, SetAccess = private) | ||
dtgcAttenuation | ||
pgaGain (1, 1) | ||
lnaGain (1, 1) | ||
tgcSamples | ||
lpfCutoff | ||
activeTermination | ||
end | ||
|
||
methods(Access = public) | ||
|
||
function obj = RxSettings(varargin) | ||
% Rx settings constructor. | ||
% | ||
% Values can be provided in the order of the class properties | ||
% or by providing a list of 'param1Name', 'param1Value', | ||
% 'param2Name', 'param2Value', ... | ||
mc = metaclass(obj); | ||
nParams = size(mc.PropertyList); | ||
nParams = nParams(1); | ||
if nargin == nParams | ||
for i = 1:nParams | ||
obj.(mc.PropertyList(i).Name) = varargin{i}; | ||
end | ||
elseif nargin == 2*nParams | ||
for i = 1:2:nargin | ||
obj.(varargin{i}) = varargin{i+1}; | ||
end | ||
else | ||
error("ARRUS:IllegalArgument", "Invalid number of arguments."); | ||
end | ||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
classdef Us4OEM < arrus.MexObject | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
classdef Us4OEMSettings | ||
% Us4OEM module settings. | ||
% | ||
% :param channelMapping: (128 element vector) channel mapping | ||
% (permutation) to apply for given Us4OEM | ||
% :param activeChannelGroups: (16 element vector) a boolean vector, | ||
% true at position `i` means that the i-th group should be active. | ||
% :param rxSettings: Rx settings to apply to given Us4OEM | ||
|
||
properties(GetAccess = public, SetAccess = private) | ||
channelMapping (1, 128) | ||
activeChannelGroups (1, 16) | ||
rxSettings arrus.devices.us4r.RxSettings | ||
end | ||
|
||
methods(Access = public) | ||
function obj = Us4OEMSettings(channelMapping, ... | ||
activeChannelGroups, ... | ||
rxSettings) | ||
|
||
obj.channelMapping = channelMapping; | ||
obj.activeChannelGroups = activeChannelGroups; | ||
obj.rxSettings = rxSettings; | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
classdef Us4R < arrus.MexObject | ||
|
||
end |
Oops, something went wrong.