A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.

Dependencies:   mbed MotionSensor

Embed: (wiki syntax)

« Back to documentation index

FXOS8700QMagnetometer Class Reference

FXOS8700QMagnetometer Class Reference

FXOS8700QMagnetometer interface. More...

#include <FXOS8700Q.h>

Inherits FXOS8700Q.

Public Member Functions

void readRegs (uint8_t addr, uint8_t *data, uint32_t len) const
 Read a device register.
uint8_t whoAmI (void) const
 Read the ID from a whoAmI register.

Detailed Description

FXOS8700QMagnetometer interface.

Definition at line 147 of file FXOS8700Q.h.


Member Function Documentation

void readRegs ( uint8_t  addr,
uint8_t *  data,
uint32_t  len 
) const [inherited]

Read a device register.

Parameters:
addrThe address to read from
dataThe data to read from it
lenThe amount of data to read from it
Returns:
0 if successful, negative number otherwise

Definition at line 56 of file FXOS8700Q.cpp.

uint8_t whoAmI ( void   ) const [inherited]

Read the ID from a whoAmI register.

Returns:
The device whoAmI register contents

Definition at line 63 of file FXOS8700Q.cpp.