Skip to content

Commit

Permalink
WIP - Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Pagadarai <[email protected]>
  • Loading branch information
SrikanthPagadarai committed Aug 13, 2024
1 parent 39e9bd6 commit f0b5c3b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 158 deletions.
3 changes: 1 addition & 2 deletions +adi/+AD9361v1/Base.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
adi.common.RxTx & ...
adi.common.Attribute & ...
adi.common.DebugAttribute & ...
matlabshared.libiio.base & ...
adi.libiio.base
adi.common.Compat

%adi.AD9361.Base Class
% This class contains shared parameters and methods between TX and RX
Expand Down
56 changes: 1 addition & 55 deletions +adi/+libiio/context.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,63 +30,9 @@
ctxPtr = calllib(obj.libName, 'iio_create_context', ctxParamsPtr, uri);
end

%{
function iio_context_destroy(obj)
end
function iio_context_get_version_major(obj)
end
function iio_context_get_version_minor(obj)
end
function iio_context_get_version_tag(obj)
end
function iio_context_get_xml(obj)
end
function iio_context_get_name(obj)
end
function iio_context_get_description(obj)
end
function iio_context_get_attrs_count(obj)
end
%}

% function [status, name, value] = iio_context_get_attr(obj, ctxPtr, idx)
% end

function [status, devPtr] = iio_context_find_device(obj, ctxPtr, name)
devPtr = calllib(obj.libName, 'iio_context_find_device', ctxPtr, name);
status = cPtrCheck(obj,devPtr);
end

%{
function iio_context_find_attr(obj)
end
function iio_context_get_devices_count(obj)
end
function iio_context_get_device(obj)
end
function iio_context_set_timeout(obj)
end
function iio_context_get_params(obj)
end
function iio_context_set_data(obj)
end
function iio_context_get_data(obj)
end
%}
end
end
end
43 changes: 1 addition & 42 deletions +adi/+libiio/device.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,7 @@
%% Device Methods
function ctxPtr = iio_device_get_context(obj, devPtr)
ctxPtr = calllib(obj.libName, 'iio_device_get_context', devPtr);
end

%{
function iio_device_get_id(obj)
end
function iio_device_get_name(obj)
end
function iio_device_get_label(obj)
end
function iio_device_get_channels_count(obj)
end
function iio_device_get_attrs_count(obj)
end
function iio_device_get_channel(obj)
% [email protected](obj);
end
function iio_device_get_attr(obj)
end
%}
end

function chanPtr = iio_device_find_channel(obj, dev, id, output)
% iio_device_find_channel(const struct iio_device *dev, const char *name, bool output)
Expand All @@ -77,23 +53,6 @@ function iio_device_get_attr(obj)
status = cPtrCheck(obj,attrPtr);
end

%{
function iio_device_set_data(obj)
end
function iio_device_get_data(obj)
end
function iio_device_get_trigger(obj)
end
function iio_device_set_trigger(obj)
end
function iio_device_is_trigger(obj)
end
%}

function nBytes = iio_device_attr_write(obj,devPtr,attr,src)
% [status, attrPtr] = iio_device_find_attr(obj, devPtr, attr);
attrPtr = calllib(obj.libName, 'iio_device_find_attr', devPtr, attr);
Expand Down
60 changes: 1 addition & 59 deletions +adi/+libiio/low_level.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,8 @@
end

%% Internal Helper Functions
methods (Hidden, Access = {?handle})
methods (Hidden, Access = {?handle}, Static)
%% Low-level Methods
%{
function iio_create_channels_mask(obj)
end
function iio_channels_mask_destroy(obj)
end
function iio_device_get_sample_size(obj)
end
function iio_channel_get_index(obj)
end
function iio_channel_get_data_format(obj)
end
function iio_channel_convert(obj, chanPtr, dst, src)
end
function iio_channel_convert_inverse(obj)
end
function iio_device_get_debug_attrs_count(obj)
end
function iio_device_get_debug_attr(obj)
end
%}

function attr = iio_device_find_debug_attr(obj, devPtr, name)
% iio_device_find_debug_attr (const struct iio_device *devPtr, const char *name)
%
Expand All @@ -66,34 +37,5 @@ function iio_device_get_debug_attr(obj)
end
end
end

%{
function iio_device_reg_write(obj)
end
function iio_device_reg_read(obj)
end
function iio_attr_read_bool(obj)
end
function iio_attr_read_longlong(obj)
end
function iio_attr_read_double(obj)
end
function iio_attr_write_string(obj)
end
function iio_attr_write_bool(obj)
end
function iio_attr_write_longlong(obj)
end
function iio_attr_write_double(obj)
end
%}
end
end

0 comments on commit f0b5c3b

Please sign in to comment.