ISF  2.2 rev 5
Intelligent Sensing Framework for Kinetis with Processor Expert
isf_dsa_direct.h File Reference
#include "isf.h"
#include "isf_dsa_direct_types.h"
#include "isf_dsa_adapter.h"
Include dependency graph for isf_dsa_direct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int32 init_sensor (uint8 nSensorID, isf_SensorHandle_t *pSensorAdapterHandle, event_t *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

uint8 gNumSupportedSensors
 This is the external declaration of the current number of available sensors. 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,
event_t *  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 41 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(), BasicApp1_MainTask(), and fsl_fusion_virt_3D_orient_Initialize().

Here is the caller graph for this function:

int32 start_sensor ( isf_SensorHandle_t pSensorAdapterHandle)

Variable Documentation

uint8 gNumSupportedSensors

This is the external declaration of the current number of available sensors.

This is the external declaration of the current number of available sensors.

Definition at line 64 of file isf_sensor_configuration.c.

Referenced by BasicApp1_FlashSensor().