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 Rejestrator
Diff: MAG3110/MAG3110.h
- Revision:
- 1:5ad44a4edff9
- Parent:
- 0:fa31f8461c63
--- a/MAG3110/MAG3110.h Sat Apr 18 17:01:57 2015 +0000
+++ b/MAG3110/MAG3110.h Sat May 09 15:06:38 2015 +0000
@@ -91,7 +91,7 @@
* Setup the Magnetometer
*
*/
- void begin();
+ void begin(void);
/**
* Read a register, return its value as int
* @param regAddr The address to read
@@ -103,7 +103,13 @@
* @param regAddr The address to read
* @return Value from 2 consecutive registers
*/
- int readVal(char regAddr);
+ int16_t readVal(char regAddr);
+ /**
+ * Read all registers
+ * @param buffer Buffer to store all registers
+ * @return Value from register 0
+ */
+ int readAll(char *buffer);
/**
* Calculate the heading
* @return heading in degrees