An in-development library to provide effective access to all features of the FXOS8700CQ on the FRDM-K64F mbed-enabled development board. As of 28 May 2014 1325EDT, the code should be generally usable and modifiable.

Files at this revision

API Documentation at this revision

Comitter:
gjanusz
Date:
Thu Dec 06 20:50:52 2018 +0000
Parent:
4:e2fe752b881e
Commit message:
On board temperature sensor

Changed in this revision

FXOS8700CQ.h Show annotated file Show diff for this revision Revisions of this file
--- a/FXOS8700CQ.h	Tue Jun 03 19:02:19 2014 +0000
+++ b/FXOS8700CQ.h	Thu Dec 06 20:50:52 2018 +0000
@@ -160,6 +160,10 @@
     * @return 2, 4, or 8, depending on part configuration; 0 on error
     */
     uint8_t get_accel_scale(void);
+    
+    void read_regs(int reg_addr, uint8_t* data, int len);
+    
+    void write_regs(uint8_t* data, int len);
 
 
 
@@ -169,8 +173,7 @@
     bool enabled; // keep track of enable bit of device
 
     // I2C helper methods
-    void read_regs(int reg_addr, uint8_t* data, int len);
-    void write_regs(uint8_t* data, int len);
+
 
 };