Searched refs:RW_TEST_LENGTH (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.6.0/components/driver/test/ |
D | test_i2c.c | 30 #define RW_TEST_LENGTH 129 /*!<Data length for r/w test, any value from 0-DATA_LENGTH*/ macro 222 i2c_master_write_slave(I2C_MASTER_NUM, data_wr, RW_TEST_LENGTH); 250 i2c_master_write_slave(I2C_MASTER_NUM, data_wr, RW_TEST_LENGTH); 255 i2c_master_write_slave(I2C_MASTER_NUM, data_wr, RW_TEST_LENGTH); 367 i2c_master_read(cmd, data_rd, RW_TEST_LENGTH-1, ACK_VAL); in master_read_slave_test() 368 i2c_master_read_byte(cmd, data_rd + RW_TEST_LENGTH-1, NACK_VAL); in master_read_slave_test() 373 for (int i = 0; i < RW_TEST_LENGTH; i++) { in master_read_slave_test() 398 … size_rd = i2c_slave_write_buffer(I2C_SLAVE_NUM, data_wr, RW_TEST_LENGTH, 2000 / portTICK_RATE_MS); in slave_write_buffer_test() 428 i2c_master_read(cmd, data_rd, RW_TEST_LENGTH, ACK_VAL); in i2c_master_write_read_test() 429 i2c_master_read_byte(cmd, data_rd + RW_TEST_LENGTH, NACK_VAL); in i2c_master_write_read_test() [all …]
|
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_self_test/main/ |
D | i2c_example_main.c | 25 #define RW_TEST_LENGTH 128 /*!< Data length for r/w test, [0,DATA_LENGTH] */ macro 240 …size_t d_size = i2c_slave_write_buffer(I2C_SLAVE_NUM, data, RW_TEST_LENGTH, 1000 / portTICK_RATE_M… in i2c_test_task() 245 ret = i2c_master_read_slave(I2C_MASTER_NUM, data_rd, RW_TEST_LENGTH); in i2c_test_task() 271 ret = i2c_master_write_slave(I2C_MASTER_NUM, data_wr, RW_TEST_LENGTH); in i2c_test_task() 273 … size = i2c_slave_read_buffer(I2C_SLAVE_NUM, data, RW_TEST_LENGTH, 1000 / portTICK_RATE_MS); in i2c_test_task() 282 disp_buf(data_wr, RW_TEST_LENGTH); in i2c_test_task()
|