BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Revision:
29:95469b25e187
Parent:
28:e932eb039271
Child:
32:029962133529
--- a/include/cSPI.h	Wed Apr 20 14:18:18 2016 +0000
+++ b/include/cSPI.h	Wed Apr 20 15:09:43 2016 +0000
@@ -14,28 +14,29 @@
 class cSPI {
 private:
     unsigned int _freq;
-    unsigned char _mode;
-    unsigned char _bits;
-    unsigned char _nbMatrices;
+    unsigned int _mode;
+    unsigned int _bits;
+    unsigned int _nbMatrices;
 public:
     // CONSTRUCTEURS
     cSPI();
+    cSPI(unsigned int f, unsigned int m, unsigned int b);
     // DESTRUCTEUR
     ~cSPI();
     // GETTERS
     unsigned int getFrequence();
     unsigned int getMode();
-    unsigned char getBits();
-    unsigned char getNbMatrices();
+    unsigned int getBits();
+    unsigned int getNbMatrices();
     // SETTERS
     void setFrequence(unsigned int freq);
     void setMode(unsigned int mode);
-    void setBits(unsigned char bits);
-    void setNbMatrices(unsigned char nb);
+    void setBits(unsigned int bits);
+    void setNbMatrices(unsigned int 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);
+    void configurerNbMatrices(const int nb);
 
 };