![]() |
ISF
2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
|
Data Structures | |
struct | mag3110_DataBuffer_t |
This structure defines the dummy DSA data buffer format. More... | |
Variables | |
isf_SensorTypes_t | mag3110_SupportedSensorTypes [] |
Supported sensor and data types for MMA8652. More... | |
isf_SensorDataTypes_t | mag3110_SupportedDataTypes [] |
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Calibrate | ( | isf_SensorHandle_t * | pSensorHandle, |
void * | pCalData | ||
) |
Definition at line 416 of file fsl_mag3110_i2c_3D_mag.c.
References ISF_SUCCESS.
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Configure | ( | isf_SensorHandle_t * | pSensorHandle, |
isf_dsa_SensorSettings_t * | pSensorSettings | ||
) |
Definition at line 189 of file fsl_mag3110_i2c_3D_mag.c.
References isf_SensorHandle_st::adapterStatus, BM_ERROR, bm_register_periodic_callback(), DeviceDescriptor_struct::cDescriptor, isf_SensorHandle_st::controlData, DeviceDescriptor_struct::deviceHandle, DeviceDescriptor_struct::deviceSemaphore, dm_channel_acquire_lock(), dm_channel_release_lock(), dm_device_read(), DSA_ERR_CONFIGURE, DSA_ERR_PARAM, DSA_STATE_CONFIGURED_STOPPED, DSA_STATE_INITIALIZED, fsl_mag3110_i2c_3D_mag_PeriodicCallback(), ISF_SUCCESS, mag3110_SetConfig(), mag3110_SetMode(), isf_dsa_SensorSettings_st::nSamplePeriod, isf_SensorHandle_st::pDeviceDescriptor, SENSOR_STANDBY, isf_dsa_ControlData_st::sensorSettings, and DeviceDescriptor_struct::token.
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 at line 574 of file fsl_mag3110_i2c_3D_mag.c.
References DSA_ERR_BAD_RESULT_TYPE, DSA_ERR_BAD_SENSOR_DATA_TYPE, DSA_RESULT_TYPE_ENG_FIXED, DSA_RESULT_TYPE_ENG_FLOAT, DSA_RESULT_TYPE_RAW_COUNTS, SensorConfig_st::pSensorSpecificSettings, isf_SensorHandle_st::pSensorStaticConfig, and TYPE_MAGNETIC_FIELD_STRENGTH_3D.
Referenced by fsl_mag3110_i2c_3D_mag_PeriodicCallback().
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_EndData | ( | isf_SensorHandle_t * | pSensorHandle | ) |
Definition at line 349 of file fsl_mag3110_i2c_3D_mag.c.
References isf_SensorHandle_st::adapterStatus, BM_ERROR, bm_stop(), DeviceDescriptor_struct::deviceSemaphore, DSA_ERR_END_DATA, DSA_ERR_PARAM, DSA_STATE_CONFIGURED_STARTED, DSA_STATE_CONFIGURED_STOPPED, ISF_SUCCESS, mag3110_SetMode(), isf_SensorHandle_st::pDeviceDescriptor, SENSOR_STANDBY, and DeviceDescriptor_struct::token.
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Initialize | ( | isf_SensorHandle_t * | pSensorHandle | ) |
Definition at line 62 of file fsl_mag3110_i2c_3D_mag.c.
References isf_SensorHandle_st::adapterStatus, mag3110_DataBuffer_t::addr, DeviceDescriptor_struct::cDescriptor, SensorConfig_st::channelId, COMM_STATE_OK, SensorConfig_st::commInfo, DeviceDescriptor_struct::deviceHandle, DeviceDescriptor_struct::deviceSemaphore, dm_channel_get_state(), dm_channel_init(), dm_channel_start(), dm_device_open(), DSA_ERR_INITIALIZE, DSA_ERR_PARAM, DSA_STATE_INITIALIZED, DSA_STATE_NOT_INITIALIZED, ISF_SUCCESS, mag3110_DataBuffer_t::mag, mag3110_CheckId(), DeviceDescriptor_struct::pCurrentSample, isf_SensorHandle_st::pDeviceDescriptor, isf_SensorHandle_st::pSensorStaticConfig, DeviceDescriptor_struct::skipFramecnt, and mag3110_DataBuffer_t::timeStamp.
void fsl_mag3110_i2c_3D_mag_PeriodicCallback | ( | void * | pSensorHandle | ) |
Definition at line 464 of file fsl_mag3110_i2c_3D_mag.c.
References isf_SensorHandle_st::adapterStatus, isf_SensorHandle_st::controlData, DeviceDescriptor_struct::deviceHandle, DeviceDescriptor_struct::deviceSemaphore, dm_device_read(), DSA_STATE_CONFIGURED_STARTED, fsl_mag3110_i2c_3D_mag_Convert(), isf_fifo_el_get_insert_pointer(), isf_fifo_el_increment(), ISF_FIFO_FULL, isf_fifo_lock(), isf_fifo_unlock(), isf_swap2byte(), isf_time_util_get_usec(), mag3110_DataBuffer_t::mag, mag3110_GetData(), isf_dsa_ControlData_st::nEventFieldIndex, DeviceDescriptor_struct::pCurrentSample, isf_SensorHandle_st::pDeviceDescriptor, isf_dsa_ControlData_st::pEventGroup, isf_dsa_SensorSettings_st::pSampleBufferInfo, isf_dsa_SensorSettings_st::resultFormat, isf_dsa_SensorSettings_st::resultType, isf_dsa_ControlData_st::sensorSettings, DeviceDescriptor_struct::skipFramecnt, mag3110_DataBuffer_t::timeStamp, and TYPE_NATIVE_SENSOR_DATA_TYPE.
Referenced by fsl_mag3110_i2c_3D_mag_Configure().
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_Shutdown | ( | isf_SensorHandle_t * | pSensorHandle | ) |
Definition at line 436 of file fsl_mag3110_i2c_3D_mag.c.
References isf_SensorHandle_st::adapterStatus, bm_unregister_callback(), DSA_ERR_PARAM, DSA_STATE_INITIALIZED, ISF_SUCCESS, isf_SensorHandle_st::pDeviceDescriptor, and DeviceDescriptor_struct::token.
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_StartData | ( | isf_SensorHandle_t * | pSensorHandle | ) |
Definition at line 286 of file fsl_mag3110_i2c_3D_mag.c.
References isf_SensorHandle_st::adapterStatus, BM_ERROR, bm_start(), DeviceDescriptor_struct::deviceSemaphore, DSA_ERR_PARAM, DSA_ERR_START_DATA, DSA_STATE_CONFIGURED_STARTED, DSA_STATE_CONFIGURED_STOPPED, FALSE, ISF_SUCCESS, mag3110_SetMode(), isf_SensorHandle_st::pDeviceDescriptor, SENSOR_ACTIVE, and DeviceDescriptor_struct::token.
isf_dsa_status_t fsl_mag3110_i2c_3D_mag_ValidateSettings | ( | isf_SensorHandle_t * | pSensorHandle, |
isf_dsa_SensorSettings_t * | pSubSettings | ||
) |
Definition at line 156 of file fsl_mag3110_i2c_3D_mag.c.
References DSA_ERR_PARAM, and mag3110_ValidateConfig().
isf_SensorDataTypes_t mag3110_SupportedDataTypes[] |
Definition at line 47 of file fsl_mag3110_i2c_3D_mag.c.
isf_SensorTypes_t mag3110_SupportedSensorTypes[] |
Supported sensor and data types for MMA8652.
Definition at line 46 of file fsl_mag3110_i2c_3D_mag.c.