Tsungta Wu / Mbed OS mbed_SPIS_multiByte_example
Revision:
2:c520d7c7739d
Parent:
0:b7415ae44dac
--- a/spi_api_multibyte.h	Wed May 31 07:39:37 2017 +0000
+++ b/spi_api_multibyte.h	Wed May 31 09:30:53 2017 +0000
@@ -121,7 +121,7 @@
  * @param[in] obj The SPI peripheral to check
  * @return non-zero if a value is available
  */
-int  spi_slave_receive_multibyte(spi_mb_t *obj);
+int  spi_slave_receive_multibyte(spi_mb_t *obj, int bytes);
 
 /** Get a received value out of the SPI receive buffer in slave mode
  *
@@ -137,7 +137,7 @@
  * @param[in] obj   The SPI peripheral to write
  * @param[in] value The value to write
  */
-void spi_slave_write_multibyte(spi_mb_t *obj, int value);
+void spi_slave_write_multibyte(spi_mb_t *obj, uint8_t *value, int bytes);
 
 /** Checks if the specified SPI peripheral is in use
  *