Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: spi_api_multibyte.h
- 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 *