Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed APDS_9960 mbed-rtos
Diff: include/cSPI.h
- 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);
};