Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 55) sorted by relevance

123

/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
A Dpublisher.c27 bt_mesh_model_msg_init(root_models[3].pub->msg, in publish()
33 bt_mesh_model_msg_init(root_models[3].pub->msg, in publish()
41 bt_mesh_model_msg_init(vnd_models[0].pub->msg, in publish()
49 bt_mesh_model_msg_init(root_models[3].pub->msg, in publish()
55 bt_mesh_model_msg_init(root_models[3].pub->msg, in publish()
63 bt_mesh_model_msg_init(vnd_models[0].pub->msg, in publish()
71 bt_mesh_model_msg_init(root_models[5].pub->msg, in publish()
77 bt_mesh_model_msg_init(root_models[3].pub->msg, in publish()
81 bt_mesh_model_msg_init(root_models[5].pub->msg, in publish()
87 bt_mesh_model_msg_init(root_models[5].pub->msg, in publish()
[all …]
A Ddevice_composition.c99 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_publish() local
308 struct net_buf_simple *msg = model->pub->msg; in gen_level_publish() local
819 struct net_buf_simple *msg = model->pub->msg; in gen_def_trans_time_publish() local
925 struct net_buf_simple *msg = model->pub->msg; in gen_onpowerup_publish() local
1091 struct net_buf_simple *msg = model->pub->msg; in light_lightness_publish() local
1278 struct net_buf_simple *msg = model->pub->msg; in light_lightness_linear_publish() local
1493 struct net_buf_simple *msg = model->pub->msg; in light_lightness_default_publish() local
1553 struct net_buf_simple *msg = model->pub->msg; in light_lightness_range_publish() local
1740 struct net_buf_simple *msg = model->pub->msg; in light_ctl_publish() local
1971 struct net_buf_simple *msg = model->pub->msg; in light_ctl_default_publish() local
[all …]
/samples/subsys/zbus/work_queue/src/
A Dmain.c43 msg->temp, msg->press, msg->humidity); in fh1_cb()
53 msg->temp, msg->press, msg->humidity); in fh2_cb()
63 msg->temp, msg->press, msg->humidity); in fh3_cb()
80 struct sensor_msg msg; in wq_dh_cb() local
87 sens->handle, msg.temp, msg.press, msg.humidity); in wq_dh_cb()
136 struct sensor_msg msg; in thread_handler1_task() local
142 msg.temp, msg.press, msg.humidity); in thread_handler1_task()
155 struct sensor_msg msg; in thread_handler2_task() local
161 msg.temp, msg.press, msg.humidity); in thread_handler2_task()
174 struct sensor_msg msg; in thread_handler3_task() local
[all …]
/samples/tfm_integration/tfm_secure_partition/dummy_partition/
A Ddummy_partition.c82 num = psa_read(msg->handle, 0, &secret_index, msg->in_size[0]); in tfm_dp_secret_digest_ipc()
83 if (num != msg->in_size[0]) { in tfm_dp_secret_digest_ipc()
88 &msg->out_size[0], psa_write_digest, in tfm_dp_secret_digest_ipc()
89 (void *)msg->handle); in tfm_dp_secret_digest_ipc()
95 psa_msg_t msg; in dp_signal_handle() local
97 status = psa_get(signal, &msg); in dp_signal_handle()
98 switch (msg.type) { in dp_signal_handle()
100 psa_reply(msg.handle, PSA_SUCCESS); in dp_signal_handle()
103 status = pfn(&msg); in dp_signal_handle()
104 psa_reply(msg.handle, status); in dp_signal_handle()
[all …]
/samples/subsys/zbus/msg_subscriber/
A Dsample.yaml35 - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=1, y=10, z=100"
36 - "^.*?I: From msg subscriber bar_msg_sub2 -> Acc x=1, y=10, z=100"
37 - "^.*?I: From msg subscriber bar_msg_sub3 -> Acc x=1, y=10, z=100"
38 - "^.*?I: From msg subscriber bar_msg_sub4 -> Acc x=1, y=10, z=100"
39 - "^.*?I: From msg subscriber bar_msg_sub5 -> Acc x=1, y=10, z=100"
40 - "^.*?I: From msg subscriber bar_msg_sub6 -> Acc x=1, y=10, z=100"
41 - "^.*?I: From msg subscriber bar_msg_sub7 -> Acc x=1, y=10, z=100"
42 - "^.*?I: From msg subscriber bar_msg_sub8 -> Acc x=1, y=10, z=100"
43 - "^.*?I: From msg subscriber bar_msg_sub9 -> Acc x=1, y=10, z=100"
54 - "^.*?I: From msg subscriber bar_msg_sub1 -> Acc x=2, y=20, z=200"
[all …]
A DREADME.rst1 .. zephyr:code-sample:: zbus-msg-subscriber
36 I: From msg subscriber bar_msg_sub1 -> Acc x=1, y=10, z=100
37 I: From msg subscriber bar_msg_sub2 -> Acc x=1, y=10, z=100
38 I: From msg subscriber bar_msg_sub3 -> Acc x=1, y=10, z=100
39 I: From msg subscriber bar_msg_sub4 -> Acc x=1, y=10, z=100
40 I: From msg subscriber bar_msg_sub5 -> Acc x=1, y=10, z=100
41 I: From msg subscriber bar_msg_sub6 -> Acc x=1, y=10, z=100
42 I: From msg subscriber bar_msg_sub7 -> Acc x=1, y=10, z=100
43 I: From msg subscriber bar_msg_sub8 -> Acc x=1, y=10, z=100
44 I: From msg subscriber bar_msg_sub9 -> Acc x=1, y=10, z=100
[all …]
/samples/subsys/zbus/work_queue/
A Dsample.yaml12 - "I: Sensor msg processed by CALLBACK fh1: temp = 10, press = 1, humidity = 100"
13 - "I: Sensor msg processed by CALLBACK fh2: temp = 10, press = 1, humidity = 100"
14 - "I: Sensor msg processed by CALLBACK fh3: temp = 10, press = 1, humidity = 100"
18 - "I: Sensor msg processed by THREAD handler 1: temp = 10, press = 1, humidity = 100"
19 - "I: Sensor msg processed by THREAD handler 2: temp = 10, press = 1, humidity = 100"
20 - "I: Sensor msg processed by THREAD handler 3: temp = 10, press = 1, humidity = 100"
21 - "I: Sensor msg processed by CALLBACK fh1: temp = 20, press = 2, humidity = 200"
22 - "I: Sensor msg processed by CALLBACK fh2: temp = 20, press = 2, humidity = 200"
23 - "I: Sensor msg processed by CALLBACK fh3: temp = 20, press = 2, humidity = 200"
27 - "I: Sensor msg processed by THREAD handler 1: temp = 20, press = 2, humidity = 200"
[all …]
A DREADME.rst28 I: Sensor msg processed by CALLBACK fh1: temp = 10, press = 1, humidity = 100
29 I: Sensor msg processed by CALLBACK fh2: temp = 10, press = 1, humidity = 100
30 I: Sensor msg processed by CALLBACK fh3: temp = 10, press = 1, humidity = 100
34 I: Sensor msg processed by THREAD handler 1: temp = 10, press = 1, humidity = 100
35 I: Sensor msg processed by THREAD handler 2: temp = 10, press = 1, humidity = 100
37 I: Sensor msg processed by CALLBACK fh1: temp = 20, press = 2, humidity = 200
38 I: Sensor msg processed by CALLBACK fh2: temp = 20, press = 2, humidity = 200
39 I: Sensor msg processed by CALLBACK fh3: temp = 20, press = 2, humidity = 200
46 I: Sensor msg processed by CALLBACK fh1: temp = 30, press = 3, humidity = 300
47 I: Sensor msg processed by CALLBACK fh2: temp = 30, press = 3, humidity = 300
[all …]
/samples/subsys/usb/cdc_acm_bridge/src/
A Dmain.c30 static void sample_msg_cb(struct usbd_context *const ctx, const struct usbd_msg *msg) in sample_msg_cb() argument
32 LOG_INF("USBD message: %s", usbd_msg_type_string(msg->type)); in sample_msg_cb()
35 if (msg->type == USBD_MSG_VBUS_READY) { in sample_msg_cb()
41 if (msg->type == USBD_MSG_VBUS_REMOVED) { in sample_msg_cb()
48 if (msg->type == USBD_MSG_CDC_ACM_LINE_CODING || in sample_msg_cb()
49 msg->type == USBD_MSG_CDC_ACM_CONTROL_LINE_STATE) { in sample_msg_cb()
54 uart_bridge_settings_update(msg->dev, uart_bridges[i]); in sample_msg_cb()
/samples/subsys/zbus/runtime_obs_registration/src/
A Dmain.c22 const struct sensor_msg *msg = zbus_chan_const_msg(chan); in filter_callback() local
25 if (0 == (msg->x % 2)) { in filter_callback()
26 proc_msg.x = msg->x; in filter_callback()
28 if (0 == (msg->y % 2)) { in filter_callback()
29 proc_msg.y = msg->y; in filter_callback()
31 if (0 == (msg->z % 2)) { in filter_callback()
32 proc_msg.z = msg->z; in filter_callback()
/samples/net/openthread/coap/src/
A Dcoap_utils.c35 otMessage *msg; in coap_req_send() local
50 msg = otCoapNewMessage(ot, NULL); in coap_req_send()
51 if (!msg) { in coap_req_send()
72 err = otMessageAppend(msg, buf, len); in coap_req_send()
89 otMessageFree(msg); in coap_req_send()
199 int len = otMessageGetLength(msg) - otMessageGetOffset(msg); in coap_req_handler()
201 otMessageRead(msg, otMessageGetOffset(msg), coap_buf, len); in coap_req_handler()
208 ret = get_fn(ctx, msg, msg_info); in coap_req_handler()
215 return get_fn(ctx, msg, msg_info); in coap_req_handler()
246 int coap_len = otMessageGetLength(msg) - otMessageGetOffset(msg); in coap_get_data()
[all …]
A Dcoap_utils.h17 typedef int (*coap_req_handler_get)(void *ctx, otMessage *msg, const otMessageInfo *msg_info);
20 int coap_req_handler(void *ctx, otMessage *msg, const otMessageInfo *msg_info,
28 int coap_get_data(otMessage *msg, void *buf, int *len);
/samples/subsys/zbus/dyn_channel/src/
A Dproducer.c18 void *msg; in producer_thread() local
21 msg = k_malloc(i + 1); in producer_thread()
23 __ASSERT_NO_MSG(msg != NULL); in producer_thread()
25 struct external_data_msg dyn_alloc_msg = {.reference = msg, .size = i + 1}; in producer_thread()
/samples/modules/thrift/hello/server/src/
A DHelloHandler.h31 void echo(std::string &_return, const std::string &msg) in echo() argument
33 printk("%s: %s\n", __func__, msg.c_str()); in echo()
34 _return = msg; in echo()
/samples/subsys/usb/webusb/src/
A Dmain.c26 const struct usbd_msg *const msg) in msg_cb() argument
28 LOG_INF("USBD message: %s", usbd_msg_type_string(msg->type)); in msg_cb()
31 if (msg->type == USBD_MSG_VBUS_READY) { in msg_cb()
37 if (msg->type == USBD_MSG_VBUS_REMOVED) { in msg_cb()
/samples/kernel/metairq_dispatch/src/
A Dmsgdev.h44 struct msg { struct
69 void message_dev_fetch(struct msg *m); argument
/samples/drivers/mbox_data/remote/src/
A Dmain.c31 struct mbox_msg msg = {0}; in main() local
62 msg.data = &message; in main()
63 msg.size = max_transfer_size_bytes; in main()
66 if (mbox_send_dt(&tx_channel, &msg) < 0) { in main()
/samples/drivers/mbox_data/src/
A Dmain.c31 struct mbox_msg msg = {0}; in main() local
54 msg.data = &message; in main()
55 msg.size = max_transfer_size_bytes; in main()
58 if (mbox_send_dt(&tx_channel, &msg) < 0) { in main()
/samples/boards/phytec/reel_board/mesh_badge/src/
A Dmesh.c186 NET_BUF_SIMPLE_DEFINE(msg, 2 + 1 + 4); in gen_onoff_get()
205 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack() local
254 bt_mesh_model_msg_init(msg, in gen_onoff_set_unack()
299 net_buf_simple_add_le16(msg, temp_degrees); in sens_temperature_celsius_fill()
328 sens_temperature_celsius_fill(msg); in sensor_create_status()
331 sens_unknown_fill(id, msg); in sensor_create_status()
343 sensor_create_status(sensor_id, &msg); in sensor_get()
482 struct net_buf_simple *msg = mod->pub->msg; in pub_update() local
487 net_buf_simple_add_u8(msg, DEFAULT_TTL); in pub_update()
535 net_buf_simple_add_mem(&msg, name, in send_hello()
[all …]
/samples/subsys/usb/cdc_acm/src/
A Dmain.c45 static void sample_msg_cb(struct usbd_context *const ctx, const struct usbd_msg *msg) in sample_msg_cb() argument
47 LOG_INF("USBD message: %s", usbd_msg_type_string(msg->type)); in sample_msg_cb()
50 if (msg->type == USBD_MSG_VBUS_READY) { in sample_msg_cb()
56 if (msg->type == USBD_MSG_VBUS_REMOVED) { in sample_msg_cb()
63 if (msg->type == USBD_MSG_CDC_ACM_CONTROL_LINE_STATE) { in sample_msg_cb()
66 uart_line_ctrl_get(msg->dev, UART_LINE_CTRL_DTR, &dtr); in sample_msg_cb()
72 if (msg->type == USBD_MSG_CDC_ACM_LINE_CODING) { in sample_msg_cb()
73 print_baudrate(msg->dev); in sample_msg_cb()
/samples/subsys/ipc/ipc_service/icmsg/remote/src/
A Dmain.c69 struct data_packet msg = {.data[0] = 'A'}; in send_for_time() local
79 ret = ipc_service_send(ep, &msg, mlen); in send_for_time()
85 LOG_ERR("Failed to send (%c) failed with ret %d", msg.data[0], ret); in send_for_time()
94 msg.data[0]++; in send_for_time()
95 if (msg.data[0] > 'Z') { in send_for_time()
96 msg.data[0] = 'A'; in send_for_time()
/samples/boards/nxp/adsp/rtxxx/amp_mbox/src/
A Dmain.c30 struct mbox_msg msg = {.data = &mbox_data, .size = sizeof(mbox_data)}; in main() local
33 if (mbox_send(mbox, mbox_ch, &msg) < 0) { in main()
/samples/subsys/zbus/remote_mock/
A Dremote_mock.py28 msg = ser.read(msg_size)
30 return (channel_name, msg_size, msg)
48 channel_name, msg_size, msg = fetch_sentence(ser) variable
/samples/modules/pmci/mctp/i2c_gpio_bus_endpoint/src/
A Dmain.c21 static void rx_message(uint8_t eid, bool tag_owner, uint8_t msg_tag, void *data, void *msg, in rx_message() argument
24 LOG_INF("received message \"%s\" from endpoint %d, msg_tag %d, len %zu", (char *)msg, eid, in rx_message()
/samples/subsys/ipc/ipc_service/icmsg/src/
A Dmain.c83 struct data_packet msg = {.data[0] = 'a'}; in send_for_time() local
93 ret = ipc_service_send(ep, &msg, mlen); in send_for_time()
99 LOG_ERR("Failed to send (%c) failed with ret %d", msg.data[0], ret); in send_for_time()
108 msg.data[0]++; in send_for_time()
109 if (msg.data[0] > 'z') { in send_for_time()
110 msg.data[0] = 'a'; in send_for_time()

Completed in 65 milliseconds

123