XDK API  3.6.0
Documentation
Macros | Functions | Variables
Bmi160Utils.c File Reference
#include "BCDS_SensorUtils.h"
#include "BCDS_Bmi160Utils.h"
#include "SensorUtilsAxisRemap.h"
#include "BCDS_I2CTransceiver.h"
#include "BCDS_BSP_Board.h"
#include "SensorNodeMapping.h"
#include <bmi160.h>
+ Include dependency graph for Bmi160Utils.c:

Macros

#define ACCEL_DELAY   UINT32_C(4)
 
#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_BMI160
 
#define ENABLE_INTERRUPT   UINT8_C(1)
 
#define GYRO_DELAY   UINT32_C(55)
 

Functions

static void Bmi160_DelayMS (BMI160_MDELAY_DATA_TYPE delayMS)
 Function to provide a delay. More...
 
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...
 
static Retcode_T libErrorMapping (BMI160_RETURN_FUNCTION_TYPE bmiLibReturn)
 This function maps error codes returned from BMI160 library to retcode values. More...
 

Variables

static struct bmi160_t bmi160Initialization
 
static bool initializationStatus = false
 

Macro Definition Documentation

#define ACCEL_DELAY   UINT32_C(4)

This macro indicates the delay required for BMI160_ACCEL while switching from Suspend/low power mode to normal mode

#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_BMI160
#define ENABLE_INTERRUPT   UINT8_C(1)

macro used to enable the interrupt variable to check initialization status

#define GYRO_DELAY   UINT32_C(55)

This macro indicates the delay required for BMI160_GYRO while switching from Suspend mode to normal mode

Function Documentation

static void Bmi160_DelayMS ( BMI160_MDELAY_DATA_TYPE  delayMS)
static
Parameters
delayMSDelay in milliseconds
static Retcode_T libErrorMapping ( BMI160_RETURN_FUNCTION_TYPE  bmiLibReturn)
static
Parameters
[in]BMI160_RETURN_FUNCTION_TYPEReturn value from BMA2X2 library
Return values
RETCODE_OKBMI160 sensor API call success
RETCODE_FAILUREBMI160 sensor API call failed
RETCODE_INVALID_PARAMBMI160 sensor API call failed because of invalid input parameter

Variable Documentation

struct bmi160_t bmi160Initialization
static
bool initializationStatus = false
static

BMI160 initialization structure


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:49 by doxygen 1.8.8