#include <spi.h>
Data Fields | |
u_char * | read_buf |
u_char | write_buf [BUFOR_SIZE] |
u_int | size |
u_int | index |
u_char | writeFlag |
volatile u_char | ready |
volatile u_char | finishRead |
|
This flag is set when driver finishes read operation, otherwise flag is clear. |
|
Current transmit index in buffer. |
|
Pointer to buffer where data will be stored. |
|
This flag is set when driver is ready for transmition, otherwise flag is clear. |
|
Size of data to tarnsmit. |
|
Writing thread reads data from this buffer and sends it to device. |
|
This flag is set when driver writes data to device, unset when reads data. |