Fork
Dependents: BG96_K6xF_pelion-example-frdm BG96_K6xF_pelion-example-frdm_Temp
FXOS8700QAccelerometer Class Reference
FXOS8700QAccelerometer interface. More...
#include <FXOS8700Q.h>
Inherits FXOS8700Q.
Public Member Functions | |
| void | readRegs (int 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 | ( | int | 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 Sun Jul 31 2022 19:04:43 by
1.7.2
Daniel Lee