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.
Dependents: BG96_K6xF_pelion-example-frdm BG96_K6xF_pelion-example-frdm_Temp
FXOS8700QMagnetometer Class Reference
FXOS8700QMagnetometer 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
FXOS8700QMagnetometer interface.
Definition at line 147 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
