Lines Matching refs:libname
42 libname = 'libiio'; variable
86 obj.iio_ctx = calllib(obj.libname, 'iio_create_network_context', ip_address);
107 calllib(obj.libname, 'iio_context_destroy', obj.iio_ctx);
111 unloadlibrary(obj.libname);
134 …calllib(obj.libname, 'iio_context_get_version', obj.iio_ctx, remote_pMajor, remote_pMinor, remote_…
141 … calllib(obj.libname, 'iio_library_get_version', local_pMajor, local_pMinor, local_pGitTag);
174 nb_devices = calllib(obj.libname, 'iio_context_get_devices_count', obj.iio_ctx);
186 dev = calllib(obj.libname, 'iio_context_get_device', obj.iio_ctx, i);
187 name = calllib(obj.libname, 'iio_device_get_name', dev);
222 nb_channels = calllib(obj.libname, 'iio_device_get_channels_count', obj.iio_dev);
233 obj.iio_channel{1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, 0);
234 is_output = calllib(obj.libname, 'iio_channel_is_output', obj.iio_channel{1});
241 … obj.iio_channel{j+1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, j);
243 calllib(obj.libname, 'iio_channel_enable', obj.iio_channel{j+1});
244 … is_scan_element = calllib(obj.libname, 'iio_channel_is_scan_element', obj.iio_channel{j+1});
249 … calllib(obj.libname, 'iio_channel_disable', obj.iio_channel{j+1});
275 obj.iio_buffer = calllib(obj.libname, 'iio_device_create_buffer', obj.iio_dev,...
299 nb_channels = calllib(obj.libname, 'iio_device_get_channels_count', obj.iio_dev);
310 obj.iio_channel{1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, 0);
311 is_output = calllib(obj.libname, 'iio_channel_is_output', obj.iio_channel{1});
329 … obj.iio_channel{j+1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, j);
330 calllib(obj.libname, 'iio_channel_enable', obj.iio_channel{j+1});
333 … obj.iio_channel{j+1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, j);
334 calllib(obj.libname, 'iio_channel_disable', obj.iio_channel{j+1});
338 …obj.iio_buffer = calllib(obj.libname, 'iio_device_create_buffer', obj.iio_dev, obj.iio_buf_size, 0…
367 if((obj.if_initialized == 1) && libisloaded(obj.libname))
369 calllib(obj.libname, 'iio_buffer_destroy', obj.iio_buffer);
372 calllib(obj.libname, 'iio_context_destroy', obj.iio_ctx);
380 unloadlibrary(obj.libname);
403 if(~libisloaded(obj.libname))
405 [notfound, warnings] = loadlibrary(obj.libname, obj.hname);
412 if(~libisloaded(obj.libname))
485 calllib(obj.libname, 'iio_buffer_refill', obj.iio_buffer);
486 buffer = calllib(obj.libname, 'iio_buffer_first', obj.iio_buffer, obj.iio_channel{1});
514 calllib(obj.libname, 'iio_buffer_destroy', obj.iio_buffer);
527 obj.iio_buffer = calllib(obj.libname, 'iio_device_create_buffer', obj.iio_dev,...
531 buffer = calllib(obj.libname, 'iio_buffer_start', obj.iio_buffer);
539 calllib(obj.libname, 'iio_buffer_push', obj.iio_buffer);
560 name = calllib(obj.libname, 'iio_device_find_attr', obj.iio_dev, attr_name);
567 chn_no = calllib(obj.libname, 'iio_device_get_channels_count', obj.iio_dev);
569 ch = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, k);
570 attr_no = calllib(obj.libname, 'iio_channel_get_attrs_count', ch);
573 attr = calllib(obj.libname, 'iio_channel_get_attr', ch, l);
574 name = calllib(obj.libname, 'iio_channel_attr_get_filename', ch, attr);
627 calllib(obj.libname, 'iio_channel_attr_read_double', ch, attr, pData);
631 calllib(obj.libname, 'iio_device_attr_read_double', obj.iio_dev, attr_name, pData);
653 … [~, ~, ~, val] = calllib(obj.libname, 'iio_channel_attr_read', ch, attr, pData, 512);
657 … [~, ~, ~, val] = calllib(obj.libname, 'iio_device_attr_read', obj.iio_dev, attr_name, pData, 512);
673 calllib(obj.libname, 'iio_channel_attr_write_double', ch, attr, val);
677 calllib(obj.libname, 'iio_device_attr_write_double', obj.iio_dev, attr_name, val);
693 calllib(obj.libname, 'iio_channel_attr_write', ch, attr, str);
697 calllib(obj.libname, 'iio_device_attr_write', obj.iio_dev, attr_name, str);