Macros | Functions | Variables
Bmg160Utils.c File Reference
#include "BCDS_SensorUtils.h"
#include "BCDS_Bmg160Utils.h"
#include "SensorUtilsAxisRemap.h"
#include "BCDS_I2CTransceiver.h"
#include "BCDS_BSP_Board.h"
#include "SensorNodeMapping.h"
#include <bmg160.h>
+ Include dependency graph for Bmg160Utils.c:

Macros

#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_BMG160
 

Functions

static void Bmg160_DelayMS (BMG160_MDELAY_DATA_TYPE delayMS)
 Function to provide a delay. More...
 
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...
 
static Retcode_T libErrorMapping (BMG160_RETURN_FUNCTION_TYPE bmgLibReturn)
 This function maps error codes returned from BMG160 library to retcode values. More...
 

Variables

static struct bmg160_t bmg160Initialization
 
static bool initializationStatus = false
 

Macro Definition Documentation

#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_BMG160

Function Documentation

static void Bmg160_DelayMS ( BMG160_MDELAY_DATA_TYPE  delayMS)
static
Parameters
delayMSDelay in milliseconds

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Retcode_T libErrorMapping ( BMG160_RETURN_FUNCTION_TYPE  bmgLibReturn)
static
Parameters
[in]BMG160_RETURN_FUNCTION_TYPEReturn value from BMA2X2 library
Return values
RETCODE_OKBMG160 sensor API call success
RETCODE_FAILUREBMG160 sensor API call failed
RETCODE_INVALID_PARAMBMG160 sensor API call failed because of invalid input parameter

+ Here is the caller graph for this function:

Variable Documentation

struct bmg160_t bmg160Initialization
static
bool initializationStatus = false
static

< variable to check initialization status BMG160 initialization structure


This documentation file has been automatically generated on Fri Oct 4 2019 03:47:29 by doxygen 1.8.8