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

SensorUtils Interfaces of BMG160. More...

+ Collaboration diagram for BMG160_SensorUtils:

Files

file  BCDS_Bmg160Utils.h
 

Data Structures

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

Typedefs

typedef struct Bmg160Utils_Info_S Bmg160Utils_Info_T
 
typedef struct Bmg160Utils_Info_SBmg160Utils_InfoPtr_T
 

Functions

Retcode_T Bmg160Utils_initialize (Bmg160Utils_InfoPtr_T bmg160Info)
 Function to initialize bmg160.This needs to be called before calling any other API. More...
 
Retcode_T Bmg160Utils_remapAxis (Bmg160Utils_InfoPtr_T bmg160Info, AxisRemap_Data_T *bmgData)
 Function to read remapped bmg160 data. More...
 
Retcode_T Bmg160Utils_uninitialize (Bmg160Utils_InfoPtr_T bmg160Info)
 Function to uninitialize bmg160.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 BMG160.


Data Structure Documentation

struct Bmg160Utils_Info_S
+ Collaboration diagram for Bmg160Utils_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 Bmg160Utils_initialize ( Bmg160Utils_InfoPtr_T  bmg160Info)
Parameters
[in]bmg160Info:structure holding the bmg160 specific configurations
[in]callback:callback that will be called in deferred context when an registered interrupt occurs
Return values
RETCODE_OKBMG160 initialized successfully
RETCODE_NULL_POINTERwhen any of the input paramete(bmg160Info or bmg160Info->ISRCallback) is NULL.
RETCODE_LIB_NULL_POINTERwhen any of the input parameter for BST library API is NULL.
RETCODE_BST_BMG160_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 (Bmg160Utils_initialize) and BST library (bmg160_init) concurrently will lead to unexpected behaviour.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T Bmg160Utils_remapAxis ( Bmg160Utils_InfoPtr_T  bmg160Info,
AxisRemap_Data_T bmgData 
)
Parameters
[in]bmg160Info:structure holding the bmg160 specific configurations
[in,out]bmgData:structure to hold the remapped bmg160 data
Return values
RETCODE_OKBMG160 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 Bmg160Utils_uninitialize ( Bmg160Utils_InfoPtr_T  bmg160Info)
Parameters
[in]bmg160Info:structure holding the bmg160 specific configurations
Return values
RETCODE_OKBMG160 initialized successfully
RETCODE_NULL_POINTERwhen bmg160Info 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 call graph for this function:

+ 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