|
embedded-software
reusable software modules for embedded systems
|
spi transaction structure More...
#include <spi.h>
Data Fields | |
| uint8_t | writeLength |
| write length More... | |
| uint8_t | readLength |
| read length More... | |
| uint8_t | readDelay |
| read delay More... | |
| struct { | |
| volatile uint8_t blocking: 1 | |
| blocking flag More... | |
| volatile uint8_t finished: 1 | |
| transaction finished flag More... | |
| volatile uint8_t channel: 3 | |
| channel setting More... | |
| volatile uint8_t overrun: 1 | |
| overrun error occured More... | |
| volatile uint8_t unused: 2 | |
| unused More... | |
| } | flags |
| void(* | callback )(struct spi_transaction *) |
| callback function More... | |
| void(* | cs_control )(uint8_t) |
| cs_control More... | |
| uint8_t | data [SPI_MAX_SIZE] |
| data (write data followed by read data) More... | |
spi transaction structure
| volatile uint8_t blocking |
blocking flag
| void(* callback)(struct spi_transaction *) |
callback function
| volatile uint8_t channel |
channel setting
| void(* cs_control)(uint8_t) |
cs_control
| uint8_t data[SPI_MAX_SIZE] |
data (write data followed by read data)
| volatile uint8_t finished |
transaction finished flag
| struct { ... } flags |
| volatile uint8_t overrun |
overrun error occured
| uint8_t readDelay |
read delay
| uint8_t readLength |
read length
| volatile uint8_t unused |
unused
| uint8_t writeLength |
write length