This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
university:tools:pluto:controlling_the_transceiver_and_transferring_data [28 Apr 2017 15:58] – [Controlling the transceiver] Michael Hennerich | university:tools:pluto:controlling_the_transceiver_and_transferring_data [18 Dec 2020 17:55] (current) – Fix broken link to IIO High Speed doc Rob Riggs | ||
---|---|---|---|
Line 13: | Line 13: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
- | * [[http://events.linuxfoundation.org/ | + | * [[https://events.static.linuxfound.org/ |
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
Line 22: | Line 22: | ||
It shows how to control the AD936x transceiver via a remote connection. | It shows how to control the AD936x transceiver via a remote connection. | ||
- | - Create IIO IP Network context. Instead of ip: | + | - Create IIO IP Network context. Instead of '' |
- Get the AD936x PHY device structure | - Get the AD936x PHY device structure | ||
- | - Find and write the TX LO frequency | + | - Set the TX LO frequency |
- | - Find and write RX baseband rate | + | - Set RX baseband rate |
+ | \\ | ||
<code c> | <code c> | ||
+ | #include < | ||
+ | |||
int main (int argc, char **argv) | int main (int argc, char **argv) | ||
{ | { | ||
Line 33: | Line 36: | ||
struct iio_device *phy; | struct iio_device *phy; | ||
- | ctx = iio_create_context_from_uri(" | + | ctx = iio_create_context_from_uri(" |
phy = iio_context_find_device(ctx, | phy = iio_context_find_device(ctx, | ||
Line 45: | Line 48: | ||
iio_device_find_channel(phy, | iio_device_find_channel(phy, | ||
" | " | ||
- | 50000000); /* RX baseband rate 50 MSPS */ | + | 5000000); /* RX baseband rate 5 MSPS */ |
receive(ctx); | receive(ctx); | ||
Line 56: | Line 59: | ||
===== Receiving data ===== | ===== Receiving data ===== | ||
+ | |||
+ | - Get the RX capture device structure | ||
+ | - Get the IQ input channels | ||
+ | - Enable I and Q channel | ||
+ | - Create the RX buffer | ||
+ | - Fill the buffer | ||
+ | - Process samples | ||
+ | |||
+ | \\ | ||
<code c> | <code c> |