Home
last modified time | relevance | path

Searched refs:lwm2m_obj_path (Results 1 – 25 of 45) sorted by relevance

12

/Zephyr-Core-3.7.0/include/zephyr/net/
Dlwm2m.h96 struct lwm2m_obj_path { struct
124 typedef void (*lwm2m_observe_cb_t)(enum lwm2m_observe_event event, struct lwm2m_obj_path *path, argument
762 const struct lwm2m_obj_path *path, uint32_t period_s);
779 const struct lwm2m_obj_path *path, uint32_t period_s);
792 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path);
803 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path);
829 int lwm2m_set_opaque(const struct lwm2m_obj_path *path, const char *data_ptr, uint16_t data_len);
839 int lwm2m_set_string(const struct lwm2m_obj_path *path, const char *data_ptr);
849 int lwm2m_set_u8(const struct lwm2m_obj_path *path, uint8_t value);
859 int lwm2m_set_u16(const struct lwm2m_obj_path *path, uint16_t value);
[all …]
Dlwm2m_path.h89 #define LWM2M_OBJ1(oi) (struct lwm2m_obj_path) {.obj_id = oi, .level = 1}
90 #define LWM2M_OBJ2(oi, oii) (struct lwm2m_obj_path) {.obj_id = oi, .obj_inst_id = oii, .level = 2}
91 #define LWM2M_OBJ3(oi, oii, ri) (struct lwm2m_obj_path) \
93 #define LWM2M_OBJ4(oi, oii, ri, rii) (struct lwm2m_obj_path) \
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/lwm2m_rd_client/src/
Dstubs.c63 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_u32, const struct lwm2m_obj_path *, uint32_t *);
64 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_u16, const struct lwm2m_obj_path *, uint16_t *);
65 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *);
66 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_set_u32, const struct lwm2m_obj_path *, uint32_t);
67 int lwm2m_get_bool_fake_default(const struct lwm2m_obj_path *path, bool *value) in lwm2m_get_bool_fake_default()
72 int lwm2m_get_bool_fake_true(const struct lwm2m_obj_path *path, bool *value) in lwm2m_get_bool_fake_true()
80 int lwm2m_get_u32_val(const struct lwm2m_obj_path *path, uint32_t *val) in lwm2m_get_u32_val()
229 FAKE_VALUE_FUNC(int, put_begin, struct lwm2m_output_context *, struct lwm2m_obj_path *);
230 FAKE_VALUE_FUNC(int, put_end, struct lwm2m_output_context *, struct lwm2m_obj_path *);
231 FAKE_VALUE_FUNC(int, put_begin_oi, struct lwm2m_output_context *, struct lwm2m_obj_path *);
[all …]
Dstubs.h46 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_u32, const struct lwm2m_obj_path *, uint32_t *);
47 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_u16, const struct lwm2m_obj_path *, uint16_t *);
48 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *);
49 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_set_u32, const struct lwm2m_obj_path *, uint32_t);
50 int lwm2m_get_bool_fake_default(const struct lwm2m_obj_path *path, bool *value);
51 int lwm2m_get_bool_fake_true(const struct lwm2m_obj_path *path, bool *value);
53 int lwm2m_get_u32_val(const struct lwm2m_obj_path *path, uint32_t *val);
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/
Dlwm2m_registry.h68 int lwm2m_engine_get_create_res_inst(const struct lwm2m_obj_path *path,
79 int lwm2m_get_resource(const struct lwm2m_obj_path *path, struct lwm2m_engine_res **res);
88 struct lwm2m_engine_obj *lwm2m_engine_get_obj(const struct lwm2m_obj_path *path);
97 struct lwm2m_engine_obj_inst *lwm2m_engine_get_obj_inst(const struct lwm2m_obj_path *path);
106 struct lwm2m_engine_res *lwm2m_engine_get_res(const struct lwm2m_obj_path *path);
115 struct lwm2m_engine_res_inst *lwm2m_engine_get_res_inst(const struct lwm2m_obj_path *path);
147 int path_to_objs(const struct lwm2m_obj_path *path, struct lwm2m_engine_obj_inst **obj_inst,
211 struct lwm2m_obj_path path;
235 lwm2m_cache_entry_get_by_object(const struct lwm2m_obj_path *obj_path);
Dlwm2m_object.h446 struct lwm2m_obj_path path;
491 struct lwm2m_obj_path path;
534 struct lwm2m_obj_path *path);
536 struct lwm2m_obj_path *path);
538 struct lwm2m_obj_path *path);
540 struct lwm2m_obj_path *path);
542 struct lwm2m_obj_path *path);
544 struct lwm2m_obj_path *path);
546 struct lwm2m_obj_path *path);
548 struct lwm2m_obj_path *path);
[all …]
Dlwm2m_registry.c99 const struct lwm2m_obj_path *path, const void *value,
158 struct lwm2m_engine_obj *lwm2m_engine_get_obj(const struct lwm2m_obj_path *path) in lwm2m_engine_get_obj()
319 int lwm2m_create_object_inst(const struct lwm2m_obj_path *path) in lwm2m_create_object_inst()
339 int lwm2m_delete_object_inst(const struct lwm2m_obj_path *path) in lwm2m_delete_object_inst()
358 struct lwm2m_engine_obj_inst *lwm2m_engine_get_obj_inst(const struct lwm2m_obj_path *path) in lwm2m_engine_get_obj_inst()
367 int path_to_objs(const struct lwm2m_obj_path *path, struct lwm2m_engine_obj_inst **obj_inst, in path_to_objs()
443 static bool is_string(const struct lwm2m_obj_path *path) in is_string()
460 int lwm2m_set_res_buf(const struct lwm2m_obj_path *path, void *buffer_ptr, uint16_t buffer_len, in lwm2m_set_res_buf()
536 static int lwm2m_engine_set(const struct lwm2m_obj_path *path, const void *value, uint16_t len) in lwm2m_engine_set()
725 int lwm2m_set_opaque(const struct lwm2m_obj_path *path, const char *data_ptr, uint16_t data_len) in lwm2m_set_opaque()
[all …]
Dlwm2m_util.h27 int lwm2m_string_to_path(const char *pathstr, struct lwm2m_obj_path *path, char delim);
29 bool lwm2m_obj_path_equal(const struct lwm2m_obj_path *a, const struct lwm2m_obj_path *b);
Dlwm2m_observation.h11 int lwm2m_notify_observer_path(const struct lwm2m_obj_path *path);
60 struct lwm2m_obj_path path;
75 const struct lwm2m_obj_path *path);
77 int lwm2m_get_path_reference_ptr(struct lwm2m_engine_obj *obj, const struct lwm2m_obj_path *path,
Dlwm2m_rw_plain_text.c101 struct lwm2m_obj_path *path, int32_t value) in put_s32()
106 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8()
113 struct lwm2m_obj_path *path, int16_t value) in put_s16()
119 struct lwm2m_obj_path *path, int64_t value) in put_s64()
125 struct lwm2m_obj_path *path, time_t value) in put_time()
131 struct lwm2m_obj_path *path, double *value) in plain_text_put_float()
150 struct lwm2m_obj_path *path, char *buf, size_t buflen) in put_string()
163 struct lwm2m_obj_path *path, bool value) in put_bool()
173 struct lwm2m_obj_path *path, struct lwm2m_objlnk *value) in put_objlnk()
Dlwm2m_rw_senml_cbor.c73 static int path_to_string(char *buf, size_t buf_size, const struct lwm2m_obj_path *input,
142 static int put_basename(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_basename()
188 static int put_end(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end()
213 static int put_begin_oi(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_oi()
227 static int put_begin_r(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_r()
302 static int put_begin_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_ri()
347 static int put_name_nth_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_name_nth_ri()
364 static int put_value(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int64_t value) in put_value()
382 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int8_t value) in put_s8()
387 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16()
[all …]
Dlwm2m_rw_cbor.c37 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time()
97 struct lwm2m_obj_path *path, int64_t value) in put_s64()
117 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32()
137 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16()
142 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int8_t value) in put_s8()
148 struct lwm2m_obj_path *path, double *value) in put_float()
167 static int put_string(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_string()
187 static int put_opaque(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_opaque()
207 static int put_bool(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, bool value) in put_bool()
226 static int put_objlnk(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_objlnk()
Dlwm2m_rw_json.c194 struct lwm2m_obj_path *path) in init_object_name_parameters()
426 struct lwm2m_obj_path *path) in put_begin()
453 struct lwm2m_obj_path *path) in put_end()
466 struct lwm2m_obj_path *path) in put_begin_ri()
480 struct lwm2m_obj_path *path) in put_end_ri()
493 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32()
517 struct lwm2m_obj_path *path, int16_t value) in put_s16()
522 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8()
529 struct lwm2m_obj_path *path, int64_t value) in put_s64()
552 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time()
[all …]
Dlwm2m_rw_oma_tlv.c107 static uint16_t tlv_calc_id(uint8_t flags, struct lwm2m_obj_path *path) in tlv_calc_id()
333 struct lwm2m_obj_path *path) in put_begin_oi()
351 struct lwm2m_obj_path *path) in put_end_oi()
369 struct lwm2m_obj_path *path) in put_begin_ri()
383 struct lwm2m_obj_path *path) in put_end_ri()
403 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8()
423 struct lwm2m_obj_path *path, int16_t value) in put_s16()
448 struct lwm2m_obj_path *path, int32_t value) in put_s32()
474 struct lwm2m_obj_path *path, int64_t value) in put_s64()
499 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time()
[all …]
Dlwm2m_rw_link_format.c41 struct lwm2m_obj_path *path) in put_begin()
234 const struct lwm2m_obj_path *path, in put_corelink_attributes_resource()
254 const struct lwm2m_obj_path *path, in put_corelink_ssid()
317 const struct lwm2m_obj_path *path, in put_obj_corelink()
368 const struct lwm2m_obj_path *path, in put_obj_inst_corelink()
434 const struct lwm2m_obj_path *path, in put_res_corelink()
498 const struct lwm2m_obj_path *path, in put_res_inst_corelink()
547 const struct lwm2m_obj_path *path) in put_corelink()
Dlwm2m_rw_plain_text.h56 struct lwm2m_obj_path *path,
Dlwm2m_rw_senml_json.c120 struct lwm2m_obj_path base_name;
303 struct lwm2m_obj_path *path) in init_object_name_parameters()
331 static int put_begin(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin()
351 static int put_end(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end()
369 static int put_begin_oi(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_oi()
398 static int put_begin_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_begin_ri()
411 static int put_end_ri(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end_ri()
424 static int put_end_r(struct lwm2m_output_context *out, struct lwm2m_obj_path *path) in put_end_r()
738 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32()
761 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16()
[all …]
Dlwm2m_observation.c162 static bool lwm2m_observer_path_compare(const struct lwm2m_obj_path *o_p, in lwm2m_observer_path_compare()
163 const struct lwm2m_obj_path *p) in lwm2m_observer_path_compare()
193 static bool lwm2m_notify_observer_list(sys_slist_t *path_list, const struct lwm2m_obj_path *path) in lwm2m_notify_observer_list()
208 struct lwm2m_obj_path path; in lwm2m_notify_observer()
218 static int engine_observe_get_attributes(const struct lwm2m_obj_path *path, in engine_observe_get_attributes()
354 int lwm2m_notify_observer_path(const struct lwm2m_obj_path *path) in lwm2m_notify_observer_path()
522 if (memcmp(&obs_path->path, &comp_path->path, sizeof(struct lwm2m_obj_path))) { in engine_compare_obs_path_list()
607 memcpy(&obs_path_list_buf.path, &msg->path, sizeof(struct lwm2m_obj_path)); in engine_add_observer()
804 char *lwm2m_path_log_buf(char *buf, struct lwm2m_obj_path *path) in lwm2m_path_log_buf()
830 static int engine_remove_observer_by_path(struct lwm2m_ctx *ctx, struct lwm2m_obj_path *path) in engine_remove_observer_by_path()
[all …]
Dlwm2m_shell.c71 struct lwm2m_obj_path lwm2m_path_list[CONFIG_LWM2M_COMPOSITE_PATH_LIST_SIZE]; in cmd_send()
116 struct lwm2m_obj_path path; in cmd_exec()
166 struct lwm2m_obj_path path; in cmd_read()
319 struct lwm2m_obj_path path; in cmd_write()
390 struct lwm2m_obj_path path; in cmd_create_or_delete()
578 struct lwm2m_obj_path obj_path; in cmd_cache()
Dlwm2m_message_handling.h43 struct lwm2m_obj_path *path);
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.h46 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_res_buf, const struct lwm2m_obj_path *, void **, uint16_t *,
54 DECLARE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *);
Dstubs.c32 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_res_buf, const struct lwm2m_obj_path *, void **, uint16_t *,
40 DEFINE_FAKE_VALUE_FUNC(int, lwm2m_get_bool, const struct lwm2m_obj_path *, bool *);
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/observation/src/
Dlwm2m_observation.c21 static bool lwm2m_path_object_equal_upto(struct lwm2m_obj_path *path, in lwm2m_path_object_equal_upto()
22 struct lwm2m_obj_path *compare_path, uint8_t level) in lwm2m_path_object_equal_upto()
230 struct lwm2m_obj_path insert_path; in run_insertion_test()
249 struct lwm2m_obj_path expected_path; in run_insertion_test()
252 zassert_mem_equal(&entry->path, &expected_path, sizeof(struct lwm2m_obj_path), in run_insertion_test()
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/interop/src/
Dlwm2m-client.c35 struct lwm2m_obj_path *path, void *user_data);
211 struct lwm2m_obj_path *path, void *user_data) in observe_cb()
/Zephyr-Core-3.7.0/tests/net/lib/lwm2m/lwm2m_registry/src/
Dlwm2m_registry.c283 struct lwm2m_obj_path path_a = LWM2M_OBJ(16, 0, 0, 0); in ZTEST()
284 struct lwm2m_obj_path path_b = LWM2M_OBJ(16, 0, 0, 1); in ZTEST()
360 struct lwm2m_obj_path path = LWM2M_OBJ(0, 0, 0); in ZTEST()
431 struct lwm2m_obj_path none = {0}; in ZTEST()
465 struct lwm2m_obj_path path = LWM2M_OBJ(0, 0, 0); in ZTEST()
512 struct lwm2m_obj_path path = LWM2M_OBJ(32768, 0, LWM2M_RES_TYPE_BOOL); in ZTEST()

12