ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
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
}
This structure defines the dummy DSA data buffer format.
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Calibrate(isf_SensorHandle_t *pSensorHandle, void *pCalData)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Shutdown(isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_EndData(isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Initialize(isf_SensorHandle_t *pSensorHandle)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_ValidateSettings(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSubSettings)
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Configure(isf_SensorHandle_t *pSensorHandle, isf_dsa_SensorSettings_t *pSensorSettings)
isf_SensorDataTypes_t mag3110_SupportedDataTypes[]
isf_SensorTypes_t mag3110_SupportedSensorTypes[]
Supported sensor and data types for MMA8652.
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_StartData(isf_SensorHandle_t *pSensorHandle)
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.

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_CTRL_REG2, (MAG3110_SET_FIELD(AUTO_MRST_EN,1)) | (MAG3110_SET_FIELD(RAW,0)) | MAG3110_SET_FIELD(MAG_RST,0) }
}
}
#define MAG3110_SET_FIELD(name, val)
Definition: mag3110.h:52

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.