Private
Public Access
2
0

spi.hpp: mraa_spi_write_buf_word cannot be used from SWIG bindings

In order for this to work we need to provide a typemap for it

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-06-01 10:56:46 +01:00
parent 236a8e9586
commit 40c52784ad

View File

@@ -140,6 +140,7 @@ class Spi
return mraa_spi_write_buf(m_spi, txBuf, length); return mraa_spi_write_buf(m_spi, txBuf, length);
} }
#ifndef SWIG
/** /**
* Write buffer of bytes to SPI device The pointer return has to be * Write buffer of bytes to SPI device The pointer return has to be
* free'd by the caller. It will return a NULL pointer in cases of * free'd by the caller. It will return a NULL pointer in cases of
@@ -154,6 +155,7 @@ class Spi
{ {
return mraa_spi_write_buf_word(m_spi, txBuf, length); return mraa_spi_write_buf_word(m_spi, txBuf, length);
} }
#endif
#ifndef SWIG #ifndef SWIG
/** /**