ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
isf_dsa_direct.c File Reference
#include "isf_dsa_direct.h"
Include dependency graph for isf_dsa_direct.c:

Go to the source code of this file.

Functions

int32 init_sensor (uint8 nSensorID, isf_SensorHandle_t *pSensorAdapterHandle, LWEVENT_STRUCT *pEventGroup, uint32 nEventFieldIndex)
 This function initializes the sensor adapters in the absence of the Sensor Manager. More...
 
int32 configure_sensor (isf_SensorHandle_t *pSensorAdapterHandle, isf_SubscriptionSettings_t *pRequiredSettings, isf_fifo_t *pfifo)
 
int32 start_sensor (isf_SensorHandle_t *pSensorAdapterHandle)
 
int32 stop_sensor (isf_SensorHandle_t *pSensorAdapterHandle)
 
int32 shutdown_sensor (isf_SensorHandle_t *pSensorAdapterHandle)
 
int32 convert_sensor_data (isf_SensorHandle_t *pSensorAdapterHandle, isf_SensorDataTypes_t convertToType, isf_dsa_result_types_t resultType, void *nativeSample, void *convertedSample)
 

Variables

const isf_SensorConfig_t gSensorList []
 This is the external declaration of the DSA sensor list array containing the sensor adapters and sensor hardware mapping information. More...
 
isf_SensorHandle_t gSensorHandleList []
 This is the global DSA sensor driver list of the current sensor handles. More...
 

Function Documentation

int32 convert_sensor_data ( isf_SensorHandle_t pSensorAdapterHandle,
isf_SensorDataTypes_t  convertToType,
isf_dsa_result_types_t  resultType,
void *  nativeSample,
void *  convertedSample 
)
int32 init_sensor ( uint8  nSensorID,
isf_SensorHandle_t pSensorAdapterHandle,
LWEVENT_STRUCT *  pEventGroup,
uint32  nEventFieldIndex 
)

This function initializes the sensor adapters in the absence of the Sensor Manager.

Parameters
[in]nSensorIDThe index of the sensor in the gSensorList array to initialize
[in]pSensorAdapterHandleThe handled to the Sensor Adapter.
[in]pEventGroupEvent Group for Sensor Adapter to signal on new data available
[in]nEventFieldIndexEvent Flag for Sensor Adapter to signal on new data available
Returns
init_sensors() returns a pointer to a sensor handle
Return values
non-NULLThe initialization succeeded and the return value is a valid sensor handle
NULLThe initialization failed
Constraints:
Must only be called once for a given sensor index.
Reentrant: No.

Definition at line 38 of file isf_dsa_direct.c.

References isf_SensorHandle_st::adapterStatus, isf_dsa_Adapter_st::control, isf_SensorHandle_st::controlData, DSA_STATE_INITIALIZED, DSA_STATE_NOT_INITIALIZED, ERR_INVALID_HANDLE, ERR_INVALID_PTR, isf_dsa_ControlInterface_st::Initialize, ISF_SUCCESS, isf_dsa_ControlData_st::nEventFieldIndex, SensorConfig_st::pAdapter, isf_SensorHandle_st::pDeviceDescriptor, isf_dsa_ControlData_st::pEventGroup, and isf_SensorHandle_st::pSensorStaticConfig.

Referenced by App1_MainTask(), and fsl_fusion_virt_3D_orient_Initialize().

Here is the caller graph for this function:

int32 shutdown_sensor ( isf_SensorHandle_t pSensorAdapterHandle)
int32 start_sensor ( isf_SensorHandle_t pSensorAdapterHandle)

Variable Documentation

isf_SensorHandle_t gSensorHandleList[]

This is the global DSA sensor driver list of the current sensor handles.

This is the external declaration of the DSA sensor handle list array containing the sensor adapters and device specific information.

Definition at line 47 of file isf_sensor_configuration.c.

const isf_SensorConfig_t gSensorList[]

This is the external declaration of the DSA sensor list array containing the sensor adapters and sensor hardware mapping information.

This is the external declaration of the DSA sensor list array containing the sensor adapters and sensor hardware mapping information.

Definition at line 26 of file isf_sensor_configuration.c.