BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Revision:
28:e932eb039271
Parent:
9:6f3d8b714a59
Child:
29:95469b25e187
diff -r fdcff6af71b5 -r e932eb039271 include/cSPI.h
--- a/include/cSPI.h	Wed Apr 20 11:13:53 2016 +0000
+++ b/include/cSPI.h	Wed Apr 20 14:18:18 2016 +0000
@@ -16,7 +16,7 @@
     unsigned int _freq;
     unsigned char _mode;
     unsigned char _bits;
-
+    unsigned char _nbMatrices;
 public:
     // CONSTRUCTEURS
     cSPI();
@@ -26,15 +26,16 @@
     unsigned int getFrequence();
     unsigned int getMode();
     unsigned char getBits();
-
+    unsigned char getNbMatrices();
     // SETTERS
     void setFrequence(unsigned int freq);
     void setMode(unsigned int mode);
     void setBits(unsigned char bits);
+    void setNbMatrices(unsigned char nb);
     // METHODES
     void initSPI(unsigned int frequence, unsigned int bits, unsigned int mode);
     int envoyerMatrice(cMatrice &); // Renvoi la reponse SPI
-
+    void configurerNbMatrices(const char* nb);
 
 };