XDK API  3.6.0
Documentation
Macros | Functions
LWM2MUtil.c File Reference

This file provides the implementation of LWM2MUtil module. More...

#include "XdkCommonInfo.h"
#include "LWM2MObjects.h"
#include "LWM2MUtil.h"
#include "Serval_Scheduler.h"
#include "Serval_Exceptions.h"
#include "Serval_Log.h"
+ Include dependency graph for LWM2MUtil.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MUTIL
 
#define LOG_MODULE   "LWU"
 

Functions

void LWM2MUtil_ReportChanges (Lwm2mDynamicChanges_T *changes, const Lwm2m_URI_Path_T *instanceUriPath)
 Report changes from dynamic changes data. More...
 
void LWM2MUtil_Schedule (Lwm2m_Call_T *call)
 Schedule a call to lwm2m scheduler. More...
 
bool LWM2MUtil_SetFloatMaxValue (Lwm2mDynamicChanges_T *changes, const Lwm2mResource_T *resourceTable, Lwm2mResource_T *resource, float value)
 set new float resource value, if its larger then the current value. More...
 
bool LWM2MUtil_SetFloatMinValue (Lwm2mDynamicChanges_T *changes, const Lwm2mResource_T *resourceTable, Lwm2mResource_T *resource, float value)
 set new float resource value, if its less then the current value. More...
 
bool LWM2MUtil_SetFloatValue (Lwm2mDynamicChanges_T *changes, const Lwm2mResource_T *resourceTable, Lwm2mResource_T *resource, float value)
 set new float resource value. More...
 
void LWM2MUtil_UpdatePairResources (float value1, float value2, Lwm2m_Pair_Resource_Update_T *updater)
 Update two resource values. Delegate the transfer to the scheduler. More...
 
void LWM2MUtil_UpdateSingleResource (float value, Lwm2m_Single_Resource_Update_T *updater)
 Update single float resource value. Delegate the transfer to the scheduler. More...
 
void LWM2MUtil_UpdateTrippleResources (float value1, float value2, float value3, Lwm2m_Tripple_Resource_Update_T *updater)
 Update three resource values. Delegate the transfer to the scheduler. More...
 
static retcode_t ScheduleCall (Callable_T *callable_ptr, retcode_t status)
 
static retcode_t ScheduleUpdatePairResources (Callable_T *callable_ptr, retcode_t status)
 
static retcode_t ScheduleUpdateSingleResource (Callable_T *callable_ptr, retcode_t status)
 
static retcode_t ScheduleUpdateTrippleResources (Callable_T *callable_ptr, retcode_t status)
 

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MUTIL
#define LOG_MODULE   "LWU"

serval logging prefix

Function Documentation

void LWM2MUtil_ReportChanges ( Lwm2mDynamicChanges_T changes,
const Lwm2m_URI_Path_T instanceUriPath 
)

Refer interface header for description

+ Here is the call graph for this function:

void LWM2MUtil_Schedule ( Lwm2m_Call_T call)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool LWM2MUtil_SetFloatMaxValue ( Lwm2mDynamicChanges_T changes,
const Lwm2mResource_T resourceTable,
Lwm2mResource_T resource,
float  value 
)

Refer interface header for description

+ Here is the call graph for this function:

bool LWM2MUtil_SetFloatMinValue ( Lwm2mDynamicChanges_T changes,
const Lwm2mResource_T resourceTable,
Lwm2mResource_T resource,
float  value 
)

Refer interface header for description

+ Here is the call graph for this function:

bool LWM2MUtil_SetFloatValue ( Lwm2mDynamicChanges_T changes,
const Lwm2mResource_T resourceTable,
Lwm2mResource_T resource,
float  value 
)

Refer interface header for description

+ Here is the caller graph for this function:

void LWM2MUtil_UpdatePairResources ( float  value1,
float  value2,
Lwm2m_Pair_Resource_Update_T updater 
)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MUtil_UpdateSingleResource ( float  value,
Lwm2m_Single_Resource_Update_T updater 
)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MUtil_UpdateTrippleResources ( float  value1,
float  value2,
float  value3,
Lwm2m_Tripple_Resource_Update_T updater 
)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static retcode_t ScheduleCall ( Callable_T callable_ptr,
retcode_t  status 
)
static

+ Here is the caller graph for this function:

static retcode_t ScheduleUpdatePairResources ( Callable_T callable_ptr,
retcode_t  status 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static retcode_t ScheduleUpdateSingleResource ( Callable_T callable_ptr,
retcode_t  status 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static retcode_t ScheduleUpdateTrippleResources ( Callable_T callable_ptr,
retcode_t  status 
)
static

+ Here is the call graph for this function:

+ 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