| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

Macros | Variables
MAG3110_1 module documentation

## Macros
#define | MAG3110_1_DATA_TYPE mag3110_DataBuffer_t

## Variables
mag3110_Sensor_Specific_Settings_t | MAG3110_1_Sensor_Specific_Config
| This allows access to the sensor specific configuration for the target sensor. More...
const isf_dsa_Adapter_t | MAG3110_1_Adapter
| This creates the sensor adapter instance for the target sensor. More...
const i2c_device_t | MAG3110_1_DeviceInfo
| This allows access to the sensor communications specific configuration. More...
mag3110_Sensor_Specific_Settings_t | MAG3110_1_Sensor_Specific_Config
| This allows access to the sensor specific configuration for the target sensor. More...
const isf_dsa_Adapter_t | MAG3110_1_Adapter
| This allows access to the sensor adapter instance for the target sensor. More...
const i2c_device_t | MAG3110_1_DeviceInfo
| This allows access to the sensor communications specific configuration. More...

## Detailed Description

## Macro Definition Documentation

#define MAG3110_1_DATA_TYPE mag3110_DataBuffer_t

Definition at line 63 of file MAG3110_1.h.

## Variable Documentation

const isf_dsa_Adapter_t MAG3110_1_Adapter

Initial value:
=
{
.devInfo.pSupportedSensorTypes = mag3110_SupportedSensorTypes,
.devInfo.pSupportedSensorDataTypes = mag3110_SupportedDataTypes,
.devInfo.nNativeDataSetSize = sizeof(mag3110_DataBuffer_t),
.control.Initialize = &fsl_mag3110_i2c_3D_mag_Initialize,
.control.ValidateSettings = &fsl_mag3110_i2c_3D_mag_ValidateSettings,
.control.Configure = &fsl_mag3110_i2c_3D_mag_Configure,
.control.StartData = &fsl_mag3110_i2c_3D_mag_StartData,
.control.EndData = &fsl_mag3110_i2c_3D_mag_EndData,
.control.Calibrate = &fsl_mag3110_i2c_3D_mag_Calibrate,
.control.Shutdown = &fsl_mag3110_i2c_3D_mag_Shutdown,
.control.Convert = &fsl_mag3110_i2c_3D_mag_Convert
}
mag3110_DataBuffer_t
This structure defines the dummy DSA data buffer format.
Definition: fsl_mag3110_i2c_3D_mag.h:23
fsl_mag3110_i2c_3D_mag_Calibrate
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
Definition: fsl_mag3110_i2c_3D_mag.c:416
fsl_mag3110_i2c_3D_mag_Shutdown
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Shutdown(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mag3110_i2c_3D_mag.c:436
fsl_mag3110_i2c_3D_mag_EndData
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_EndData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mag3110_i2c_3D_mag.c:349
fsl_mag3110_i2c_3D_mag_Initialize
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Initialize(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mag3110_i2c_3D_mag.c:62
fsl_mag3110_i2c_3D_mag_ValidateSettings
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSubSettings)
Definition: fsl_mag3110_i2c_3D_mag.c:156
fsl_mag3110_i2c_3D_mag_Configure
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
Definition: fsl_mag3110_i2c_3D_mag.c:189
mag3110_SupportedDataTypes
isf_SensorDataTypes_t mag3110_SupportedDataTypes[]
Definition: fsl_mag3110_i2c_3D_mag.c:47
mag3110_SupportedSensorTypes
isf_SensorTypes_t mag3110_SupportedSensorTypes[]
Supported sensor and data types for MMA8652.
Definition: fsl_mag3110_i2c_3D_mag.c:46
fsl_mag3110_i2c_3D_mag_StartData
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_StartData(isf_SensorHandle_t *pSensorHandle)
Definition: fsl_mag3110_i2c_3D_mag.c:286
fsl_mag3110_i2c_3D_mag_Convert
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Convert(volatile isf_SensorHandle_t *pSensorHandle, isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType, void *pNativeSample, void *pConvertedSample, int32 *numBytes)
This function coverts the raw sample data to the desired output type.
Definition: fsl_mag3110_i2c_3D_mag.c:574

This creates the sensor adapter instance for the target sensor.

This allows access to the sensor adapter instance for the target sensor.

Definition at line 72 of file MAG3110_1.c.

const isf_dsa_Adapter_t MAG3110_1_Adapter

This allows access to the sensor adapter instance for the target sensor.

This allows access to the sensor adapter instance for the target sensor.

Definition at line 72 of file MAG3110_1.c.

const i2c_device_t MAG3110_1_DeviceInfo

This allows access to the sensor communications specific configuration.

Definition at line 87 of file MAG3110_1.c.

const i2c_device_t MAG3110_1_DeviceInfo

Initial value:
=
{
.baudRate_kbps = 400,
.address = 14
}

This allows access to the sensor communications specific configuration.

Definition at line 87 of file MAG3110_1.c.

mag3110_Sensor_Specific_Settings_t MAG3110_1_Sensor_Specific_Config

Initial value:
=
{
.regCount = 8,
.overSamplingRatio = 0,
.regPairs =
{
{ MAG3110_OFF_X_MSB, 0 },
{ MAG3110_OFF_X_LSB, 0 },
{ MAG3110_OFF_Y_MSB, 0 },
{ MAG3110_OFF_Y_LSB, 0 },
{ MAG3110_OFF_Z_MSB, 0 },
{ MAG3110_OFF_Z_LSB, 0 },
{ MAG3110_CTRL_REG1, 0, },
{ MAG3110_CTRL_REG2, (MAG3110_SET_FIELD(AUTO_MRST_EN,1)) | (MAG3110_SET_FIELD(RAW,0)) | MAG3110_SET_FIELD(MAG_RST,0) }
}
}
MAG3110_OFF_Z_MSB
Definition: mag3110.h:38
MAG3110_OFF_Z_LSB
Definition: mag3110.h:39
MAG3110_CTRL_REG2
Definition: mag3110.h:42
MAG3110_OFF_X_LSB
Definition: mag3110.h:35
MAG3110_OFF_Y_MSB
Definition: mag3110.h:36
MAG3110_OFF_Y_LSB
Definition: mag3110.h:37
MAG3110_SET_FIELD
#define MAG3110_SET_FIELD(name, val)
Definition: mag3110.h:52
MAG3110_OFF_X_MSB
Definition: mag3110.h:34
MAG3110_CTRL_REG1
Definition: mag3110.h:41

This allows access to the sensor specific configuration for the target sensor.

Definition at line 51 of file MAG3110_1.c.

mag3110_Sensor_Specific_Settings_t MAG3110_1_Sensor_Specific_Config

This allows access to the sensor specific configuration for the target sensor.

Definition at line 51 of file MAG3110_1.c.

- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.