aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x400/x400_gpio_control.cpp
Commit message (Collapse)AuthorAgeFilesLines
* host: x4xx: gpio: Properly unmap FPGA GPIO valuesLane Kolbly2022-01-241-19/+26
| | | | | | The FPGA GPIO registers don't exactly match the pin numbering on the front panel and in the docs. This commit changes the algorithm so that the API presented to the user matches the front panel.
* SPI: Implement SPI engine for x410Martin Anderseck2022-01-131-3/+34
| | | | | Add SPI Core host implementation for x410 and a discoverable feature to make it accessible.
* host: x4xx: Implement GPIO APILane Kolbly2021-11-031-0/+127
This implements the GPIO API for X410 through get_gpio_attr and set_gpio_attr. In ATR mode, which channel's ATR state is chosen by the set_gpio_src call, setting e.g. DB0_RF0 for channel 0 or DB0_RF1 for channel 1. In manual mode, all 24 bits (for both ports) are set in a single register write. Although the front panel of the device has two ports, labelled GPIO0 and GPIO1, this API exposes them as though they were a single 24-bit GPIO port.