Searched refs:async_rx (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.7.0/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-Core-3.7.0/include/zephyr/drivers/serial/ |
D | uart_async_rx.h | 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() 101 int uart_async_rx_init(struct uart_async_rx *async_rx, 111 void uart_async_rx_reset(struct uart_async_rx *async_rx); 121 void uart_async_rx_on_rdy(struct uart_async_rx *async_rx, uint8_t *buffer, size_t length); 133 uint8_t *uart_async_rx_buf_req(struct uart_async_rx *async_rx); 142 void uart_async_rx_on_buf_rel(struct uart_async_rx *async_rx, uint8_t *buf); 158 size_t uart_async_rx_data_claim(struct uart_async_rx *async_rx, uint8_t **data, size_t length); 170 bool uart_async_rx_data_consume(struct uart_async_rx *async_rx, size_t length);
|
D | uart_async_to_irq.h | 94 .async_rx = { \ 153 struct uart_async_rx_config async_rx; member 187 struct uart_async_rx async_rx; member
|
/Zephyr-Core-3.7.0/drivers/serial/ |
D | uart_async_to_irq.c | 76 uint8_t *buf = uart_async_rx_buf_req(&data->rx.async_rx); in try_rx_enable() 77 size_t len = uart_async_rx_get_buf_len(&data->rx.async_rx); in try_rx_enable() 90 struct uart_async_rx *async_rx = &data->rx.async_rx; in on_rx_buf_req() local 91 uint8_t *buf = uart_async_rx_buf_req(async_rx); in on_rx_buf_req() 92 size_t len = uart_async_rx_get_buf_len(async_rx); in on_rx_buf_req() 98 uart_async_rx_on_buf_rel(async_rx, buf); in on_rx_buf_req() 110 if (data->rx.async_rx.pending_bytes == 0) { in on_rx_dis() 111 uart_async_rx_reset(&data->rx.async_rx); in on_rx_dis() 141 uart_async_rx_on_rdy(&data->rx.async_rx, evt->data.rx.buf, evt->data.rx.len); in uart_async_to_irq_callback() 148 uart_async_rx_on_buf_rel(&data->rx.async_rx, evt->data.rx_buf.buf); in uart_async_to_irq_callback() [all …]
|
/Zephyr-Core-3.7.0/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() 440 struct uart_async_rx *async_rx = &sh_uart->async_rx; in async_read() local [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/shell/ |
D | shell_uart.h | 63 struct uart_async_rx async_rx; member
|