void SPIIN
(int CS_pin,int in_pin,int clk_pin,int
out_pin, int out1, int out2, int out3, int
cnt, char *InputList);
SPIIN supports the loosely defined serial protocol used by a variety of
manufacturers. The desired device is selected by asserting CS_pin
LOW. If there is no CS_pin , the value should be set to
-1.
In the simplest case, in_pin is used to input data clocked by clk_pin, to fill the character array InputList with cnt bytes.
In bi-directional cases, out1..out3 byte values will be output on out_pin before reading the InputList . If not used, those should be set to -1. It is also allowable to have in_pin equal to out_pin , in which case that pin will be driven for the out1..out3 and then converted to an input for in_pin .
Data is shifted in LSB first and each element of the InputList is filled with a byte of data. To use negative edge clocks or MSB first, the default SPImode may
be changed.
Data is shifted in at 600
Kbits/sec.