XDK API  3.6.0
Documentation
Macros | Variables
SensorHandle.c File Reference
#include "XdkCommonInfo.h"
#include "XDK_SensorHandle.h"
#include "BCDS_Basics.h"
#include "BCDS_VirtualSensorHandle.h"
#include "sensorsHwConfig.h"
#include "BCDS_AxisRemap.h"
#include "BCDS_Bma280Utils.h"
#include "BCDS_Bme280Utils.h"
#include "BCDS_Bmi160Utils.h"
#include "BCDS_Bmg160Utils.h"
#include "BCDS_Bmm150Utils.h"
#include "BCDS_Max44009Utils.h"
#include "BSP_BoardType.h"
+ Include dependency graph for SensorHandle.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_SENSORHANDLE
 
#define BMA280_DEV_ADDR   UINT8_C(0x18)
 
#define BME280_DEV_ADDR   UINT8_C(0x76)
 
#define BMG160_DEV_ADDR   UINT8_C(0x68)
 
#define BMI160_DEV_ADDR   UINT8_C(0x69)
 
#define BMM150_DEV_ADDR   UINT8_C(0x10)
 
#define MAX44009_DEV_ADDR   UINT8_C(0x4A)
 
#define SENSOR_API_INITIALIZED   UINT8_C(1)
 
#define SENSOR_API_UNINITIALIZED   UINT8_C(0)
 

Variables

static Bma280Utils_Info_T bma280Sensor_S
 
static Bme280Utils_Info_T bme280Sensor_S
 
static Bmg160Utils_Info_T bmg160Sensor_S
 
static Bmi160Utils_Info_T bmi160AccelSensor_S
 
static Bmi160Utils_Info_T bmi160GyroSensor_S
 
static Bmm150Utils_Info_T bmm150Sensor_S
 
static LightSensor_Handle_T LightSensor_Handle_S
 
static Max44009Utils_Info_T max44009Sensor_S
 
AbsoluteHumidity_HandlePtr_T XdkAbsoluteHumidity_ClbrSensor_Handle = (AbsoluteHumidity_HandlePtr_T) & xdkEnvironmental_BME280_S
 Sensor Handler for the humidity Sensor. More...
 
Accelerometer_HandlePtr_T XdkAccelerometer_BMA280_Handle = &xdkAccelerometers_BMA280_S
 Sensor Handler for the BMA280 Sensor. More...
 
Accelerometer_HandlePtr_T XdkAccelerometer_BMI160_Handle = &xdkAccelerometers_BMI160_S
 Sensor Handler for the BMI160 Accelerometer Sensor. More...
 
CalibratedAccel_HandlePtr_T XdkAccelerometer_ClbrSensor_Handle = (CalibratedAccel_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for Calibrated accelerometer. More...
 
static Accelerometer_Handle_T xdkAccelerometers_BMA280_S
 
static Accelerometer_Handle_T xdkAccelerometers_BMI160_S
 
static
VirtualSensor_bsxBaseSensor_T 
xdkBsxBaseSensors_S
 
Environmental_HandlePtr_T XdkEnvironmental_BME280_Handle = &xdkEnvironmental_BME280_S
 Sensor Handler for the BME280 Sensor. More...
 
static Environmental_Handle_T xdkEnvironmental_BME280_S
 
FingerPrint_HandlePtr_T XdkFingerprint_VirtualSensor_Handle = (FingerPrint_HandlePtr_T) & xdkFingerprintBaseSensor_S
 Sensor Handler for Fingerprint Sensor. More...
 
static VirtualSensor_FPBaseSensor_T xdkFingerprintBaseSensor_S
 
Gestures_HandlePtr_T XdkGesture_VirtualSensor_Handle = (Gestures_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for Gesture Sensor. More...
 
Gravity_HandlePtr_T XdkGravity_VirtualSensor_Handle = (Gravity_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for the Gravity Sensor. More...
 
Gyroscope_HandlePtr_T XdkGyroscope_BMG160_Handle = &xdkGyroscope_BMG160_S
 Sensor Handler for the BMG160 Sensor. More...
 
static Gyroscope_Handle_T xdkGyroscope_BMG160_S
 
Gyroscope_HandlePtr_T XdkGyroscope_BMI160_Handle = &xdkGyroscope_BMI160_S
 Sensor Handler for the BMI160 Gyroscope Sensor. More...
 
static Gyroscope_Handle_T xdkGyroscope_BMI160_S
 
CalibratedGyro_HandlePtr_T XdkGyroscope_ClbrSensor_Handle = (CalibratedGyro_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for Calibrated gyroscope. More...
 
LightSensor_HandlePtr_T XdkLightSensor_MAX44009_Handle = &LightSensor_Handle_S
 Sensor Handler for the MAX44009 Sensor. More...
 
LinearAcceleration_HandlePtr_T XdkLinearAcceleration_ClbrSensor_Handle = (LinearAcceleration_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for Linear Acceleration Sensor. More...
 
Magnetometer_HandlePtr_T XdkMagnetometer_BMM150_Handle = &xdkMagnetometer_BMM150_S
 Sensor Handler for the BMM150 Sensor. More...
 
static Magnetometer_Handle_T xdkMagnetometer_BMM150_S
 
CalibratedMag_HandlePtr_T XdkMagnetometer_ClbrSensor_Handle = (CalibratedMag_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for Calibrated magnetometer. More...
 
Orientation_HandlePtr_T XdkOrientation_VirtualSensor_Handle = (Orientation_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for the Orientation Sensor. More...
 
Rotation_HandlePtr_T XdkRotation_VirtualSensor_Handle = (Rotation_HandlePtr_T) & xdkBsxBaseSensors_S
 Sensor Handler for the Rotation Sensor. More...
 
StepCounter_HandlePtr_T XdkStepCounter_VirtualSensor_Handle = (StepCounter_HandlePtr_T) & xdkAccelerometers_BMI160_S
 Sensor Handler for the Step Counter Sensor. More...
 

Detailed Description

Handles for the sensors will be returned through this module

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_SENSORHANDLE
#define BMA280_DEV_ADDR   UINT8_C(0x18)
#define BME280_DEV_ADDR   UINT8_C(0x76)
#define BMG160_DEV_ADDR   UINT8_C(0x68)
#define BMI160_DEV_ADDR   UINT8_C(0x69)
#define BMM150_DEV_ADDR   UINT8_C(0x10)
#define MAX44009_DEV_ADDR   UINT8_C(0x4A)
#define SENSOR_API_INITIALIZED   UINT8_C(1)
#define SENSOR_API_UNINITIALIZED   UINT8_C(0)

Variable Documentation

Bma280Utils_Info_T bma280Sensor_S
static
Initial value:
=
{
.BspSensorId = (uint32_t) BSP_XDK_SENSOR_BMA280,
.remap =
{
},
.ISRCallback = NULL,
.dev_addr = BMA280_DEV_ADDR,
}
#define RMP_BMA2X2_Y_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:64
#define BMA280_DEV_ADDR
Definition: SensorHandle.c:81
#define NULL
Definition: BCDS_Basics.h:80
#define RMP_BMA2X2_X_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:63
#define RMP_BMA2X2_Y_AXIS_CONFIG
Definition: sensorsHwConfig.h:60
#define RMP_BMA2X2_Z_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:65
#define RMP_BMA2X2_X_AXIS_CONFIG
Definition: sensorsHwConfig.h:59
#define RMP_BMA2X2_Z_AXIS_CONFIG
Definition: sensorsHwConfig.h:61
Definition: BSP_BoardType.h:195
Bme280Utils_Info_T bme280Sensor_S
static
Initial value:
=
{
.BspSensorId = (uint32_t) BSP_XDK_SENSOR_BME280,
.dev_addr = BME280_DEV_ADDR,
}
#define BME280_DEV_ADDR
Definition: SensorHandle.c:83
Definition: BSP_BoardType.h:197
Bmg160Utils_Info_T bmg160Sensor_S
static
Initial value:
=
{
.BspSensorId = (uint32_t) BSP_XDK_SENSOR_BMG160,
.remap =
{
},
.ISRCallback = NULL,
.dev_addr = BMG160_DEV_ADDR,
}
#define NULL
Definition: BCDS_Basics.h:80
#define BMG160_DEV_ADDR
Definition: SensorHandle.c:82
#define RMP_BMG160_Z_AXIS_CONFIG
Definition: sensorsHwConfig.h:72
#define RMP_BMG160_Y_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:75
#define RMP_BMG160_Z_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:76
Definition: BSP_BoardType.h:196
#define RMP_BMG160_X_AXIS_CONFIG
Definition: sensorsHwConfig.h:70
#define RMP_BMG160_Y_AXIS_CONFIG
Definition: sensorsHwConfig.h:71
#define RMP_BMG160_X_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:74
Bmi160Utils_Info_T bmi160AccelSensor_S
static
Initial value:
=
{
.BspSensorId = (uint32_t) BSP_XDK_SENSOR_BMI160,
.remap =
{
},
.ISRCallback = NULL,
.dev_addr = BMI160_DEV_ADDR,
}
#define BMI160_DEV_ADDR
Definition: SensorHandle.c:86
#define NULL
Definition: BCDS_Basics.h:80
#define RMP_BMIACCEL_Y_AXIS_CONFIG
Definition: sensorsHwConfig.h:105
Definition: BSP_BoardType.h:200
#define RMP_BMIACCEL_X_AXIS_CONFIG
Definition: sensorsHwConfig.h:104
#define RMP_BMIACCEL_Y_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:109
#define RMP_BMIACCEL_X_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:108
#define RMP_BMIACCEL_Z_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:110
#define RMP_BMIACCEL_Z_AXIS_CONFIG
Definition: sensorsHwConfig.h:106
Bmi160Utils_Info_T bmi160GyroSensor_S
static
Initial value:
=
{
.BspSensorId = (uint32_t) BSP_XDK_SENSOR_BMI160,
.remap =
{
},
.ISRCallback = NULL,
.dev_addr = BMI160_DEV_ADDR,
}
#define RMP_BMIGYRO_X_AXIS_CONFIG
Definition: sensorsHwConfig.h:112
#define RMP_BMIGYRO_Y_AXIS_CONFIG
Definition: sensorsHwConfig.h:113
#define RMP_BMIGYRO_Z_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:118
#define BMI160_DEV_ADDR
Definition: SensorHandle.c:86
#define NULL
Definition: BCDS_Basics.h:80
#define RMP_BMIGYRO_Y_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:117
#define RMP_BMIGYRO_X_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:116
Definition: BSP_BoardType.h:200
#define RMP_BMIGYRO_Z_AXIS_CONFIG
Definition: sensorsHwConfig.h:114
Bmm150Utils_Info_T bmm150Sensor_S
static
Initial value:
=
{
.BspSensorId = (uint32_t) BSP_XDK_SENSOR_BMM150,
.remap =
{
},
.ISRCallback = NULL,
.dev_addr = BMM150_DEV_ADDR,
}
#define BMM150_DEV_ADDR
Definition: SensorHandle.c:84
#define RMP_BMM150_X_AXIS_CONFIG
Definition: sensorsHwConfig.h:81
#define RMP_BMM150_Y_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:86
#define RMP_BMM150_X_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:85
#define RMP_BMM150_Z_AXIS_CONFIG
Definition: sensorsHwConfig.h:83
#define NULL
Definition: BCDS_Basics.h:80
#define RMP_BMM150_Y_AXIS_CONFIG
Definition: sensorsHwConfig.h:82
#define RMP_BMM150_Z_AXIS_SIGN_CONFIG
Definition: sensorsHwConfig.h:87
Definition: BSP_BoardType.h:198
Initial value:
= {
.SensorInformation.sensorID = LIGHTSENSOR_MAX44009,
.SensorInformation.initializationStatus = SENSOR_API_UNINITIALIZED,
.SensorPtr = &max44009Sensor_S,
}
Definition: BCDS_LightSensor.h:96
static Max44009Utils_Info_T max44009Sensor_S
Definition: SensorHandle.c:170
#define SENSOR_API_UNINITIALIZED
Definition: SensorHandle.c:79
Max44009Utils_Info_T max44009Sensor_S
static
Initial value:
=
{
.BspSensorId = (uint32_t) BSP_XDK_SENSOR_MAX44009,
.ISRCallback = NULL,
.dev_addr = MAX44009_DEV_ADDR,
}
#define MAX44009_DEV_ADDR
Definition: SensorHandle.c:85
#define NULL
Definition: BCDS_Basics.h:80
Definition: BSP_BoardType.h:199
Accelerometer_Handle_T xdkAccelerometers_BMA280_S
static
Initial value:
=
{
.SensorInformation.sensorID = ACCELEROMETER_BMA280,
.SensorInformation.initializationStatus = SENSOR_API_UNINITIALIZED,
.SensorPtr = &bma280Sensor_S,
.IntChannel1.deferredCallback = NULL,
.IntChannel1.rtCallback = NULL,
.IntChannel2.deferredCallback = NULL,
.IntChannel2.rtCallback = NULL,
}
#define NULL
Definition: BCDS_Basics.h:80
Definition: BCDS_Accelerometer.h:172
static Bma280Utils_Info_T bma280Sensor_S
Definition: SensorHandle.c:89
#define SENSOR_API_UNINITIALIZED
Definition: SensorHandle.c:79
Accelerometer_Handle_T xdkAccelerometers_BMI160_S
static
Initial value:
= {
.SensorPtr = &bmi160AccelSensor_S,
.IntChannel1.deferredCallback = NULL,
.IntChannel1.rtCallback = NULL,
.IntChannel2.deferredCallback = NULL,
.IntChannel2.rtCallback = NULL,
.SensorInformation.initializationStatus = SENSOR_API_UNINITIALIZED,
.SensorInformation.sensorID = ACCELEROMETER_BMI160,
}
#define NULL
Definition: BCDS_Basics.h:80
Definition: BCDS_Accelerometer.h:173
static Bmi160Utils_Info_T bmi160AccelSensor_S
Definition: SensorHandle.c:186
#define SENSOR_API_UNINITIALIZED
Definition: SensorHandle.c:79
VirtualSensor_bsxBaseSensor_T xdkBsxBaseSensors_S
static
Initial value:
=
{
}
struct Accelerometer_Handle_S * Accelerometer_HandlePtr_T
Definition: BCDS_Accelerometer.h:206
structure to represent corresponding Accelerometer handle
Definition: BCDS_Magnetometer.h:123
static Accelerometer_Handle_T xdkAccelerometers_BMI160_S
Definition: SensorHandle.c:199
static Gyroscope_Handle_T xdkGyroscope_BMI160_S
Definition: SensorHandle.c:223
static Magnetometer_Handle_T xdkMagnetometer_BMM150_S
Definition: SensorHandle.c:161
struct Gyroscope_Handle_S * Gyroscope_HandlePtr_T
Definition: BCDS_Gyroscope.h:165
Environmental_Handle_T xdkEnvironmental_BME280_S
static
Initial value:
= {
.SensorInformation.sensorID = ENVIRONMENTAL_BME280,
.SensorInformation.initializationStatus = SENSOR_API_UNINITIALIZED,
.SensorPtr = &bme280Sensor_S,
}
static Bme280Utils_Info_T bme280Sensor_S
Definition: SensorHandle.c:136
Definition: BCDS_Environmental.h:147
#define SENSOR_API_UNINITIALIZED
Definition: SensorHandle.c:79
VirtualSensor_FPBaseSensor_T xdkFingerprintBaseSensor_S
static
Initial value:
=
{
.accelerometerHandle = NULL,
}
#define NULL
Definition: BCDS_Basics.h:80
static Magnetometer_Handle_T xdkMagnetometer_BMM150_S
Definition: SensorHandle.c:161
struct Magnetometer_Handle_S * Magnetometer_HandlePtr_T
Definition: BCDS_Magnetometer.h:128
Gyroscope_Handle_T xdkGyroscope_BMG160_S
static
Initial value:
= {
.sensorInfo.sensorID = BMG160_GYRO_SENSOR,
.sensorInfo.initializationStatus = SENSOR_API_UNINITIALIZED,
.sensorPtr = &bmg160Sensor_S,
}
Definition: BCDS_Gyroscope.h:145
static Bmg160Utils_Info_T bmg160Sensor_S
Definition: SensorHandle.c:115
#define SENSOR_API_UNINITIALIZED
Definition: SensorHandle.c:79
Gyroscope_Handle_T xdkGyroscope_BMI160_S
static
Initial value:
= {
.sensorPtr = &bmi160GyroSensor_S,
.sensorInfo =
{
.sensorID = BMI160_GYRO_SENSOR,
.initializationStatus = SENSOR_API_UNINITIALIZED,
},
}
Definition: BCDS_Gyroscope.h:146
static Bmi160Utils_Info_T bmi160GyroSensor_S
Definition: SensorHandle.c:211
#define SENSOR_API_UNINITIALIZED
Definition: SensorHandle.c:79
Magnetometer_Handle_T xdkMagnetometer_BMM150_S
static
Initial value:
= {
.SensorInformation.sensorID = MAGNETOMETER_BMM150,
.SensorInformation.initializationStatus = SENSOR_API_UNINITIALIZED,
.SensorPtr = &bmm150Sensor_S,
}
static Bmm150Utils_Info_T bmm150Sensor_S
Definition: SensorHandle.c:150
Definition: BCDS_Magnetometer.h:62
#define SENSOR_API_UNINITIALIZED
Definition: SensorHandle.c:79

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