Macros | Functions | Variables
LWM2MObjectGyroscope.c File Reference

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

#include "XdkCommonInfo.h"
#include "LWM2MObjects.h"
#include "LWM2MUtil.h"
#include "LWM2M.h"
+ Include dependency graph for LWM2MObjectGyroscope.c:

Macros

#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MOBJECTGYROSCOPE
 
#define FLUSH_RESOURCES
 
#define GYROSCOPE_RESOURCES_INDEX(res)   LWM2M_RESOURCES_INDEX(LWM2MObjectGyroscopeResources, res)
 

Functions

void LWM2MObjectGyroscope_Disable ()
 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 LWM2MObjectGyroscope_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 LWM2MObjectGyroscope_Init (void)
 Initialize LWM2M object instance. Must be called before any other function call. More...
 
void LWM2MObjectGyroscope_SetValues (float xValue, float yValue, float zValue)
 Set values for x-, y-, and z-axis. More...
 
static void LWM2MObjectGyroscopeInternalDisable (void)
 
static void LWM2MObjectGyroscopeInternalEnable (float minRangeValue, float maxRangeValue)
 
static void LWM2MObjectGyroscopeInternalSetValues (float xValue, float yValue, float zValue)
 

Variables

static Lwm2m_Call_T AsyncCall_Disabler = { .call = LWM2MObjectGyroscopeInternalDisable }
 
static Lwm2m_Pair_Resource_Update_T AsyncCall_Enabler = { .set_pair = LWM2MObjectGyroscopeInternalEnable, .mutex = LWM2M_MUTEX_INIT_VALUE }
 
static
Lwm2m_Tripple_Resource_Update_T 
AsyncCall_Updater = { .set_tripple = LWM2MObjectGyroscopeInternalSetValues, .mutex = LWM2M_MUTEX_INIT_VALUE }
 
static Lwm2m_URI_Path_T GyroscopeUriPath = { LWM2MOBJECTS_IX_GYROSCOPE_0, LWM2MOBJECTS_IX_GYROSCOPE_0, -1 }
 
LWM2MLWM2MObjectGyroscope_Resource_T LWM2MObjectGyroscopeResources
 LWM2M resource data for instance 0. More...
 
static volatile bool Started = false
 

Macro Definition Documentation

#define BCDS_MODULE_ID   XDK_COMMON_ID_LWM2MOBJECTGYROSCOPE
#define FLUSH_RESOURCES
Value:
GYROSCOPE_RESOURCES_INDEX(minRangeValue),\
GYROSCOPE_RESOURCES_INDEX(maxRangeValue),\
retcode_t Lwm2mReporting_multipleResourcesChanged(Lwm2m_URI_Path_T *objectInstanceUripath, uint8_t count,...)
Notify the stack that a resource has changed. This will cause the stack to notify any pending observe...
#define GYROSCOPE_RESOURCES_INDEX(res)
Definition: LWM2MObjectGyroscope.c:62
static Lwm2m_URI_Path_T GyroscopeUriPath
Definition: LWM2MObjectGyroscope.c:77
#define GYROSCOPE_RESOURCES_INDEX (   res)    LWM2M_RESOURCES_INDEX(LWM2MObjectGyroscopeResources, res)

Function Documentation

void LWM2MObjectGyroscope_Disable ( void  )

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MObjectGyroscope_Enable ( float  minRangeValue,
float  maxRangeValue 
)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LWM2MObjectGyroscope_Init ( void  )

Refer interface header for description

void LWM2MObjectGyroscope_SetValues ( float  xValue,
float  yValue,
float  zValue 
)

Refer interface header for description

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void LWM2MObjectGyroscopeInternalDisable ( void  )
static
static void LWM2MObjectGyroscopeInternalEnable ( float  minRangeValue,
float  maxRangeValue 
)
static
static void LWM2MObjectGyroscopeInternalSetValues ( float  xValue,
float  yValue,
float  zValue 
)
static

Variable Documentation

Lwm2m_Call_T AsyncCall_Disabler = { .call = LWM2MObjectGyroscopeInternalDisable }
static
Lwm2m_Pair_Resource_Update_T AsyncCall_Enabler = { .set_pair = LWM2MObjectGyroscopeInternalEnable, .mutex = LWM2M_MUTEX_INIT_VALUE }
static
Lwm2m_Tripple_Resource_Update_T AsyncCall_Updater = { .set_tripple = LWM2MObjectGyroscopeInternalSetValues, .mutex = LWM2M_MUTEX_INIT_VALUE }
static
LWM2MLWM2MObjectGyroscope_Resource_T LWM2MObjectGyroscopeResources
Initial value:
=
{
{ 5603, LWM2M_FLOAT(0.0F) | LWM2M_READ_ONLY },
{ 5604, LWM2M_FLOAT(0.0F) | LWM2M_READ_ONLY },
{ 5701, LWM2M_STRING_RO("") },
{ 5702, LWM2M_FLOAT(0.0F) | LWM2M_READ_ONLY },
{ 5703, LWM2M_FLOAT(0.0F) | LWM2M_READ_ONLY },
{ 5704, LWM2M_FLOAT(0.0F) | LWM2M_READ_ONLY },
}
#define LWM2M_READ_ONLY
Definition: Serval_Lwm2m.h:218
#define LWM2M_FLOAT(floating)
Definition: Serval_Lwm2m.h:99
#define LWM2M_STRING_RO(string)
Definition: Serval_Lwm2m.h:95
volatile bool Started = false
static

This documentation file has been automatically generated on Wed May 6 2020 20:45:07 by doxygen 1.8.8