diff options
Diffstat (limited to 'mpm/include')
-rw-r--r-- | mpm/include/mpm/spi/spi_iface.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mpm/include/mpm/spi/spi_iface.hpp b/mpm/include/mpm/spi/spi_iface.hpp index d3f387ff3..1fc5f828c 100644 --- a/mpm/include/mpm/spi/spi_iface.hpp +++ b/mpm/include/mpm/spi/spi_iface.hpp @@ -39,6 +39,16 @@ namespace mpm { namespace spi { const uint32_t data ) = 0; + /*! Convenience function: SPI xfer is 24 bits write, 16 bits read. + * + * \param data The write data for this xfer + * + * \return 16 bits worth of the return xfer + */ + virtual uint32_t transfer24_16( + const uint32_t data + ) = 0; + /*! * \param device The path to the spidev used (e.g. "/dev/spidev0.0") * \param speed_hz Transaction speed in Hz |