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

Macros

#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_BMM150
 
#define BMM050_SUCCESS   UINT8_C(0)
 

Functions

static void Bmm150_DelayMS (BMM050_MDELAY_DATA_TYPE delayMS)
 Function to provide a delay. More...
 
Retcode_T Bmm150Utils_initialize (Bmm150Utils_InfoPtr_T bmm150Info)
 Function to initialize bmm150.This needs to be called before calling any other API. More...
 
Retcode_T Bmm150Utils_remapAxis (Bmm150Utils_InfoPtr_T bmm150Info, AxisRemap_Data_T *bmiData)
 Function to read remapped bmm150 data . More...
 
Retcode_T Bmm150Utils_uninitialize (Bmm150Utils_InfoPtr_T bmm150Info)
 Function to uninitialize bmm150.After calling this API sensor is no more usable without initializing it again by calling initialize API. More...
 
static Retcode_T libErrorMapping (BMM050_RETURN_FUNCTION_TYPE bmmLibReturn)
 This function maps error codes returned from BMM150 library to retcode values. More...
 

Variables

static struct bmm050_t bmm150Initialization
 
static bool initializationStatus = false
 

Macro Definition Documentation

#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_BMM150
#define BMM050_SUCCESS   UINT8_C(0)

macro used to represent success of library variable to check initialization status

Function Documentation

static void Bmm150_DelayMS ( BMM050_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 ( BMM050_RETURN_FUNCTION_TYPE  bmmLibReturn)
static
Parameters
[in]BMM050_RETURN_FUNCTION_TYPEReturn value from BMA2X2 library
Return values
RETCODE_OKBMM150 sensor API call success
RETCODE_FAILUREBMM150 sensor API call failed
RETCODE_INVALID_PARAMBMM150 sensor API call failed because of invalid input parameter

+ Here is the caller graph for this function:

Variable Documentation

struct bmm050_t bmm150Initialization
static
bool initializationStatus = false
static

BMM150 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