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.
FXOS8700.h
00001 /* 00002 * 00003 */ 00004 00005 #ifndef FXOS8700_H 00006 #define FXOS8700_H 00007 #include "mbed.h" 00008 00009 #define FXOS8700_I2C_ADDRESS (0x1E<<1) //pins SA0,SA1=0 00010 00011 #define FXOS8700_STATUS 0x00 00012 #define FXOS8700_MDR_STATUS 0x32 00013 #define FXOS8700_WHO_AM_I 0x0D 00014 #define FXOS8700_CTRL_REG1 0x2A 00015 #define FXOS8700_M_CTRL_REG1 0x5B 00016 #define FXOS8700_WHO_AM_I_VALUE 0xC7 00017 00018 class FXOS8700 00019 { 00020 public: 00021 00022 FXOS8700(PinName sda, PinName scl); 00023 00024 void accel_config(void); 00025 00026 void mag_config(void); 00027 00028 void acquire_accel_data_g(float * da); 00029 00030 void acquire_mag_data_uT(float * dm); 00031 00032 private: 00033 I2C accelmagi2c; 00034 00035 }; 00036 00037 #endif
Generated on Mon Jul 25 2022 17:27:41 by
1.7.2