Lines Matching refs:RW_TEST_LENGTH

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()
434 disp_buf(data_rd, RW_TEST_LENGTH); in i2c_master_write_read_test()
435 for (int i = 0; i < RW_TEST_LENGTH; i++) { in i2c_master_write_read_test()
444 i2c_master_write_slave(I2C_MASTER_NUM, data_wr, RW_TEST_LENGTH); in i2c_master_write_read_test()
470 … size_rd = i2c_slave_write_buffer(I2C_SLAVE_NUM, data_wr, RW_TEST_LENGTH, 2000 / portTICK_RATE_MS); in i2c_slave_read_write_test()
474 … size_rd = i2c_slave_read_buffer( I2C_SLAVE_NUM, data_rd, RW_TEST_LENGTH, 1000 / portTICK_RATE_MS); in i2c_slave_read_write_test()
477 for (int i = 0; i < RW_TEST_LENGTH; i++) { in i2c_slave_read_write_test()
505 i2c_master_write_slave(I2C_MASTER_NUM, data_wr, RW_TEST_LENGTH); in i2c_master_repeat_write()
506 disp_buf(data_wr, RW_TEST_LENGTH); in i2c_master_repeat_write()
529 …int len = i2c_slave_read_buffer( I2C_SLAVE_NUM, data_rd + size_rd, RW_TEST_LENGTH * 3, 10000 / por… in i2c_slave_repeat_read()
537 for (int i = 0; i < RW_TEST_LENGTH; i++) { in i2c_slave_repeat_read()
538 printf("data: %d, %d\n", data_rd[j * RW_TEST_LENGTH + i], (i % 129 + j)); in i2c_slave_repeat_read()
539 TEST_ASSERT(data_rd[j * RW_TEST_LENGTH + i] == (i % 129 + j)); in i2c_slave_repeat_read()