diff options
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/types/serial.hpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/host/include/uhd/types/serial.hpp b/host/include/uhd/types/serial.hpp index 9b203324b..5c6de162b 100644 --- a/host/include/uhd/types/serial.hpp +++ b/host/include/uhd/types/serial.hpp @@ -134,7 +134,7 @@ namespace uhd{ */ virtual boost::uint32_t transact_spi( int which_slave, - const uhd::spi_config_t &config, + const spi_config_t &config, boost::uint32_t data, size_t num_bits, bool readback @@ -148,15 +148,12 @@ namespace uhd{ * \param num_bits how many bits in data * \return spi data */ - boost::uint32_t read_spi( + virtual boost::uint32_t read_spi( int which_slave, - const uhd::spi_config_t &config, + const spi_config_t &config, boost::uint16_t data, - size_t num_bits) { - return transact_spi( - which_slave, config, data, num_bits, true - ); - } + size_t num_bits + ); /*! * Write to the SPI bus. @@ -165,15 +162,12 @@ namespace uhd{ * \param data the bits to write * \param num_bits how many bits in data */ - void write_spi( + virtual void write_spi( int which_slave, - const uhd::spi_config_t &config, + const spi_config_t &config, boost::uint16_t data, - size_t num_bits) { - transact_spi( - which_slave, config, data, num_bits, false - ); - } + size_t num_bits + ); }; } //namespace uhd |