Searched refs:rx_content (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/tests/drivers/uart/uart_emul/src/ |
D | bus.c | 26 uint8_t rx_content[SAMPLE_DATA_SIZE]; member 69 memset(fixture->rx_content, 0, sizeof(fixture->rx_content)); in uart_emul_before() 115 rc = uart_poll_in(fixture->dev, &fixture->rx_content[i]); in ZTEST_F() 118 zassert_mem_equal(fixture->rx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F() 121 rc = uart_poll_in(fixture->dev, &fixture->rx_content[0]); in ZTEST_F() 171 rx_content_it = sizeof(fixture->rx_content) - fixture->rx_remaining; in uart_emul_isr_handle_rx_ready() 172 ret = uart_fifo_read(fixture->dev, &fixture->rx_content[rx_content_it], in uart_emul_isr_handle_rx_ready() 231 zassert_mem_equal(fixture->rx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F() 234 rc = uart_poll_in(fixture->dev, &fixture->rx_content[0]); in ZTEST_F() 260 zassert_equal(evt->data.rx_buf.buf, fixture->rx_content); in uart_emul_callback() [all …]
|
D | device.c | 32 uint8_t rx_content[SAMPLE_DATA_SIZE]; member 74 memset(fixture->rx_content, 0, sizeof(fixture->rx_content)); in uart_emul_device_before() 143 rx_content_it = sizeof(fixture->rx_content) - fixture->rx_remaining; in uart_emul_device_isr_handle_rx_ready() 144 ret = uart_fifo_read(fixture->dev, &fixture->rx_content[rx_content_it], in uart_emul_device_isr_handle_rx_ready() 188 zassert_mem_equal(fixture->rx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F() 191 rc = uart_poll_in(fixture->dev, &fixture->rx_content[0]); in ZTEST_F() 217 zassert_equal(evt->data.rx_buf.buf, fixture->rx_content); in uart_emul_callback() 243 zassert_ok(uart_rx_enable(fixture->dev, fixture->rx_content, sizeof(fixture->rx_content), in ZTEST_F() 257 zassert_mem_equal(fixture->rx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F()
|