Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
object_access_control.c File Reference
#include "liblwm2m.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for object_access_control.c:

Classes

struct  acc_ctrl_ri_s
 
struct  acc_ctrl_oi_s
 

Macros

#define RES_M_OBJECT_ID   0
 
#define RES_M_OBJECT_INSTANCE_ID   1
 
#define RES_O_ACL   2
 
#define RES_M_ACCESS_CONTROL_OWNER   3
 

Typedefs

typedef struct acc_ctrl_ri_s acc_ctrl_ri_t
 
typedef struct acc_ctrl_oi_s acc_ctrl_oi_t
 

Functions

lwm2m_object_t * acc_ctrl_create_object (void)
 
void acl_ctrl_free_object (lwm2m_object_t *objectP)
 
bool acc_ctrl_obj_add_inst (lwm2m_object_t *accCtrlObjP, uint16_t instId, uint16_t acObjectId, uint16_t acObjInstId, uint16_t acOwner)
 
bool acc_ctrl_oi_add_ac_val (lwm2m_object_t *accCtrlObjP, uint16_t instId, uint16_t acResId, uint16_t acValue)
 

Macro Definition Documentation

◆ RES_M_ACCESS_CONTROL_OWNER

#define RES_M_ACCESS_CONTROL_OWNER   3

◆ RES_M_OBJECT_ID

#define RES_M_OBJECT_ID   0

◆ RES_M_OBJECT_INSTANCE_ID

#define RES_M_OBJECT_INSTANCE_ID   1

◆ RES_O_ACL

#define RES_O_ACL   2

Typedef Documentation

◆ acc_ctrl_oi_t

typedef struct acc_ctrl_oi_s acc_ctrl_oi_t

◆ acc_ctrl_ri_t

typedef struct acc_ctrl_ri_s acc_ctrl_ri_t

Function Documentation

◆ acc_ctrl_create_object()

lwm2m_object_t* acc_ctrl_create_object ( void  )

◆ acc_ctrl_obj_add_inst()

bool acc_ctrl_obj_add_inst ( lwm2m_object_t *  accCtrlObjP,
uint16_t  instId,
uint16_t  acObjectId,
uint16_t  acObjInstId,
uint16_t  acOwner 
)

◆ acc_ctrl_oi_add_ac_val()

bool acc_ctrl_oi_add_ac_val ( lwm2m_object_t *  accCtrlObjP,
uint16_t  instId,
uint16_t  acResId,
uint16_t  acValue 
)

◆ acl_ctrl_free_object()

void acl_ctrl_free_object ( lwm2m_object_t *  objectP)