Defines | |
| #define | dev_open_DEV_SPI() mos_mutex_lock(&spi_mutex) |
| gain an exclusive lock on the SPI Bus. Any other threads calling dev_open_DEV_SPI() will block until the owner calls dev_close_DEV_SPI(). | |
| #define | dev_close_DEV_SPI() mos_mutex_unlock(&spi_mutex) |
| release exclusive lock on the SPI Bus. Any other thread blocking on dev_open_DEV_SPI() will now unblock. | |
Functions | |
| uint16_t | dev_read_DEV_SPI (void *buf, uint16_t count) |
| read from the SPI Bus into buf. | |
| uint16_t | dev_write_DEV_SPI (const void *buf, uint16_t count) |
| write from buf to the SPI Bus. | |
| uint8_t | dev_mode_DEV_SPI (uint8_t md) |
| not supported for the SPI Bus. | |
| uint8_t | dev_ioctl_DEV_SPI (int8_t request,...) |
send an IO Control to the SPI Bus. Accepted parameters are:
| |
Variables | |
| mos_mutex_t | spi_mutex |
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
For internal use only. Used by the dev_open and dev_close functions. |
1.4.6