Lines Matching full:async
47 /* Macro determining if any instance is enabled and using ASYNC API. */
138 struct uarte_async_data *async; member
179 (!UARTE_INT_ASYNC || (((struct uarte_nrfx_data *)dev->data)->async == NULL))
195 data->async->user_callback = callback; in callback_set()
196 data->async->user_data = user_data; in callback_set()
232 k_timer_stop(&data->async->tx_timer); in on_tx_done()
234 data->async->user_callback(dev, &evt, data->async->user_data); in on_tx_done()
242 if (data->async->err) { in on_rx_done()
244 evt.data.rx_stop.reason = UARTE_ERROR_FROM_MASK(data->async->err); in on_rx_done()
249 data->async->err = 0; in on_rx_done()
251 data->async->user_callback(dev, &evt, data->async->user_data); in on_rx_done()
257 data->async->user_callback(dev, &evt, data->async->user_data); in on_rx_done()
263 data->async->user_callback(dev, &evt, data->async->user_data); in on_rx_done()
268 struct uarte_async_data *adata = data->async; in start_rx_timer()
276 struct uarte_async_data *adata = data->async; in on_rx_byte()
287 struct uarte_async_data *adata = data->async; in on_rx_buf_req()
316 data->async->user_callback(dev, &evt, data->async->user_data); in on_rx_buf_req()
326 k_timer_stop(&data->async->rx_timer); in on_rx_disabled()
328 data->async->user_callback(dev, &evt, data->async->user_data); in on_rx_disabled()
358 data->async->err = event->data.error.error_mask; in evt_handler()
410 k_timer_start(&data->async->tx_timer, K_USEC(timeout), K_NO_WAIT); in api_tx()
436 struct uarte_async_data *adata = data->async; in rx_timeout_handler()
485 struct uarte_async_data *adata = data->async; in api_rx_enable()
548 k_timer_stop(&data->async->rx_timer); in api_rx_disable()
735 uint32_t rv = data->async->err; in api_err_check()
737 data->async->err = 0; in api_err_check()
864 if (IS_ENABLED(UARTE_INT_ASYNC) && data->async) { in uarte_nrfx_init()
865 k_timer_init(&data->async->rx_timer, rx_timeout_handler, NULL); in uarte_nrfx_init()
866 k_timer_user_data_set(&data->async->rx_timer, (void *)dev); in uarte_nrfx_init()
867 k_timer_init(&data->async->tx_timer, tx_timeout_handler, NULL); in uarte_nrfx_init()
868 k_timer_user_data_set(&data->async->tx_timer, (void *)dev); in uarte_nrfx_init()
1047 .async = (IS_ENABLED(CONFIG_UART_##idx##_INTERRUPT_DRIVEN) || \