aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorDerek Kozel <derek.kozel@ettus.com>2016-04-04 17:53:52 -0700
committerMartin Braun <martin.braun@ettus.com>2016-04-08 16:50:54 -0700
commit0811fbed937c1ed679c514929728a992b46738a6 (patch)
tree6c2b8cf62c53169d2e7fa47c661b101bb74d2d32 /host/include
parent088b852844692e9d366e3e44336883adf0305623 (diff)
downloaduhd-0811fbed937c1ed679c514929728a992b46738a6.tar.gz
uhd-0811fbed937c1ed679c514929728a992b46738a6.tar.bz2
uhd-0811fbed937c1ed679c514929728a992b46738a6.zip
Added option for writes to specify a SPI speed
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/serial.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/include/uhd/types/serial.hpp b/host/include/uhd/types/serial.hpp
index 7b565c633..5b7f34fbd 100644
--- a/host/include/uhd/types/serial.hpp
+++ b/host/include/uhd/types/serial.hpp
@@ -118,13 +118,19 @@ namespace uhd{
//! on what edge is the miso data valid?
edge_t miso_edge;
+ //! Set the clock speed for this transaction
+ bool use_custom_divider;
+
+ //! Optionally set the SPI clock divider for this transaction
+ size_t divider;
+
/*!
* Create a new spi config.
* \param edge the default edge for mosi and miso
*/
spi_config_t(edge_t edge = EDGE_RISE);
};
-
+
/*!
* The SPI interface class.
* Provides routines to transact SPI and do other useful things which haven't been defined yet.