XDK API  3.6.0
Documentation
Files | Data Structures | Typedefs | Functions
BMI160_SensorUtils

SensorUtils Interfaces of BMI160. More...

+ Collaboration diagram for BMI160_SensorUtils:

Files

file  BCDS_Bmi160Utils.h
 

Data Structures

struct  Bmi160Utils_Info_S
 structure to hold the bmi160 specific GPIO ,I2c configurations,Remap configuration and the function pointers to initialize configure and get the data from the sensor More...
 

Typedefs

typedef struct Bmi160Utils_Info_S Bmi160Utils_Info_T
 
typedef struct Bmi160Utils_Info_SBmi160Utils_InfoPtr_T
 

Functions

Retcode_T Bmi160Utils_initialize (Bmi160Utils_InfoPtr_T bmi160Info)
 Function to initialize bmi160.This needs to be called before calling any other API. More...
 
Retcode_T Bmi160Utils_remapAxis (Bmi160Utils_InfoPtr_T bmi160Info, AxisRemap_Data_T *bmiData)
 Function to read remapped bmi160 data . More...
 
Retcode_T Bmi160Utils_uninitialize (Bmi160Utils_InfoPtr_T bmi160Info)
 Function to uninitialize bmi160.After calling this API sensor is no more usable without initializing it again by calling initialize API. More...
 

Detailed Description

The interface header exports High-level Sensor API's which are used to Initialize sensor, and re-map the axis for the BMI160.


Data Structure Documentation

struct Bmi160Utils_Info_S
+ Collaboration diagram for Bmi160Utils_Info_S:

Data Fields

uint32_t BspSensorId
 
uint8_t dev_addr
 
BSP_Sensor_InterruptCallback_T ISRCallback
 
AxisRemap_Config_T remap
 

Field Documentation

uint32_t BspSensorId
uint8_t dev_addr

Typedef Documentation

Function Documentation

Retcode_T Bmi160Utils_initialize ( Bmi160Utils_InfoPtr_T  bmi160Info)
Parameters
[in]bmi160Info:structure holding the bmi160 specific configurations
[in]callback:callback that will be called in deferred context when an registered interrupt occurs
Return values
RETCODE_OKBMI160 initialized successfully
RETCODE_NULL_POINTERwhen any of the input parameter(bmi160Info or bmi160Info->ISRCallback) is NULL.
RETCODE_LIB_NULL_POINTERwhen any of the input parameter for BST library API is NULL.
RETCODE_BST_BMI160_ERRORwhen error is returned from BST library API.
RETCODE_DOPPLE_INITIALIZATIONWhen initialization is already done.
Returns
In case of other failures refer BSP_SensorNode_Enable or #I2CSensorTransceiver_Init API's.
Note
1) The return value consist of (First MSB Byte represents Package ID,Next Byte represents Severity and Last 2LSB Bytes represents error code).
2) The support of multiple instances is not possible due to the limitation in the BST library.
3) Calling Bmi160 initialization API present in sensorUtils (Bmi160Utils_initialize) and BST library (bmi160_init) concurrently will lead to unexpected behaviour.

+ Here is the caller graph for this function:

Retcode_T Bmi160Utils_remapAxis ( Bmi160Utils_InfoPtr_T  bmi160Info,
AxisRemap_Data_T bmiData 
)
Parameters
[in]bmi160Info:structure holding the bmi160 specific configurations
[in,out]bmiData:structure to hold the remapped bmi160 data
Return values
RETCODE_OKBMI160 initialized successfully
RETCODE_NULL_POINTERwhen any of the input parameter is NULL.
RETCODE_UNINITIALIZEDwhen this api is called before initializing Bma280 sensor.
Returns
In case of other failures refer AxisRemap_remapSensorData API.
Note
The return value consist of (First MSB Byte represents Package ID,Next Byte represents Severity and Last 2LSB Bytes represents error code).

copying the actual sensor data into a local variable

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T Bmi160Utils_uninitialize ( Bmi160Utils_InfoPtr_T  bmi160Info)
Parameters
[in]bmi160Info:structure holding the bmi160 specific configurations
Return values
RETCODE_OKBMI160 initialized successfully
RETCODE_NULL_POINTERwhen bmi160Info is NULL.
RETCODE_UNINITIALIZEDwhen this api is called before initializing Bma280 sensor.
Returns
In case of other failures refer BSP_SensorNode_Disable or BSP_SensorNode_IsAllNodesDisabled or #I2CSensorTransceiver_Deinit API.
Note
The return value consist of (First MSB Byte represents Package ID,Next Byte represents Severity and Last 2LSB Bytes represents error code).

+ Here is the caller graph for this function:


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:52 by doxygen 1.8.8