PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
SPI.h
1 //
2 // automatically generated by spin2cpp v1.03 on Sun Jun 02 19:48:38 2013
3 // spin2cpp SPI_Spin.spin
4 //
5 
6 #ifndef SPI_H_Defined__
7 #define SPI_H_Defined__
8 
9 #include <stdint.h>
10 
11 class SPI {
12 public:
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);
24 private:
25  int32_t Clockdelay, Clockstate;
26 };
27 
28 #endif
SPI
Definition: SPI.h:11