Example of spi.h class declaration for SPI portability
◆ begin()
◆ transfer()
uint8_t transfer |
( |
uint8_t | tx_ | ) |
|
Transfer a single byte
- Parameters
-
- Returns
- Data returned via spi
◆ transfernb()
void transfernb |
( |
char * | txBuf, |
|
|
char * | rxBuf, |
|
|
uint32_t | len ) |
Transfer a buffer of data
- Parameters
-
txBuf | Transmit buffer |
rxBuf | Receive buffer |
len | Length of the data |
◆ transfern()
void transfern |
( |
char * | buf, |
|
|
uint32_t | len ) |
Transfer a buffer of data without an rx buffer
- Parameters
-
buf | Pointer to a buffer of data |
len | Length of the data |