aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorLane Kolbly <lane.kolbly@ni.com>2021-12-22 15:40:24 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2022-01-06 15:05:32 -0600
commitd0bd9f174195f9baca4c383b4c98acef983f0f88 (patch)
tree2cd3ea465047618f178d4ad6db9c058c5044bbe9 /host/include
parent1880c6915d47aee1e8d6a6713da126767c9af9cf (diff)
downloaduhd-d0bd9f174195f9baca4c383b4c98acef983f0f88.tar.gz
uhd-d0bd9f174195f9baca4c383b4c98acef983f0f88.tar.bz2
uhd-d0bd9f174195f9baca4c383b4c98acef983f0f88.zip
host: Add divider constructor to spi_config_t
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/serial.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/host/include/uhd/types/serial.hpp b/host/include/uhd/types/serial.hpp
index 13832e318..7475708f6 100644
--- a/host/include/uhd/types/serial.hpp
+++ b/host/include/uhd/types/serial.hpp
@@ -104,6 +104,13 @@ struct UHD_API spi_config_t
* \param edge the default edge for mosi and miso
*/
spi_config_t(edge_t edge = EDGE_RISE);
+
+ /*!
+ * Create a new spi config with custom divider.
+ * \param edge the default edge for mosi and miso
+ * \param divider the divider setting to use
+ */
+ spi_config_t(edge_t edge, size_t divider);
};
/*!