Home
last modified time | relevance | path

Searched refs:res_inst (Results 1 – 25 of 41) sorted by relevance

12

/Zephyr-Core-3.6.0/subsys/net/lib/lwm2m/
Ducifi_lpwan.c91 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
123 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in lpwan_create()
126 INIT_OBJ_RES_OPTDATA(UCIFI_LPWAN_NETWORK_TYPE_RID, res[index], i, res_inst[index], j); in lpwan_create()
127 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_IPV4_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
129 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_IPV6_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
131 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_NETWORK_ADDRESS_RID, res[index], i, res_inst[index], in lpwan_create()
134 res_inst[index], j, SECONDARY_NETWORK_ADDRESS_MAX, false); in lpwan_create()
135 INIT_OBJ_RES_DATA_LEN(UCIFI_LPWAN_MAC_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
137 INIT_OBJ_RES_MULTI_OPTDATA(UCIFI_LPWAN_PEER_ADDRESS_RID, res[index], i, res_inst[index], j, in lpwan_create()
140 res_inst[index], j, MULTICAST_GRP_ADDRESS_MAX, false); in lpwan_create()
[all …]
Dlwm2m_obj_connmon.c137 static struct lwm2m_engine_res_inst res_inst[RESOURCE_INSTANCE_COUNT]; variable
159 init_res_instance(res_inst, ARRAY_SIZE(res_inst)); in connmon_create()
162 INIT_OBJ_RES_DATA(CONNMON_NETWORK_BEARER_ID, res, i, res_inst, j, in connmon_create()
165 res_inst, j, CONNMON_AVAIL_BEARER_MAX, in connmon_create()
167 INIT_OBJ_RES_DATA(CONNMON_RADIO_SIGNAL_STRENGTH, res, i, res_inst, j, in connmon_create()
169 INIT_OBJ_RES_DATA(CONNMON_LINK_QUALITY, res, i, res_inst, j, in connmon_create()
172 res_inst, j, CONNMON_IP_ADDRESS_MAX, false); in connmon_create()
174 res_inst, j, CONNMON_ROUTER_IP_ADDRESS_MAX, in connmon_create()
176 INIT_OBJ_RES_MULTI_OPTDATA(CONNMON_APN, res, i, res_inst, j, in connmon_create()
178 INIT_OBJ_RES_DATA(CONNMON_CELLID, res, i, res_inst, j, &cellid, in connmon_create()
[all …]
Dlwm2m_obj_location.c60 static struct lwm2m_engine_res_inst res_inst[RESOURCE_INSTANCE_COUNT]; variable
71 init_res_instance(res_inst, ARRAY_SIZE(res_inst)); in location_create()
74 INIT_OBJ_RES_DATA(LOCATION_LATITUDE_ID, res, i, res_inst, j, in location_create()
76 INIT_OBJ_RES_DATA(LOCATION_LONGITUDE_ID, res, i, res_inst, j, in location_create()
78 INIT_OBJ_RES_DATA(LOCATION_ALTITUDE_ID, res, i, res_inst, j, in location_create()
80 INIT_OBJ_RES_DATA(LOCATION_RADIUS_ID, res, i, res_inst, j, in location_create()
82 INIT_OBJ_RES_OPTDATA(LOCATION_VELOCITY_ID, res, i, res_inst, j); in location_create()
83 INIT_OBJ_RES_DATA(LOCATION_TIMESTAMP_ID, res, i, res_inst, j, in location_create()
85 INIT_OBJ_RES_DATA(LOCATION_SPEED_ID, res, i, res_inst, j, in location_create()
Dipso_accelerometer.c74 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
105 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in accel_create()
108 INIT_OBJ_RES_DATA(X_VALUE_RID, res[avail], i, res_inst[avail], j, in accel_create()
111 INIT_OBJ_RES_DATA(Y_VALUE_RID, res[avail], i, res_inst[avail], j, in accel_create()
114 INIT_OBJ_RES_DATA(Z_VALUE_RID, res[avail], i, res_inst[avail], j, in accel_create()
118 res_inst[avail], j); in accel_create()
119 INIT_OBJ_RES_DATA(MIN_RANGE_VALUE_RID, res[avail], i, res_inst[avail], in accel_create()
122 INIT_OBJ_RES_DATA(MAX_RANGE_VALUE_RID, res[avail], i, res_inst[avail], in accel_create()
127 res_inst[avail], j); in accel_create()
128 INIT_OBJ_RES_OPTDATA(TIMESTAMP_RID, res[avail], i, res_inst[avail], j); in accel_create()
[all …]
Ducifi_battery.c58 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
112 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in battery_create()
115 INIT_OBJ_RES_DATA(UCIFI_BATTERY_LEVEL_RID, res[index], i, res_inst[index], j, in battery_create()
117 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_CAPACITY_RID, res[index], i, res_inst[index], j); in battery_create()
118 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_VOLTAGE_RID, res[index], i, res_inst[index], j); in battery_create()
119 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_TYPE_RID, res[index], i, res_inst[index], j); in battery_create()
120 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_LOW_THESHOLD_RID, res[index], i, res_inst[index], j); in battery_create()
121 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_LEVEL_TOO_LOW_RID, res[index], i, res_inst[index], j); in battery_create()
122 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_SHUTDOWN_RID, res[index], i, res_inst[index], j); in battery_create()
123 INIT_OBJ_RES_OPTDATA(UCIFI_BATTERY_NUM_CYCLES_RID, res[index], i, res_inst[index], j); in battery_create()
[all …]
Dlwm2m_obj_device.c129 static struct lwm2m_engine_res_inst res_inst[RESOURCE_INSTANCE_COUNT]; variable
302 init_res_instance(res_inst, ARRAY_SIZE(res_inst)); in device_create()
305 INIT_OBJ_RES_OPTDATA(DEVICE_MANUFACTURER_ID, res, i, res_inst, j); in device_create()
306 INIT_OBJ_RES_OPTDATA(DEVICE_MODEL_NUMBER_ID, res, i, res_inst, j); in device_create()
307 INIT_OBJ_RES_OPTDATA(DEVICE_SERIAL_NUMBER_ID, res, i, res_inst, j); in device_create()
308 INIT_OBJ_RES_OPTDATA(DEVICE_FIRMWARE_VERSION_ID, res, i, res_inst, j); in device_create()
312 res_inst, j, DEVICE_PWRSRC_MAX, false); in device_create()
314 res_inst, j, DEVICE_PWRSRC_MAX, false); in device_create()
316 res_inst, j, DEVICE_PWRSRC_MAX, false); in device_create()
317 INIT_OBJ_RES_OPTDATA(DEVICE_BATTERY_LEVEL_ID, res, i, res_inst, j); in device_create()
[all …]
Dlwm2m_obj_binaryappdata.c58 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
86 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in lwm2m_binaryappdata_create()
89 INIT_OBJ_RES_OPT(LWM2M_BINARYAPPDATA_DATA_ID, res[avail], i, res_inst[avail], j, in lwm2m_binaryappdata_create()
92 res_inst[avail], j); in lwm2m_binaryappdata_create()
94 res_inst[avail], j); in lwm2m_binaryappdata_create()
96 res_inst[avail], j); in lwm2m_binaryappdata_create()
97 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_DATA_FORMAT_ID, res[avail], i, res_inst[avail], j); in lwm2m_binaryappdata_create()
98 INIT_OBJ_RES_OPTDATA(LWM2M_BINARYAPPDATA_APP_ID, res[avail], i, res_inst[avail], j); in lwm2m_binaryappdata_create()
Dipso_current_sensor.c80 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] variable
174 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in current_sensor_create()
177 INIT_OBJ_RES(SENSOR_VALUE_RID, res[index], i, res_inst[index], j, 1, in current_sensor_create()
180 INIT_OBJ_RES_DATA_LEN(SENSOR_UNITS_RID, res[index], i, res_inst[index], j, in current_sensor_create()
183 res_inst[index], j, &min_measured_value[index], in current_sensor_create()
186 res_inst[index], j, &max_measured_value[index], in current_sensor_create()
188 INIT_OBJ_RES_DATA(MIN_RANGE_VALUE_RID, res[index], i, res_inst[index], in current_sensor_create()
190 INIT_OBJ_RES_DATA(MAX_RANGE_VALUE_RID, res[index], i, res_inst[index], in current_sensor_create()
195 res_inst[index], j, &calibration_coefficient[index], in current_sensor_create()
197 INIT_OBJ_RES_DATA_LEN(APPLICATION_TYPE_RID, res[index], i, res_inst[index], in current_sensor_create()
[all …]
Dipso_pressure_sensor.c76 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] variable
168 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in pressure_sensor_create()
171 INIT_OBJ_RES(SENSOR_VALUE_RID, res[index], i, res_inst[index], j, 1, in pressure_sensor_create()
174 INIT_OBJ_RES_DATA_LEN(SENSOR_UNITS_RID, res[index], i, res_inst[index], j, in pressure_sensor_create()
177 res_inst[index], j, &min_measured_value[index], in pressure_sensor_create()
180 res_inst[index], j, &max_measured_value[index], in pressure_sensor_create()
182 INIT_OBJ_RES_DATA(MIN_RANGE_VALUE_RID, res[index], i, res_inst[index], in pressure_sensor_create()
184 INIT_OBJ_RES_DATA(MAX_RANGE_VALUE_RID, res[index], i, res_inst[index], in pressure_sensor_create()
189 res_inst[index], j); in pressure_sensor_create()
191 res_inst[index], j); in pressure_sensor_create()
[all …]
Dipso_voltage_sensor.c81 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] variable
175 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in voltage_sensor_create()
178 INIT_OBJ_RES(SENSOR_VALUE_RID, res[index], i, res_inst[index], j, 1, in voltage_sensor_create()
181 INIT_OBJ_RES_DATA_LEN(SENSOR_UNITS_RID, res[index], i, res_inst[index], j, in voltage_sensor_create()
184 res_inst[index], j, &min_measured_value[index], in voltage_sensor_create()
187 res_inst[index], j, &max_measured_value[index], in voltage_sensor_create()
189 INIT_OBJ_RES_DATA(MIN_RANGE_VALUE_RID, res[index], i, res_inst[index], in voltage_sensor_create()
191 INIT_OBJ_RES_DATA(MAX_RANGE_VALUE_RID, res[index], i, res_inst[index], in voltage_sensor_create()
196 res_inst[index], j, &calibration_coefficient[index], in voltage_sensor_create()
198 INIT_OBJ_RES_DATA_LEN(APPLICATION_TYPE_RID, res[index], i, res_inst[index], in voltage_sensor_create()
[all …]
Dipso_temp_sensor.c77 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
168 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in temp_sensor_create()
172 res_inst[index], j, 1, false, true, in temp_sensor_create()
175 INIT_OBJ_RES_DATA_LEN(SENSOR_UNITS_RID, res[index], i, res_inst[index], j, in temp_sensor_create()
178 res_inst[index], j, &min_measured_value[index], in temp_sensor_create()
181 res_inst[index], j, &max_measured_value[index], in temp_sensor_create()
184 res_inst[index], j, &min_range_value[index], in temp_sensor_create()
187 res_inst[index], j, &max_range_value[index], in temp_sensor_create()
193 res_inst[index], j); in temp_sensor_create()
194 INIT_OBJ_RES_OPTDATA(TIMESTAMP_RID, res[index], i, res_inst[index], j); in temp_sensor_create()
[all …]
Dlwm2m_obj_event_log.c57 static struct lwm2m_engine_res_inst res_inst[RESOURCE_INSTANCE_COUNT]; variable
63 init_res_instance(res_inst, ARRAY_SIZE(res_inst)); in lwm2m_event_log_create()
66 INIT_OBJ_RES_OPTDATA(LWM2M_EVENT_LOG_CLASS_ID, res, i, res_inst, j); in lwm2m_event_log_create()
69 INIT_OBJ_RES_OPTDATA(LWM2M_EVENT_LOG_STATUS_ID, res, i, res_inst, j); in lwm2m_event_log_create()
70 INIT_OBJ_RES_OPT(LWM2M_EVENT_LOG_DATA_ID, res, i, res_inst, j, 1, in lwm2m_event_log_create()
72 INIT_OBJ_RES_OPTDATA(LWM2M_EVENT_LOG_DATAFORMAT_ID, res, i, res_inst, j); in lwm2m_event_log_create()
Dlwm2m_obj_security.c112 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
148 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in security_create()
152 res_inst[index], j, in security_create()
155 res_inst[index], j, in security_create()
158 res_inst[index], j, in security_create()
161 res_inst[index], j, in security_create()
164 res_inst[index], j, in security_create()
167 res_inst[index], j, in security_create()
170 res_inst[index], j, in security_create()
173 INIT_OBJ_RES_OPTDATA(SECURITY_MATCHING_TYPE_ID, res[index], i, res_inst[index], j); in security_create()
[all …]
Dipso_filling_sensor.c80 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] variable
179 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in filling_sensor_create()
183 res_inst[index], j, 1, false, true, in filling_sensor_create()
187 res_inst[index], j, 1, false, true, in filling_sensor_create()
191 i, res_inst[index], j, &actual_fill_level[index], in filling_sensor_create()
194 i, res_inst[index], j, 1, false, true, in filling_sensor_create()
198 res_inst[index], j, &container_full[index], in filling_sensor_create()
201 res_inst[index], j, 1, false, true, &low_threshold[index], in filling_sensor_create()
204 res_inst[index], j, &container_empty[index], in filling_sensor_create()
207 res_inst[index], j, &average_fill_speed[index], in filling_sensor_create()
[all …]
Dipso_generic_sensor.c89 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] variable
183 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in generic_sensor_create()
186 INIT_OBJ_RES(SENSOR_VALUE_RID, res[index], i, res_inst[index], j, 1, in generic_sensor_create()
189 INIT_OBJ_RES_DATA_LEN(SENSOR_UNITS_RID, res[index], i, res_inst[index], j, in generic_sensor_create()
192 res_inst[index], j, &min_measured_value[index], in generic_sensor_create()
195 res_inst[index], j, &max_measured_value[index], in generic_sensor_create()
197 INIT_OBJ_RES_DATA(MIN_RANGE_VALUE_RID, res[index], i, res_inst[index], in generic_sensor_create()
199 INIT_OBJ_RES_DATA(MAX_RANGE_VALUE_RID, res[index], i, res_inst[index], in generic_sensor_create()
203 INIT_OBJ_RES_DATA_LEN(APPLICATION_TYPE_RID, res[index], i, res_inst[index], in generic_sensor_create()
205 INIT_OBJ_RES_DATA_LEN(SENSOR_TYPE_RID, res[index], i, res_inst[index], j, in generic_sensor_create()
[all …]
Dipso_humidity_sensor.c75 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT] variable
167 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in humidity_sensor_create()
170 INIT_OBJ_RES(SENSOR_VALUE_RID, res[index], i, res_inst[index], j, 1, in humidity_sensor_create()
173 INIT_OBJ_RES_DATA_LEN(SENSOR_UNITS_RID, res[index], i, res_inst[index], j, in humidity_sensor_create()
176 res_inst[index], j, &min_measured_value[index], in humidity_sensor_create()
179 res_inst[index], j, &max_measured_value[index], in humidity_sensor_create()
181 INIT_OBJ_RES_DATA(MIN_RANGE_VALUE_RID, res[index], i, res_inst[index], in humidity_sensor_create()
183 INIT_OBJ_RES_DATA(MAX_RANGE_VALUE_RID, res[index], i, res_inst[index], in humidity_sensor_create()
189 res_inst[index], j); in humidity_sensor_create()
190 INIT_OBJ_RES_OPTDATA(TIMESTAMP_RID, res[index], i, res_inst[index], j); in humidity_sensor_create()
[all …]
Dlwm2m_obj_server.c95 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
364 init_res_instance(res_inst[index], ARRAY_SIZE(res_inst[index])); in server_create()
368 res_inst[index], j, in server_create()
370 INIT_OBJ_RES(SERVER_LIFETIME_ID, res[index], i, res_inst[index], j, in server_create()
374 res_inst[index], j, in server_create()
378 res_inst[index], j, in server_create()
383 res_inst[index], j, in server_create()
387 res_inst[index], j, in server_create()
391 INIT_OBJ_RES_DATA_LEN(SERVER_TRANSPORT_BINDING_ID, res[index], i, res_inst[index], j, in server_create()
401 INIT_OBJ_RES_OPTDATA(SERVER_APN_LINK_ID, res[index], i, res_inst[index], j); in server_create()
[all …]
Dipso_light_control.c68 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
158 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in light_control_create()
161 INIT_OBJ_RES_DATA(ON_OFF_RID, res[avail], i, res_inst[avail], j, in light_control_create()
163 INIT_OBJ_RES_DATA(DIMMER_RID, res[avail], i, res_inst[avail], j, in light_control_create()
165 INIT_OBJ_RES(ON_TIME_RID, res[avail], i, res_inst[avail], j, 1, false, in light_control_create()
169 res_inst[avail], j, &cumulative_active_value[avail], in light_control_create()
171 INIT_OBJ_RES_DATA(POWER_FACTOR_RID, res[avail], i, res_inst[avail], j, in light_control_create()
174 INIT_OBJ_RES_DATA_LEN(COLOUR_RID, res[avail], i, res_inst[avail], j, in light_control_create()
176 INIT_OBJ_RES_DATA_LEN(SENSOR_UNITS_RID, res[avail], i, res_inst[avail], j, in light_control_create()
179 res_inst[avail], j); in light_control_create()
Dlwm2m_obj_portfolio.c61 static struct lwm2m_engine_res_inst res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
91 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in portfolio_create()
94 INIT_OBJ_RES_MULTI_DATA_LEN(PORTFOLIO_IDENTITY_ID, res[avail], i, res_inst[avail], j, in portfolio_create()
98 INIT_OBJ_RES_MULTI_OPTDATA(PORTFOLIO_AUTH_DATA_ID, res[avail], i, res_inst[avail], j, in portfolio_create()
100 INIT_OBJ_RES_OPTDATA(PORTFOLIO_AUTH_STATUS_ID, res[avail], i, res_inst[avail], j); in portfolio_create()
Dipso_buzzer.c82 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
210 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in buzzer_create()
213 INIT_OBJ_RES(ON_OFF_RID, res[avail], i, res_inst[avail], j, 1, false, in buzzer_create()
217 INIT_OBJ_RES_DATA(LEVEL_RID, res[avail], i, res_inst[avail], j, in buzzer_create()
220 INIT_OBJ_RES_DATA(DELAY_DURATION_RID, res[avail], i, res_inst[avail], j, in buzzer_create()
223 INIT_OBJ_RES_DATA(MINIMUM_OFF_TIME_RID, res[avail], i, res_inst[avail], in buzzer_create()
227 res_inst[avail], j); in buzzer_create()
229 res_inst[avail], j, &buzzer_data[avail].active, in buzzer_create()
232 INIT_OBJ_RES_OPTDATA(TIMESTAMP_RID, res[avail], i, res_inst[avail], j); in buzzer_create()
234 res_inst[avail], j); in buzzer_create()
Dipso_push_button.c67 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
147 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in button_create()
150 INIT_OBJ_RES(DIGITAL_INPUT_STATE_RID, res[avail], i, res_inst[avail], in button_create()
155 res_inst[avail], j, in button_create()
159 res_inst[avail], j); in button_create()
161 INIT_OBJ_RES_OPTDATA(TIMESTAMP_RID, res[avail], i, res_inst[avail], j); in button_create()
163 res_inst[avail], j); in button_create()
Dipso_onoff_switch.c72 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
205 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in switch_create()
208 INIT_OBJ_RES(DIGITAL_INPUT_STATE_RID, res[avail], i, res_inst[avail], in switch_create()
213 res_inst[avail], j, &switch_data[avail].counter, in switch_create()
216 res_inst[avail], j, 1, false, true, in switch_create()
219 res_inst[avail], j, 1, false, true, in switch_create()
222 res_inst[avail], j); in switch_create()
224 INIT_OBJ_RES_OPTDATA(TIMESTAMP_RID, res[avail], i, res_inst[avail], j); in switch_create()
226 res_inst[avail], j); in switch_create()
Dlwm2m_registry.c401 struct lwm2m_engine_res_inst **res_inst) in path_to_objs() argument
468 if (ri && res_inst) { in path_to_objs()
469 *res_inst = ri; in path_to_objs()
496 struct lwm2m_engine_res_inst *res_inst = NULL; in lwm2m_set_res_buf() local
505 ret = path_to_objs(path, NULL, NULL, NULL, &res_inst); in lwm2m_set_res_buf()
511 if (!res_inst) { in lwm2m_set_res_buf()
518 res_inst->data_ptr = buffer_ptr; in lwm2m_set_res_buf()
519 res_inst->data_len = data_len; in lwm2m_set_res_buf()
520 res_inst->max_data_len = buffer_len; in lwm2m_set_res_buf()
521 res_inst->data_flags = data_flags; in lwm2m_set_res_buf()
[all …]
Dipso_timer.c86 res_inst[MAX_INSTANCE_COUNT][RESOURCE_INSTANCE_COUNT]; variable
310 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in timer_inst_create()
314 res_inst[avail], j, &timer_data[avail].delay_duration, in timer_inst_create()
316 INIT_OBJ_RES(REMAINING_TIME_RID, res[avail], i, res_inst[avail], j, 1, in timer_inst_create()
321 res_inst[avail], j, &timer_data[avail].min_off_time, in timer_inst_create()
324 INIT_OBJ_RES(ON_OFF_RID, res[avail], i, res_inst[avail], j, 1, false, in timer_inst_create()
328 INIT_OBJ_RES(CUMULATIVE_TIME_RID, res[avail], i, res_inst[avail], j, 1, in timer_inst_create()
334 res_inst[avail], j, &timer_data[avail].active, in timer_inst_create()
336 INIT_OBJ_RES(COUNTER_RID, res[avail], i, res_inst[avail], j, 1, false, in timer_inst_create()
340 INIT_OBJ_RES_DATA(TIMER_MODE_RID, res[avail], i, res_inst[avail], j, in timer_inst_create()
[all …]
/Zephyr-Core-3.6.0/tests/net/lib/lwm2m/lwm2m_registry/src/
Dtest_obj.c53 static struct lwm2m_engine_res_inst res_inst[RESOURCE_COUNT]; variable
66 init_res_instance(res_inst, ARRAY_SIZE(res_inst)); in obj_create()
69 INIT_OBJ_RES_DATA_LEN(LWM2M_RES_TYPE_OPAQUE, res, i, res_inst, j, opaque, sizeof(opaque), in obj_create()
71 INIT_OBJ_RES_DATA_LEN(LWM2M_RES_TYPE_STRING, res, i, res_inst, j, string, sizeof(string), in obj_create()
73 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_U32, res, i, res_inst, j, &u32, sizeof(u32)); in obj_create()
74 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_U16, res, i, res_inst, j, &u16, sizeof(u16)); in obj_create()
75 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_U8, res, i, res_inst, j, &u8, sizeof(u8)); in obj_create()
76 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_S64, res, i, res_inst, j, &s64, sizeof(s64)); in obj_create()
77 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_S32, res, i, res_inst, j, &s32, sizeof(s32)); in obj_create()
78 INIT_OBJ_RES_DATA(LWM2M_RES_TYPE_S16, res, i, res_inst, j, &s16, sizeof(s16)); in obj_create()
[all …]

12