6 #ifndef SPI_H_Defined__
7 #define SPI_H_Defined__
13 static const int Msbpre = 0;
14 static const int Lsbpre = 1;
15 static const int Msbpost = 2;
16 static const int Lsbpost = 3;
17 static const int Lsbfirst = 4;
18 static const int Msbfirst = 5;
19 int32_t Start(int32_t _clockdelay, int32_t _clockstate);
20 int32_t Shiftout(int32_t Dpin, int32_t Cpin, int32_t Mode, int32_t Bits, int32_t Value);
21 int32_t Shiftin(int32_t Dpin, int32_t Cpin, int32_t Mode, int32_t Bits);
22 int32_t Postclock(int32_t _cpin);
23 int32_t Preclock(int32_t _cpin);
25 int32_t Clockdelay, Clockstate;