Home
last modified time | relevance | path

Searched refs:msg_received (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/samples/subsys/zbus/benchmark/src/
Dlis.c38 struct bm_msg msg_received; in s_cb() local
40 memcpy(zbus_chan_msg(chan), &msg_received, chan->message_size); in s_cb()
42 atomic_add(&count, *((uint16_t *)msg_received.bytes)); in s_cb()
44 const struct bm_msg *msg_received = zbus_chan_const_msg(chan); in s_cb() local
46 atomic_add(&count, *((uint16_t *)msg_received->bytes)); in s_cb()
Dmsg_sub.c38 struct bm_msg msg_received; in msg_sub_thread() local
42 if (zbus_sub_wait_msg(msub, &chan, &msg_received, K_FOREVER) == 0) { in msg_sub_thread()
43 atomic_add(&count, *((uint16_t *)msg_received.bytes)); in msg_sub_thread()
Dsub.c53 const struct bm_msg *msg_received = zbus_chan_const_msg(chan); in sub_thread() local
55 atomic_add(&count, *((uint16_t *)msg_received->bytes)); in sub_thread()