AKM AK09970N 3D Magnetic Sensor with Programmable Switch
AK09970N Class Reference
AK09970N 3D Magnetic Sensor with Programmable Switch. More...
#include <AK09970N.h>
Public Member Functions | |
AK09970N (PinName sda, PinName scl, int addr) | |
AK09970N constructor. | |
~AK09970N () | |
AK09970N destructor. | |
uint16_t | getStatus (void) |
REG_STATUS 0x10 REG_STATUS[15:10] (reserved) REG_STATUS[9] DOR : 0: Normal 1: Data overrun REG_STATUS[8] ERRADC : 0: Normal 1: ADC overflow REG_STATUS[7] ERRXY : 0: Normal 1: Magnetic sensor overflow (X and/or Y) REG_STATUS[6] SWZ2 : exceed_THSeshold 2 REG_STATUS[5] SWZ1 : exceed_THSeshold 1 REG_STATUS[4] SWY2 : exceed_THSeshold 2 REG_STATUS[3] SWY1 : exceed_THSeshold 1 REG_STATUS[2] SWX2 : exceed THSeshold 2 REG_STATUS[1] SWX1 : exceed THSeshold 1 REG_STATUS[0] DRDY : 0: Normal 1: Data is ready. |
Detailed Description
AK09970N 3D Magnetic Sensor with Programmable Switch.
Definition at line 8 of file AK09970N.h.
Constructor & Destructor Documentation
AK09970N | ( | PinName | sda, |
PinName | scl, | ||
int | addr | ||
) |
AK09970N constructor.
- Parameters:
-
sda SDA pin sdl SCL pin addr addr of the I2C peripheral
Definition at line 36 of file AK09970N.cpp.
~AK09970N | ( | ) |
AK09970N destructor.
Definition at line 47 of file AK09970N.cpp.
Member Function Documentation
uint16_t getStatus | ( | void | ) |
REG_STATUS 0x10 REG_STATUS[15:10] (reserved) REG_STATUS[9] DOR : 0: Normal 1: Data overrun REG_STATUS[8] ERRADC : 0: Normal 1: ADC overflow REG_STATUS[7] ERRXY : 0: Normal 1: Magnetic sensor overflow (X and/or Y) REG_STATUS[6] SWZ2 : exceed_THSeshold 2 REG_STATUS[5] SWZ1 : exceed_THSeshold 1 REG_STATUS[4] SWY2 : exceed_THSeshold 2 REG_STATUS[3] SWY1 : exceed_THSeshold 1 REG_STATUS[2] SWX2 : exceed THSeshold 2 REG_STATUS[1] SWX1 : exceed THSeshold 1 REG_STATUS[0] DRDY : 0: Normal 1: Data is ready.
Definition at line 99 of file AK09970N.cpp.
Generated on Sat Jul 16 2022 02:15:28 by 1.7.2