From bc8713e7af36377abe1c0e969c095c6b627b00c7 Mon Sep 17 00:00:00 2001 From: Martin Anderseck Date: Thu, 17 Mar 2022 13:34:15 +0100 Subject: host: SPI: Read number of supported SPI slaves from device Add support for reading the number of supported SPI slaves from the device. This has become necessary because we may have bitfiles with different capabilities and we want to report this back correctly. --- host/lib/usrp/x400/x400_radio_control.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib/usrp/x400/x400_radio_control.hpp') diff --git a/host/lib/usrp/x400/x400_radio_control.hpp b/host/lib/usrp/x400/x400_radio_control.hpp index cd45291bc..7fcf9a12a 100644 --- a/host/lib/usrp/x400/x400_radio_control.hpp +++ b/host/lib/usrp/x400/x400_radio_control.hpp @@ -54,6 +54,9 @@ constexpr uint32_t SPI_TRANSACTION_GO_REG = SPI_SLAVE_CFG + 0x0014; //! Base address for SPI_STATUS Register constexpr uint32_t SPI_STATUS_REG = SPI_SLAVE_CFG + 0x0018; +//! Base address for SPI_CONTROLLER_INFO Register +constexpr uint32_t SPI_CONTROLLER_INFO_REG = SPI_SLAVE_CFG + 0x001C; + } // namespace x400_regs class x400_radio_control_impl : public radio_control_impl -- cgit v1.2.3