Home
last modified time | relevance | path

Searched refs:res_id (Results 1 – 25 of 47) sorted by relevance

12

/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/content_json/src/
Dmain.c105 #define TEST_PAYLOAD(res_id, type, value) \ argument
106 "{\"bn\":\"/65535/0/\",\"e\":[{\"n\":\"" STRINGIFY(res_id) \
170 test_msg.path.res_id = TEST_RES_S8; in ZTEST()
194 test_msg.path.res_id = TEST_RES_S8; in ZTEST()
212 test_msg.path.res_id = TEST_RES_S16; in ZTEST()
236 test_msg.path.res_id = TEST_RES_S16; in ZTEST()
254 test_msg.path.res_id = TEST_RES_S32; in ZTEST()
278 test_msg.path.res_id = TEST_RES_S32; in ZTEST()
296 test_msg.path.res_id = TEST_RES_S64; in ZTEST()
320 test_msg.path.res_id = TEST_RES_S64; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/content_senml_cbor/src/
Dmain.c231 test_msg.path.res_id = TEST_RES_S8; in ZTEST()
256 test_msg.path.res_id = TEST_RES_S8; in ZTEST()
319 test_msg.path.res_id = TEST_RES_S16; in ZTEST()
344 test_msg.path.res_id = TEST_RES_S16; in ZTEST()
407 test_msg.path.res_id = TEST_RES_S32; in ZTEST()
432 test_msg.path.res_id = TEST_RES_S32; in ZTEST()
495 test_msg.path.res_id = TEST_RES_S64; in ZTEST()
520 test_msg.path.res_id = TEST_RES_S64; in ZTEST()
547 test_msg.path.res_id = TEST_RES_STRING; in ZTEST()
564 test_msg.path.res_id = TEST_RES_STRING; in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/engine/src/
Dlwm2m_observation.c34 if (level >= LWM2M_PATH_LEVEL_RESOURCE && path->res_id != compare_path->res_id) { in lwm2m_path_object_equal_upto()
78 is_after = entry->path.res_id >= prev->path.res_id; in assert_path_list_order()
83 entry->path.res_id == prev->path.res_id) { in assert_path_list_order()
123 entry->path.res_id >= res_id_max, in assert_path_list_order()
126 entry->path.res_id, res_id_max); in assert_path_list_order()
161 entry->path.res_id >= res_id_max, in assert_path_list_order()
164 entry->path.res_id, res_id_max); in assert_path_list_order()
199 res_id_max = entry->path.res_id; in assert_path_list_order()
207 (prev == NULL || entry->path.res_id == prev->path.res_id)) { in assert_path_list_order()
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c89 uint16_t res_id[] = { in ZTEST() local
124 test_path.res_id = res_id[i]; in ZTEST()
153 uint16_t res_id[] = { in ZTEST() local
190 test_path.res_id = res_id[i]; in ZTEST()
219 uint16_t res_id[] = { in ZTEST() local
260 test_path.res_id = res_id[i]; in ZTEST()
289 uint16_t res_id[] = { in ZTEST() local
340 test_path.res_id = res_id[i]; in ZTEST()
379 test_path.res_id = TEST_RESOURCE_ID_SHORT; in ZTEST()
407 uint16_t res_id[] = { in ZTEST() local
[all …]
/Zephyr-Core-3.5.0/samples/net/lwm2m_client/src/
Dtimer.c18 static int timer_on_off_validate_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in timer_on_off_validate_cb() argument
35 static int timer_digital_state_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in timer_digital_state_cb() argument
Dfirmware_update.c34 static void *firmware_get_buf(uint16_t obj_inst_id, uint16_t res_id, in firmware_get_buf() argument
42 uint16_t res_id, uint16_t res_inst_id, in firmware_block_received_cb() argument
Dled.c24 static int led_on_off_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, uint8_t *data, in led_on_off_cb() argument
/Zephyr-Core-3.5.0/include/zephyr/net/
Dlwm2m_path.h87 {.obj_id = oi, .obj_inst_id = oii, .res_id = ri, .level = 3}
89 {.obj_id = oi, .obj_inst_id = oii, .res_id = ri, .res_inst_id = rii, .level = 4}
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/
Dlwm2m_observation.c160 if (p->level >= LWM2M_PATH_LEVEL_RESOURCE && p->res_id != o_p->res_id) { in lwm2m_observer_path_compare()
188 int lwm2m_notify_observer(uint16_t obj_id, uint16_t obj_inst_id, uint16_t res_id) in lwm2m_notify_observer() argument
195 path.res_id = res_id; in lwm2m_notify_observer()
244 if (obj_inst->resources[i].res_id == path->res_id) { in engine_observe_get_attributes()
251 path->res_id); in engine_observe_get_attributes()
256 obj_field = lwm2m_get_engine_obj_field(obj, obj_inst->resources[i].res_id); in engine_observe_get_attributes()
259 path->obj_inst_id, path->res_id); in engine_observe_get_attributes()
374 path->res_id); in lwm2m_notify_observer_path()
448 tmp->path.res_id, tmp->path.res_inst_id, tmp->path.level); in engine_observe_node_init()
606 msg->path.obj_inst_id, msg->path.res_id, msg->path.level, in engine_add_observer()
[all …]
Dipso_onoff_switch.c91 uint16_t res_id, uint16_t res_inst_id, in state_post_write_cb() argument
123 uint16_t res_id, uint16_t res_inst_id, in on_time_read_cb() argument
142 uint16_t res_id, uint16_t res_inst_id, in off_time_read_cb() argument
161 uint16_t res_id, uint16_t res_inst_id, in time_post_write_cb() argument
Dipso_timer.c156 uint16_t res_id, uint16_t res_inst_id, in remaining_time_read_cb() argument
180 uint16_t res_id, uint16_t res_inst_id, in cumulative_time_read_cb() argument
203 uint16_t res_id, uint16_t res_inst_id, in cumulative_time_post_write_cb() argument
219 uint16_t res_id, uint16_t res_inst_id, in enabled_post_write_cb() argument
239 uint16_t res_id, uint16_t res_inst_id, in trigger_counter_post_write_cb() argument
Dlwm2m_object.h168 { .res_id = _id, \
173 #define OBJ_FIELD_DATA(res_id, perm, type) \ argument
174 OBJ_FIELD(res_id, perm, type)
176 #define OBJ_FIELD_EXECUTE(res_id) \ argument
177 OBJ_FIELD(res_id, X, NONE)
179 #define OBJ_FIELD_EXECUTE_OPT(res_id) \ argument
180 OBJ_FIELD(res_id, X_OPT, NONE)
183 uint16_t res_id; member
226 _r_ptr[_r_idx].res_id = _id; \
238 _r_ptr[_r_idx].res_id = _id; \
[all …]
Dlwm2m_registry.c108 struct lwm2m_engine_obj_field *lwm2m_get_engine_obj_field(struct lwm2m_engine_obj *obj, int res_id) in lwm2m_get_engine_obj_field() argument
114 if (obj->fields[i].res_id == res_id) { in lwm2m_get_engine_obj_field()
389 of = lwm2m_get_engine_obj_field(oi->obj, path->res_id); in path_to_objs()
391 LOG_ERR("obj field %d not found", path->res_id); in path_to_objs()
396 if (oi->resources[i].res_id == path->res_id) { in path_to_objs()
404 LOG_DBG("resource %d not found", path->res_id); in path_to_objs()
406 LOG_ERR("resource %d not found", path->res_id); in path_to_objs()
580 path->res_id, value, len); in lwm2m_engine_set()
598 "[%u/%u/%u/%u:lvl%u]", path->obj_id, path->obj_inst_id, path->res_id, in lwm2m_engine_set()
610 data_ptr = res->pre_write_cb(obj_inst->obj_inst_id, res->res_id, in lwm2m_engine_set()
[all …]
Dlwm2m_obj_swmgmt.c190 static int callback_write_not_defined(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in callback_write_not_defined() argument
198 static void *callback_read_not_defined(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in callback_read_not_defined() argument
362 void *state_read_pkg_version(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in state_read_pkg_version() argument
374 result = instance->read_package_cb(obj_inst_id, res_id, res_inst_id, data_len); in state_read_pkg_version()
561 static int package_write_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in package_write_cb() argument
575 ret = instance->write_package_cb(obj_inst_id, res_id, res_inst_id, data, data_len, in package_write_cb()
646 static int package_uri_write_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in package_uri_write_cb() argument
Dipso_push_button.c86 uint16_t res_id, uint16_t res_inst_id, in state_post_write_cb() argument
109 path.obj_inst_id, path.res_id); in state_post_write_cb()
Dlwm2m_obj_device.c151 static void *current_time_read_cb(uint16_t obj_inst_id, uint16_t res_id, in current_time_read_cb() argument
160 static void *current_time_pre_write_cb(uint16_t obj_inst_id, uint16_t res_id, in current_time_pre_write_cb() argument
167 static int current_time_post_write_cb(uint16_t obj_inst_id, uint16_t res_id, in current_time_post_write_cb() argument
Dipso_filling_sensor.c102 static void update(uint16_t obj_inst_id, uint16_t res_id, int index) in update() argument
122 static int update_cb(uint16_t obj_inst_id, uint16_t res_id, in update_cb() argument
130 update(obj_inst_id, res_id, i); in update_cb()
Dlwm2m_rw_oma_tlv.c110 path->res_inst_id : path->res_id; in tlv_calc_id()
400 OMA_TLV_TYPE_MULTI_RESOURCE, path->res_id); in put_end_ri()
888 msg->in.block_ctx->path.res_id = tlv->id; in write_tlv_resource()
891 msg->path.res_id = tlv->id; in write_tlv_resource()
919 msg->in.block_ctx->path.res_id = multi_resource_tlv->id; in lwm2m_multi_resource_tlv_parse()
935 msg->path.res_id = multi_resource_tlv->id; in lwm2m_multi_resource_tlv_parse()
967 msg->path.res_id = msg->in.block_ctx->path.res_id; in do_write_op_tlv()
Dlwm2m_obj_firmware.c141 path.res_id = FIRMWARE_STATE_ID; in lwm2m_firmware_set_update_state_inst()
237 static int package_write_cb(uint16_t obj_inst_id, uint16_t res_id, in package_write_cb() argument
272 ret = write_callback(obj_inst_id, res_id, res_inst_id, data, data_len, last_block, in package_write_cb()
300 static int package_uri_write_cb(uint16_t obj_inst_id, uint16_t res_id, in package_uri_write_cb() argument
Dipso_light_control.c70 static void *on_time_read_cb(uint16_t obj_inst_id, uint16_t res_id, uint16_t res_inst_id, in on_time_read_cb() argument
93 uint16_t res_id, uint16_t res_inst_id, in on_time_post_write_cb() argument
Dlwm2m_observation.h10 int lwm2m_notify_observer(uint16_t obj_id, uint16_t obj_inst_id, uint16_t res_id);
Dlwm2m_registry.h203 struct lwm2m_engine_obj_field *lwm2m_get_engine_obj_field(struct lwm2m_engine_obj *obj, int res_id);
/Zephyr-Core-3.5.0/drivers/entropy/
Dentropy_cc13xx_cc26xx.c245 int16_t res_id; in post_notify_fxn() local
249 res_id = PowerCC26XX_PERIPH_TRNG; in post_notify_fxn()
251 if (Power_getDependencyCount(res_id) != 0) { in post_notify_fxn()
/Zephyr-Core-3.5.0/drivers/serial/
Duart_cc13xx_cc26xx.c407 int16_t res_id; in postNotifyFxn() local
412 res_id = PowerCC26XX_PERIPH_UART0; in postNotifyFxn()
414 res_id = PowerCC26X2_PERIPH_UART1; in postNotifyFxn()
417 if (Power_getDependencyCount(res_id) != 0) { in postNotifyFxn()
/Zephyr-Core-3.5.0/drivers/i2c/
Di2c_cc13xx_cc26xx.c301 int16_t res_id; in postNotifyFxn() local
305 res_id = PowerCC26XX_PERIPH_I2C0; in postNotifyFxn()
307 if (Power_getDependencyCount(res_id) != 0) { in postNotifyFxn()

12