aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-09-05 11:47:55 -0700
committerMartin Braun <martin.braun@ettus.com>2016-09-05 11:47:55 -0700
commitbb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd (patch)
tree4eb7fc68e2e04c6e47d68629a3e147bed65ddd2b /host/include
parent2262316abdfcb0cbe7c4a99290d85e1da84811e8 (diff)
parent83912104a9c1ab3631f755a4d98ee86e195db690 (diff)
downloaduhd-bb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd.tar.gz
uhd-bb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd.tar.bz2
uhd-bb95d96ad8cdcdb3f12ef62231c1b0f9dcd7ebfd.zip
Merge branch 'maint'
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/serial.hpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/host/include/uhd/types/serial.hpp b/host/include/uhd/types/serial.hpp
index 5b7f34fbd..cb90d7c71 100644
--- a/host/include/uhd/types/serial.hpp
+++ b/host/include/uhd/types/serial.hpp
@@ -157,12 +157,12 @@ namespace uhd{
size_t num_bits,
bool readback
) = 0;
-
+
/*!
* Read from the SPI bus.
* \param which_slave the slave device number
* \param config spi config args
- * \param data the bits to write out (be sure to set write bit)
+ * \param data the bits to write out (be sure to set write bit)
* \param num_bits how many bits in data
* \return spi data
*/
@@ -172,7 +172,7 @@ namespace uhd{
boost::uint32_t data,
size_t num_bits
);
-
+
/*!
* Write to the SPI bus.
* \param which_slave the slave device number
@@ -189,7 +189,7 @@ namespace uhd{
};
/*!
- * UART interface to write and read bytes.
+ * UART interface to write and read strings.
*/
class UHD_API uart_iface{
public:
@@ -204,10 +204,9 @@ namespace uhd{
virtual void write_uart(const std::string &buf) = 0;
/*!
- * Read from a serial port.
- * Reads until complete line or timeout.
+ * Read a line from a serial port.
* \param timeout the timeout in seconds
- * \return the data read from the serial port
+ * \return the line or empty string upon timeout
*/
virtual std::string read_uart(double timeout) = 0;
};