150 #endif // MAG3110_FI_H_ The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi...
This defines the sensor specific information.
ARM_DRIVER_I2C * pCommDrv
int32_t MAG3110_I2C_DeInit(mag3110_i2c_sensorhandle_t *pSensorHandle)
The interface function to De Initialize sensor..
void(* registeridlefunction_t)(void *userParam)
This is the register idle function type.
The mag3110.h contains the MAG3110 Magnetic sensor register definitions, access macros, and device access functions.
This structure defines the mag3110 data buffer.
void MAG3110_I2C_SetIdleTask(mag3110_i2c_sensorhandle_t *pSensorHandle, registeridlefunction_t idleTask, void *userParam)
: The interface function to set the I2C Idle Task.
int32_t MAG3110_I2C_Configure(mag3110_i2c_sensorhandle_t *pSensorHandle, const registerwritelist_t *pRegWriteList)
The interface function to configure he sensor.
registerDeviceInfo_t deviceInfo
This structure defines the Write command List.
This structure defines the Read command List.
This structure defines the device specific info required by register I/O.
int32_t MAG3110_I2C_Initialize(mag3110_i2c_sensorhandle_t *pSensorHandle, ARM_DRIVER_I2C *pBus, uint8_t index, uint16_t sAddress, uint8_t whoAmi)
The interface function to initialize the sensor.
int32_t MAG3110_I2C_ReadData(mag3110_i2c_sensorhandle_t *pSensorHandle, const registerreadlist_t *pReadList, uint8_t *pBuffer)
The interface function to read the sensor data.
The sensor_io_i2c.h file declares low-level interface functions for reading and writing sensor regist...
void MAG3110_CalibrateHardIronOffset(int16_t *xValue, int16_t *yValue, int16_t *zValue)
Calibrates the magnetometer reading by determining the current hard iron offset.