Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
resources:eval:user-guides:ad-fmcomms5-ebz:multi-chip-sync [15 May 2017 18:39] – Lars-Peter Clausen | resources:eval:user-guides:ad-fmcomms5-ebz:multi-chip-sync [05 Feb 2021 15:38] – [No-OS] Michael Hennerich |
---|
[[https://github.com/analogdevicesinc/libad9361-iio|AD9361 helper Library for IIO applications]]. | [[https://github.com/analogdevicesinc/libad9361-iio|AD9361 helper Library for IIO applications]]. |
| |
Specifically, in [[https://github.com/analogdevicesinc/libad9361-iio/blob/master/ad9361_multichip_sync.c#L100|ad9361_multichip_sync.c]] | Specifically, in [[https://github.com/analogdevicesinc/libad9361-iio/blob/master/ad9361_multichip_sync.c#L42|ad9361_multichip_sync.c]] |
| |
Calling the function with the two devices is all that is necessary. You can see it being used in the osc application [[https://github.com/analogdevicesinc/iio-oscilloscope/blob/master/plugins/fmcomms2_adv.c#L699|here]]. | Calling the function with the two devices is all that is necessary. You can see it being used in the osc application [[https://github.com/analogdevicesinc/iio-oscilloscope/blob/master/plugins/fmcomms2_adv.c#L743|here]]. |
| |
To install the library on your system, follow the instructions below: | To install the library on your system, follow the instructions below: |
===== No-OS ===== | ===== No-OS ===== |
| |
Before initializing the parts using the //ad9361_init (struct ad9361_rf_phy *ad9361_phy, AD9361_InitParam *init_param)// function, AD9361_InitParam.gpio_sync should be set accordingly to your setup (for example: [[https://github.com/analogdevicesinc/no-OS/blob/master/ad9361/sw/main.c#L381 | default_init_param.gpio_sync = GPIO_SYNC_PIN]]). | Before initializing the parts using the //ad9361_init (struct ad9361_rf_phy *ad9361_phy, AD9361_InitParam *init_param)// function, AD9361_InitParam.gpio_sync should be set accordingly to your setup (for example: [[https://github.com/analogdevicesinc/no-OS/blob/master/projects/ad9361/src/main.c#L521| default_init_param.gpio_sync = GPIO_SYNC_PIN]]). |
| |
After the parts were initialized, calling the function ad9361_do_mcs(struct ad9361_rf_phy *phy_master, struct ad9361_rf_phy *phy_slave) function is all that is necessary (for example: [[https://github.com/analogdevicesinc/no-OS/blob/master/ad9361/sw/main.c#L445 | ad9361_do_mcs(ad9361_phy, ad9361_phy_b)]]). | After the parts were initialized, calling the function ad9361_do_mcs(struct ad9361_rf_phy *phy_master, struct ad9361_rf_phy *phy_slave) function is all that is necessary (for example: [[https://github.com/analogdevicesinc/no-OS/blob/master/projects/ad9361/src/main.c#L608 | ad9361_do_mcs(ad9361_phy, ad9361_phy_b)]]). |
| |
===== When it's needed to go through a MCS sequence ===== | ===== When it's needed to go through a MCS sequence ===== |