XDK API  3.6.0
Documentation
Data Structures | Macros | Typedefs | Functions | Variables
LWM2MObjectAccelerometer.h File Reference

Interface header for LWM2MObjectAccelerometer file. More...

#include <Serval_Lwm2m.h>
+ Include dependency graph for LWM2MObjectAccelerometer.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  LWM2MObjectAccelerometer_Resource_S
 LWM2M resource data for accelerometer. More...
 

Macros

#define LWM2M_OBJECTID_IPSO_ACCELEROMETER   3313
 LWM2M object id for accelerometer. More...
 

Typedefs

typedef struct
LWM2MObjectAccelerometer_Resource_S 
LWM2MObjectAccelerometer_Resource_T
 

Functions

void LWM2MObjectAccelerometer_Disable (void)
 Disable LWM2M object instance to stop providing sensor data. Sets unit to "" and all other values to 0. Function is thread safe, it schedules a job for serval. Execution may therefore be deferred. More...
 
void LWM2MObjectAccelerometer_Enable (float minRangeValue, float maxRangeValue)
 Enable LWM2M object instance to start providing sensor data. Function is thread safe, it schedules a job for serval. Execution may therefore be deferred. More...
 
void LWM2MObjectAccelerometer_Init (void)
 Initialize LWM2M object instance. Must be called before any other function call. More...
 
void LWM2MObjectAccelerometer_SetValues (float xAxis, float yAxis, float zAxis)
 Set values for x-, y-, and z-axis. More...
 

Variables

LWM2MObjectAccelerometer_Resource_T LWM2MObjectAccelerometerResources
 LWM2M resource data for instance 0. More...
 

Macro Definition Documentation

#define LWM2M_OBJECTID_IPSO_ACCELEROMETER   3313

Typedef Documentation

Function Documentation

void LWM2MObjectAccelerometer_Disable ( void  )

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MObjectAccelerometer_Enable ( float  minRange,
float  maxRange 
)
Parameters
[in]minRangeValueminimum range of value in [g].
[in]maxRangeValuemaximum range of value in [g].

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MObjectAccelerometer_Init ( void  )

Refer interface header for description

void LWM2MObjectAccelerometer_SetValues ( float  xAxis,
float  yAxis,
float  zAxis 
)

Set values for axis, units in [g]. Will triggers the sending of a notification, if a value was changed. Function is thread safe, it schedules a job for serval. Execution may therefore be deferred.

Parameters
[in]xAxisacceleration of x-axis in [g]
[in]yAxisacceleration of y-axis in [g]
[in]zAxisacceleration of z-axis in [g]

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

LWM2MObjectAccelerometer_Resource_T LWM2MObjectAccelerometerResources

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