Lines Matching refs:chan
33 const struct zbus_channel *chan; in bridge_tx_thread() local
36 if (!zbus_sub_wait(&bridge_sub, &chan, K_FOREVER)) { in bridge_tx_thread()
37 if (!zbus_chan_claim(chan, K_MSEC(500))) { in bridge_tx_thread()
38 bool *user_data = (bool *)zbus_chan_user_data(chan); in bridge_tx_thread()
42 zbus_chan_finish(chan); in bridge_tx_thread()
48 LOG_DBG("Bridge send %s", zbus_chan_name(chan)); in bridge_tx_thread()
52 for (int i = 0; i < strlen(zbus_chan_name(chan)); ++i) { in bridge_tx_thread()
53 uart_poll_out(bridge_uart, zbus_chan_name(chan)[i]); in bridge_tx_thread()
58 uart_poll_out(bridge_uart, zbus_chan_msg_size(chan)); in bridge_tx_thread()
60 for (int i = 0; i < zbus_chan_msg_size(chan); ++i) { in bridge_tx_thread()
62 ((uint8_t *)zbus_chan_msg(chan))[i]); in bridge_tx_thread()