A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
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:
-
addr The address to read from data The data to read from it len The 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.
Generated on Tue Jul 19 2022 23:32:07 by 1.7.2