Wiki

This version is outdated by a newer approved version.DiffThis version (02 May 2019 01:24) is a draft.
Approvals: 0/1

This is an old revision of the document!


Extending Device Interfaces

By default, only a small number of settings are available as direct attributes for many of the devices like the transceiver. This is primarily done to not burden the user with too many knobs which they do not care about since a device the transceiver can have over 100 addressable attributes. However, sometimes you want to get access to more IIO attributes available in the driver.

The MATLAB and Simulink interfaces can be extended in two ways.

1. Directly address properties through the underlying libIIO API calls. For example, the RSSI measurement is not provided as part of the AD9361 transceiver interfaces. To read this attribute directly we could do the following with the common abstractions from here:

rx = adi.AD9361.Rx('uri','ip:192.168.2.1');
rssiValue = rx.getAttributeLongLong('voltage0','rssi',false);
resources/eval/user-guides/matlab_bsp_extend.1556753057.txt.gz · Last modified: 02 May 2019 01:24 by Travis Collins