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.
Dependencies: mbed MotionSensor
FXOS8700QAccelerometer Class Reference
FXOS8700QAccelerometer 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
FXOS8700QAccelerometer interface.
Definition at line 128 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