Go to the source code of this file.
◆ SPI_GP_RXBUF_SIZE
#define SPI_GP_RXBUF_SIZE 20 |
sensor_spi.h
- Author
- Aaron Parks
- Date
- Aug 2013
◆ SPI_acquirePort()
- Returns
- Success - you were able to get the port. Fail - you don't have the port, so don't use it.
◆ SPI_initialize()
- Returns
- success or failure
- Todo:
- Implement this function
◆ SPI_releasePort()
- Returns
- success or fail
- Todo:
- Make this more robust (don't allow release of port if we don't have it)
◆ SPI_transaction()
BOOL SPI_transaction |
( |
uint8_t * |
rxBuf, |
|
|
uint8_t * |
txBuf, |
|
|
uint16_t |
size |
|
) |
| |
Engage in a synchronous serial transaction of the specified length. This function blocks until transaction is complete.
- Parameters
-
- Returns
- success or fail
◆ gpRxBuf
sensor_spi.c
- Author
- Aaron Parks
- Date
- Aug 2013