Interface definition for the FXOS8700 sensor driver. More...

Detailed Description

Interface definition for the FXOS8700 sensor driver.

Michael Andersen
Hyung-Sin Kim

Definition in file fxos8700.h.

#include <stdint.h>
#include "periph/i2c.h"
#include "fxos8700_regs.h"
+ Include dependency graph for fxos8700.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fxos8700_params_t
 Parameters needed for device initialization. More...
struct  fxos8700_measurement_t
 Individual 3-axis measurement. More...
struct  fxos8700_t
 Device descriptor for a FXOS8700 device. More...


#define FXOS8700_USE_ACC_RAW_VALUES   (0)
 Default raw value mode for accelerator. More...


enum  {
  FXOS8700_OK = 0, FXOS8700_ADDRERR = -1, FXOS8700_NOBUS = -2, FXOS8700_NODEV = -3,
  FXOS8700_BUSERR = -4
 FXOS8700 specific return values. More...


int fxos8700_init (fxos8700_t *dev, const fxos8700_params_t *params)
 Initialize an FXOS8700 device. More...
int fxos8700_set_active (const fxos8700_t *dev)
 Convenience function for turning on the FXOS8700. More...
int fxos8700_set_idle (const fxos8700_t *dev)
 Convenience function for turning off the FXOS8700. More...
int fxos8700_read (const fxos8700_t *dev, fxos8700_measurement_t *acc, fxos8700_measurement_t *mag)
 Convenience function for reading acceleration and magnetic field. More...
int fxos8700_read_cached (const void *dev, fxos8700_measurement_t *acc, fxos8700_measurement_t *mag)
 Extended read function including caching capability. More...