XDK API  3.6.0
Documentation
Data Structures | Macros | Typedefs | Enumerations | Functions
LWM2MSensorDeviceUtil.h File Reference

Interface header for SensorDeviceUtil. More...

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

Data Structures

struct  SensorDeviceProcessDataFloat
 Processed sensor values. More...
 
struct  SensorDeviceSampleDataFloat
 Sensor values for processing. More...
 

Macros

#define SENSORDEVICE_MAX_VALUES   3
 Definition of maxiumum values processed per sensor. More...
 

Typedefs

typedef enum ProcessingMode ProcessingMode_T
 
typedef struct
SensorDeviceProcessDataFloat 
SensorDeviceProcessDataFloat_T
 Processed sensor values. More...
 
typedef struct
SensorDeviceSampleDataFloat 
SensorDeviceSampleDataFloat_T
 Sensor values for processing. More...
 

Enumerations

enum  ProcessingMode
 Processing modes for sensor values. More...
 

Functions

bool LWM2MSensorDeviceUtil_GetDataFloat (SensorDeviceProcessDataFloat_T *data, SensorDeviceSampleDataFloat_T *sample)
 get processed sensor values. More...
 
void LWM2MSensorDeviceUtil_ProcessDataFloat (ProcessingMode_T mode, SensorDeviceProcessDataFloat_T *data, SensorDeviceSampleDataFloat_T *sample)
 process current sensor values. More...
 
void LWM2MSensorDeviceUtil_ResetProcessDataFloat (SensorDeviceProcessDataFloat_T *data)
 reset processed sensor values. More...
 

Macro Definition Documentation

#define SENSORDEVICE_MAX_VALUES   3

Typedef Documentation

Used to pass values from sensors to processing functions.

Enumeration Type Documentation

Enumerator
CURRENT 

use current value

AVG 

use avarage value

MIN 

use minimum value

MAX 

use maximum value

Function Documentation

bool LWM2MSensorDeviceUtil_GetDataFloat ( SensorDeviceProcessDataFloat_T data,
SensorDeviceSampleDataFloat_T sample 
)

Get the processed sensor values and reset the processing.

Parameters
dataprocessed sensor values
sampleread values
Returns
true-if values are valid false, otherwise

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MSensorDeviceUtil_ProcessDataFloat ( ProcessingMode_T  mode,
SensorDeviceProcessDataFloat_T data,
SensorDeviceSampleDataFloat_T sample 
)

Process current sensor values according process mode and store the result in the processed sensor values. Adjust processed value for minimum, maximum or current mode, add values for avarage mode.

Parameters
modeprocess mode
dataprocessed sensor values
samplecurrent sensor values

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MSensorDeviceUtil_ResetProcessDataFloat ( SensorDeviceProcessDataFloat_T data)

Reset minimum, maximum and avarage value by reseting the sample_counter to 0.

Parameters
dataprocessed sensor values

Refer interface header for description

+ Here is the caller graph for this function:


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