Searched refs:TEST_DATA_SIZE (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/tests/boards/nrf/i2c/i2c_slave/src/ |
D | main.c | 41 #define TEST_DATA_SIZE 6 macro 42 static const uint8_t msg[TEST_DATA_SIZE] = "Nordic"; 45 static uint8_t i2c_slave_buffer[TEST_DATA_SIZE] TWIS_MEMORY_SECTION; 46 static uint8_t i2c_master_buffer[TEST_DATA_SIZE]; 58 nrfx_twis_tx_prepare(&twis, i2c_slave_buffer, TEST_DATA_SIZE); in i2s_slave_handler() 65 nrfx_twis_rx_prepare(&twis, i2c_slave_buffer, TEST_DATA_SIZE); in i2s_slave_handler() 69 zassert_mem_equal(i2c_slave_buffer, msg, TEST_DATA_SIZE); in i2s_slave_handler() 112 memset(fixture->slave_buffer, 0, TEST_DATA_SIZE); in cleanup_buffers() 113 memset(fixture->master_buffer, 0, TEST_DATA_SIZE); in cleanup_buffers() 118 int ret = i2c_write_read(fixture->dev, fixture->addr, msg, TEST_DATA_SIZE, in ZTEST_USER_F() [all …]
|
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/src/ |
D | main.c | 25 #define TEST_DATA_SIZE 20 macro 26 static const uint8_t eeprom_0_data[TEST_DATA_SIZE] = "0123456789abcdefghij"; 27 static const uint8_t eeprom_1_data[TEST_DATA_SIZE] = "jihgfedcba9876543210"; 28 static uint8_t i2c_buffer[TEST_DATA_SIZE]; 34 uint8_t buffer_print_eeprom[TEST_DATA_SIZE * 5 + 1]; 35 uint8_t buffer_print_i2c[TEST_DATA_SIZE * 5 + 1]; 57 ret = i2c_write_read(i2c, addr, start_addr, (addr_width >> 3), i2c_buffer, TEST_DATA_SIZE); in run_full_read() 60 if (memcmp(i2c_buffer, comp_buffer, TEST_DATA_SIZE)) { in run_full_read() 61 to_display_format(i2c_buffer, TEST_DATA_SIZE, in run_full_read() 63 to_display_format(comp_buffer, TEST_DATA_SIZE, in run_full_read() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_replay_cache.c | 19 #define TEST_DATA_SIZE 20 macro 30 static uint8_t test_data[TEST_DATA_SIZE];
|