![]() |
ISF
2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
|
The mag3110.h contains the MAG3110 Magnetometer register definitions, access macros, and device access functions. More...
Go to the source code of this file.
Data Structures | |
struct | mag_config_t |
The structure defines the MAG3110 configuration. More... | |
struct | mag3110_Sensor_Specific_Reg_t |
struct | mag3110_Sensor_Specific_Settings_t |
Typedefs | |
typedef int32 | mag3110_status_t |
Enumerations | |
enum | { MAG3110_DR_STATUS = 0x00, MAG3110_OUT_X_MSB = 0x01, MAG3110_OUT_X_LSB = 0x02, MAG3110_OUT_Y_MSB = 0x03, MAG3110_OUT_Y_LSB = 0x04, MAG3110_OUT_Z_MSB = 0x05, MAG3110_OUT_Z_LSB = 0x06, MAG3110_WHO_AM_I = 0x07, MAG3110_SYS_MOD = 0x08, MAG3110_OFF_X_MSB = 0x09, MAG3110_OFF_X_LSB = 0x0A, MAG3110_OFF_Y_MSB = 0x0B, MAG3110_OFF_Y_LSB = 0x0C, MAG3110_OFF_Z_MSB = 0x0D, MAG3110_OFF_Z_LSB = 0x0E, MAG3110_DIE_TEMP = 0x0F, MAG3110_CTRL_REG1 = 0x10, MAG3110_CTRL_REG2 = 0x11, MAG3110_DEVICE_ID = 0xC4 } |
The MAG3110 Sensor Internal Register Map. More... | |
The mag3110.h contains the MAG3110 Magnetometer register definitions, access macros, and device access functions.
Definition in file mag3110.h.
#define MAG3110_GET_FIELD | ( | name, | |
val | |||
) | ((val&MAG3110_##name##_MASK)>>MAG3110_##name##_SHIFT) |
#define MAG3110_NUMBER_AXIS 0x3 |
The MAG3110 registers, masks, and constants.
Definition at line 17 of file mag3110.h.
Referenced by mag3110_SetConfig().
#define MAG3110_NUMBER_BYTES_AXIS 0x2 |
Definition at line 18 of file mag3110.h.
Referenced by mag3110_SetConfig().
#define MAG3110_SET_FIELD | ( | name, | |
val | |||
) | (((val)<<MAG3110_##name##_SHIFT)&(MAG3110_##name##_MASK)) |
Definition at line 52 of file mag3110.h.
Referenced by mag3110_SetConfig().
#define MAG3110_WHOAMI_VALUE (0xC4) |
Definition at line 109 of file mag3110.h.
Referenced by mag3110_CheckId().
typedef int32 mag3110_status_t |
anonymous enum |
The MAG3110 Sensor Internal Register Map.