Anjay Lite
Loading...
Searching...
No Matches
anj_dm_obj_inst_struct Struct Reference

#include <defs.h>

Data Fields

anj_iid_t iid
 
const anj_dm_res_tresources
 
uint16_t res_count
 

Detailed Description

A struct defining an Object Instance.

Field Documentation

◆ iid

anj_iid_t iid

Object Instance ID.

If the instance is not currently active (i.e., unused slot in the instance array), this field must be set to ANJ_ID_INVALID.

◆ res_count

uint16_t res_count

Number of Resources defined for this Object Instance.

◆ resources

const anj_dm_res_t* resources

Pointer to the array of Resources belonging to this Object Instance.

If the Object does not define any multi-instance Resources, this array may be shared across all Object Instances.

Resources in this array must be sorted in ascending order by their ID value. The resource list must remain constant throughout the lifetime of this Object Instance — dynamic addition or removal of Resources at runtime is not supported.

If res_count is not equal to 0, this field must not be NULL.


The documentation for this struct was generated from the following file: