diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-05-11 12:04:45 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:53 -0800 |
commit | b39dafa1eebf327a8bbd3959a3c54e85707b56aa (patch) | |
tree | 5b3b4688a5c24404cc7e4ec20442e9e742c8cbaa /mpm/include | |
parent | e6858a61a81d0ff1762e4b8434fe781acf2fc1ab (diff) | |
download | uhd-b39dafa1eebf327a8bbd3959a3c54e85707b56aa.tar.gz uhd-b39dafa1eebf327a8bbd3959a3c54e85707b56aa.tar.bz2 uhd-b39dafa1eebf327a8bbd3959a3c54e85707b56aa.zip |
mpm: Enabled selection of SPI mode
Diffstat (limited to 'mpm/include')
-rw-r--r-- | mpm/include/mpm/spi/spi_iface.hpp | 3 | ||||
-rw-r--r-- | mpm/include/mpm/spi/spi_regs_iface.hpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mpm/include/mpm/spi/spi_iface.hpp b/mpm/include/mpm/spi/spi_iface.hpp index 8f8eaa2ec..d3f387ff3 100644 --- a/mpm/include/mpm/spi/spi_iface.hpp +++ b/mpm/include/mpm/spi/spi_iface.hpp @@ -45,7 +45,8 @@ namespace mpm { namespace spi { */ static sptr make_spidev( const std::string &device, - const int speed_hz + const int speed_hz, + const int spi_mode=3 ); }; diff --git a/mpm/include/mpm/spi/spi_regs_iface.hpp b/mpm/include/mpm/spi/spi_regs_iface.hpp index 072e15dc4..a28817db2 100644 --- a/mpm/include/mpm/spi/spi_regs_iface.hpp +++ b/mpm/include/mpm/spi/spi_regs_iface.hpp @@ -35,6 +35,7 @@ namespace mpm { namespace spi { mpm::types::regs_iface::sptr make_spidev_regs_iface( const std::string &device, const int speed_hz, + const int spi_mode, uint32_t addr_shift, uint32_t data_shift, uint32_t read_flags, |