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.
Dependents: NeuroShield_SimpleScript NeuroShield_andIMU NeuroShield_Gesture_Recognition
Diff: NeuroShieldSPI.h
- Revision:
- 1:0c6bf23f2fc8
- Parent:
- 0:529602524696
- Child:
- 2:2812bcbcaaea
--- a/NeuroShieldSPI.h Thu Aug 17 23:31:15 2017 +0000 +++ b/NeuroShieldSPI.h Thu Jan 25 02:20:37 2018 +0000 @@ -31,6 +31,14 @@ * */ +/* + * Revision History (v1.1.3) + * 2018/01/03 v1.1.3 Add burst-mode read + * 2017/12/20 v1.1.2 Modify the structure of neurondata + * 2017/12/11 v1.1.1 Add Powersave command and Minor changes to the library + * 2017/08/17 v1.0.0 First Release + */ + #ifndef _NEUROSHIELDSPI_H #define _NEUROSHIELDSPI_H @@ -48,8 +56,10 @@ bool connect(); uint16_t read(uint8_t reg); + void readVector16(uint16_t* data, uint16_t size); void write(uint8_t reg, uint16_t data); - uint16_t writeVector(uint8_t reg, uint8_t* data, uint16_t size); + uint16_t writeVector(uint8_t* data, uint16_t size); + uint16_t writeVector16(uint16_t* data, uint16_t size); uint16_t version(); void reset();