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.
Fork of mbed-stm32l0l1-src-1 by
Synchronous SPI Hardware Abstraction Layer
Functions | |
int | spi_master_write (spi_t *obj, int value) |
Write a byte out in master mode and receive a value. | |
int | spi_slave_receive (spi_t *obj) |
Check if a value is available to read. | |
int | spi_slave_read (spi_t *obj) |
Get a received value out of the SPI receive buffer in slave mode. | |
void | spi_slave_write (spi_t *obj, int value) |
Write a value to the SPI peripheral in slave mode. | |
int | spi_busy (spi_t *obj) |
Checks if the specified SPI peripheral is in use. | |
uint8_t | spi_get_module (spi_t *obj) |
Get the module number. |
Function Documentation
int spi_busy | ( | spi_t * | obj ) |
uint8_t spi_get_module | ( | spi_t * | obj ) |
Get the module number.
- Parameters:
-
[in] obj The SPI peripheral to check
- Returns:
- The module number
int spi_master_write | ( | spi_t * | obj, |
int | value | ||
) |
int spi_slave_read | ( | spi_t * | obj ) |
int spi_slave_receive | ( | spi_t * | obj ) |
Generated on Tue Jul 12 2022 21:50:57 by
