-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adi:ad405x: Modified the AD405x MATLAB scripts
1. Added the Rx System Object for AD4050 2. Modified the data capture script to include AD4050 3. Deleted the Rx.m script from the +AD405x folder 4. Updated index.rst and Contents.m files. Signed-off-by: Anush Shetty <[email protected]>
- Loading branch information
1 parent
590936d
commit 98314e0
Showing
5 changed files
with
53 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
classdef Rx < adi.common.Rx & adi.common.RxTx ... | ||
& adi.AD405x.Base | ||
|
||
% AD4050 Precision ADC Class | ||
% | ||
% adi.AD4050.Rx Receive data from the AD4050 ADC | ||
% The adi.AD4050.Rx System object is a signal source that can receive | ||
% data from the AD4050. | ||
% | ||
% `rx = adi.AD4050.Rx;` | ||
% `rx = adi.AD4050.Rx('uri','serial:COM28,230400');` | ||
% | ||
% `AD4050 Datasheet <https://www.analog.com/media/en/technical-documentation/data-sheets/ad4050-ad4056.pdf>`_ | ||
|
||
properties (Nontunable, Hidden, Constant) | ||
Type = 'Rx' | ||
end | ||
|
||
properties (Hidden) | ||
Timeout = Inf | ||
kernelBuffersCount = 1 | ||
dataTypeStr = 'int32' | ||
phyDevName = 'ad4050' | ||
devName = 'ad4050' | ||
end | ||
|
||
methods | ||
%% Constructor | ||
|
||
function obj = Rx(Args) | ||
arguments | ||
Args.uri | ||
end | ||
coder.allowpcode('plain'); | ||
obj = [email protected]('devName', 'ad4050', 'phyDevName', 'ad4050', 'uri', Args.uri); | ||
end | ||
|
||
end | ||
end |
Empty file.
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
14 changes: 11 additions & 3 deletions
14
examples/ad4052_DataCapture.m → examples/ad405x_DataCapture.m
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