The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: SPISlave.h
- Revision:
- 55:d722ed6a4237
- Parent:
- 54:71b101360fb9
- Child:
- 59:0883845fe643
--- a/SPISlave.h Tue Jan 08 12:46:36 2013 +0000 +++ b/SPISlave.h Wed Jan 16 12:56:34 2013 +0000 @@ -79,11 +79,11 @@ * @param mode Clock polarity and phase mode (0 - 3) * * @code - * mode | POL PHA - * -----+-------- - * 0 | 0 0 + * mode | POL PHA + * -----+-------- + * 0 | 0 0 * 1 | 0 1 - * 2 | 1 0 + * 2 | 1 0 * 3 | 1 1 * @endcode */ @@ -119,7 +119,7 @@ protected: spi_t _spi; - + int _bits; int _mode; int _hz;