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: fxos8700cq_example
Fork of FXOS8700CQ by
Diff: FXOS8700CQ.h
- Revision:
- 1:3ec7e2676e48
- Parent:
- 0:cf6299acfe98
- Child:
- 2:4c2f8a3549a9
diff -r cf6299acfe98 -r 3ec7e2676e48 FXOS8700CQ.h
--- a/FXOS8700CQ.h Wed May 28 13:28:18 2014 +0000
+++ b/FXOS8700CQ.h Wed May 28 13:40:59 2014 +0000
@@ -48,6 +48,13 @@
int16_t z;
} SRAWDATA;
+
+/**
+* A driver on top of mbed-I2C to operate the FXOS8700CQ accelerometer/magnetometer
+* on the FRDM-K64F.
+*
+* Warning: incomplete code!
+*/
class FXOS8700CQ
{
public:
@@ -70,6 +77,13 @@
void disable(void);
uint8_t get_whoami(void);
uint8_t status(void);
+
+ /**
+ * Data retrieval from the FXOS8700CQ
+ *
+ * @param accel_data destination XYZ accelerometer data struct
+ * @param magn_data destination XYZ magnetometer data struct
+ */
void get_data(SRAWDATA *accel_data, SRAWDATA *magn_data);
