Lines Matching refs:struct
173 The following code implements channel A. Note the ``struct a_msg`` is illustrative only.
178 struct a_msg, /* Message type */
342 const struct zbus_channel *chan;
438 message and observers list during the channel definition. A message is a regular C struct; the
447 struct acc_msg {
454 struct acc_msg, /* Message type */
463 void listener_callback_example(const struct zbus_channel *chan)
465 const struct acc_msg *acc;
481 const struct zbus_channel *chan;
484 struct acc_msg acc = {0};
501 const struct zbus_channel *chan;
503 struct acc_msg acc = {0};
539 struct control_msg {
544 const struct control_msg* cm = msg;
552 struct control_msg, /* Message type */
576 struct acc_msg acc1 = {.x = 1, .y = 1, .z = 1};
593 struct acc_msg acc = {0};
646 procedure over all declared channels, where the procedure parameter is a :c:struct:`zbus_channel`.
649 :c:struct:`zbus_observer`.
653 static bool print_channel_data_iterator(const struct zbus_channel *chan, void *user_data)
663 struct zbus_channel_observation *observation;
672 struct zbus_observer_node *obs_nd, *tmp;
681 static bool print_observer_data_iterator(const struct zbus_observer *obs, void *user_data)
747 void listener_callback_example(const struct zbus_channel *chan)
749 const struct acc_msg *acc;
777 Never change the fields of the channel struct directly. It may cause zbus behavior
801 struct acc_msg *acc1 = (struct acc_msg *) zbus_chan_msg(&acc_chan);
814 const struct acc_msg *acc1 = (const struct acc_msg *) zbus_chan_const_msg(&acc_chan);