Searched full:async_rx (Results 1 – 10 of 10) sorted by relevance
/Zephyr-latest/tests/drivers/uart/uart_async_rx/src/ |
D | main.c | 43 struct uart_async_rx async_rx; in ZTEST() local 51 err = uart_async_rx_init(&async_rx, &config); in ZTEST() 54 aloc_len = uart_async_rx_get_buf_len(&async_rx); in ZTEST() 55 aloc_buf = uart_async_rx_buf_req(&async_rx); in ZTEST() 60 claim_len = uart_async_rx_data_claim(&async_rx, &claim_buf, 1); in ZTEST() 64 uart_async_rx_on_rdy(&async_rx, aloc_buf, aloc_len - 4); in ZTEST() 67 claim_len = uart_async_rx_data_claim(&async_rx, &claim_buf, 1); in ZTEST() 73 claim_len = uart_async_rx_data_claim(&async_rx, &claim_buf, 100); in ZTEST() 79 uart_async_rx_on_rdy(&async_rx, aloc_buf, 2); in ZTEST() 82 uart_async_rx_on_buf_rel(&async_rx, aloc_buf); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/drivers/serial/ |
D | uart_async_rx.h | 75 * @param async_rx Pointer to the helper instance. 79 static inline uint8_t uart_async_rx_get_buf_len(struct uart_async_rx *async_rx) in uart_async_rx_get_buf_len() argument 81 return async_rx->buf_len; in uart_async_rx_get_buf_len() 96 * @param async_rx Pointer to the helper instance. 101 int uart_async_rx_init(struct uart_async_rx *async_rx, 109 * @param async_rx Pointer to the helper instance. 111 void uart_async_rx_reset(struct uart_async_rx *async_rx); 117 * @param async_rx Pointer to the helper instance. 121 void uart_async_rx_on_rdy(struct uart_async_rx *async_rx, uint8_t *buffer, size_t length); 129 * @param async_rx Pointer to the helper instance. [all …]
|
D | uart_async_to_irq.h | 94 .async_rx = { \ 151 struct uart_async_rx_config async_rx; member 185 struct uart_async_rx async_rx; member
|
/Zephyr-latest/drivers/serial/ |
D | uart_async_to_irq.c | 79 uint8_t *buf = uart_async_rx_buf_req(&data->rx.async_rx); in try_rx_enable() 80 size_t len = uart_async_rx_get_buf_len(&data->rx.async_rx); in try_rx_enable() 93 struct uart_async_rx *async_rx = &data->rx.async_rx; in on_rx_buf_req() local 94 uint8_t *buf = uart_async_rx_buf_req(async_rx); in on_rx_buf_req() 95 size_t len = uart_async_rx_get_buf_len(async_rx); in on_rx_buf_req() 101 uart_async_rx_on_buf_rel(async_rx, buf); in on_rx_buf_req() 113 if (data->rx.async_rx.pending_bytes == 0) { in on_rx_dis() 114 uart_async_rx_reset(&data->rx.async_rx); in on_rx_dis() 144 uart_async_rx_on_rdy(&data->rx.async_rx, evt->data.rx.buf, evt->data.rx.len); in uart_async_to_irq_callback() 151 uart_async_rx_on_buf_rel(&data->rx.async_rx, evt->data.rx_buf.buf); in uart_async_to_irq_callback() [all …]
|
D | uart_nrfx_uarte.c | 1005 struct uarte_async_rx *async_rx = &data->async->rx; in uarte_nrfx_rx_enable() local 1018 if (async_rx->enabled || async_rx->discard_fifo) { in uarte_nrfx_rx_enable() 1031 async_rx->usr_buf = buf; in uarte_nrfx_rx_enable() 1041 async_rx->timeout = K_USEC(timeout); in uarte_nrfx_rx_enable() 1045 async_rx->timeout = K_NO_WAIT; in uarte_nrfx_rx_enable() 1048 async_rx->timeout = (timeout == SYS_FOREVER_US) ? in uarte_nrfx_rx_enable() 1050 async_rx->idle_cnt = 0; in uarte_nrfx_rx_enable() 1053 async_rx->timeout_us = timeout; in uarte_nrfx_rx_enable() 1054 async_rx->timeout_slab = timeout / RX_TIMEOUT_DIV; in uarte_nrfx_rx_enable() 1057 async_rx->buf = buf; in uarte_nrfx_rx_enable() [all …]
|
D | uart_xmc4xxx.c | 247 /* re-enable the IRQ as it may have been disabled during async_rx */ in uart_xmc4xxx_irq_rx_enable()
|
/Zephyr-latest/tests/drivers/uart/uart_async_rx/ |
D | testcase.yaml | 2 drivers.uart.async_rx: 9 drivers.uart.async_rx.ztress:
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_uart.c | 40 uart_async_rx_on_rdy(&sh_uart->async_rx, evt->data.rx.buf, evt->data.rx.len); in async_callback() 45 uint8_t *buf = uart_async_rx_buf_req(&sh_uart->async_rx); in async_callback() 46 size_t len = uart_async_rx_get_buf_len(&sh_uart->async_rx); in async_callback() 52 uart_async_rx_on_buf_rel(&sh_uart->async_rx, buf); in async_callback() 61 uart_async_rx_on_buf_rel(&sh_uart->async_rx, evt->data.rx_buf.buf); in async_callback() 237 struct uart_async_rx *async_rx = &sh_uart->async_rx; in async_init() local 248 err = uart_async_rx_init(async_rx, &sh_uart->async_rx_config); in async_init() 252 uint8_t *buf = uart_async_rx_buf_req(async_rx); in async_init() 258 err = rx_enable(dev, buf, uart_async_rx_get_buf_len(async_rx)); in async_init() 441 struct uart_async_rx *async_rx = &sh_uart->async_rx; in async_read() local [all …]
|
/Zephyr-latest/drivers/misc/coresight/ |
D | nrf_etr.c | 144 static struct uart_async_rx async_rx; variable 708 uart_async_rx_on_rdy(&async_rx, evt->data.rx.buf, evt->data.rx.len); in uart_event_handler() 712 uint8_t *buf = uart_async_rx_buf_req(&async_rx); in uart_event_handler() 713 size_t len = uart_async_rx_get_buf_len(&async_rx); in uart_event_handler() 719 uart_async_rx_on_buf_rel(&async_rx, buf); in uart_event_handler() 728 uart_async_rx_on_buf_rel(&async_rx, evt->data.rx_buf.buf); in uart_event_handler() 859 blen = uart_async_rx_data_claim(&async_rx, &buf, length); in etr_shell_read() 861 buf_available = uart_async_rx_data_consume(&async_rx, blen); in etr_shell_read() 865 uint8_t *buf = uart_async_rx_buf_req(&async_rx); in etr_shell_read() 866 size_t len = uart_async_rx_get_buf_len(&async_rx); in etr_shell_read() [all …]
|
/Zephyr-latest/include/zephyr/shell/ |
D | shell_uart.h | 63 struct uart_async_rx async_rx; member
|