Lines Matching refs:TEST_ESP_OK
87 TEST_ESP_OK(i2c_master_write_byte(cmd, ( ESP_SLAVE_ADDR << 1 ) | WRITE_BIT, ACK_CHECK_EN)); in i2c_master_write_slave()
88 TEST_ESP_OK(i2c_master_write(cmd, data_wr, size, ACK_CHECK_EN)); in i2c_master_write_slave()
89 TEST_ESP_OK(i2c_master_stop(cmd)); in i2c_master_write_slave()
139 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER,
142 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master));
144 TEST_ESP_OK(i2c_driver_delete(I2C_MASTER_NUM));
154 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE,
157 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave));
159 TEST_ESP_OK(i2c_driver_delete(I2C_SLAVE_NUM));
170 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER,
173 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master));
175 TEST_ESP_OK(i2c_set_period(I2C_MASTER_NUM, I2C_SCL_HIGH_PERIOD_V, I2C_SCL_HIGH_PERIOD_V));
176 TEST_ESP_OK(i2c_get_period(I2C_MASTER_NUM, &high_period, &low_period));
182 TEST_ESP_OK(i2c_set_period(I2C_MASTER_NUM, 300, 400));
183 TEST_ESP_OK(i2c_get_period(I2C_MASTER_NUM, &high_period, &low_period));
186 TEST_ESP_OK(i2c_driver_delete(I2C_MASTER_NUM));
192 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE,
195 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave));
197 TEST_ESP_OK(i2c_reset_tx_fifo(I2C_SLAVE_NUM));
200 TEST_ESP_OK(i2c_reset_rx_fifo(I2C_SLAVE_NUM));
202 TEST_ESP_OK(i2c_driver_delete(I2C_SLAVE_NUM));
210 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER,
213 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master));
215 TEST_ESP_OK(i2c_set_start_timing(I2C_MASTER_NUM, 50, 60));
216 TEST_ESP_OK(i2c_set_data_timing(I2C_MASTER_NUM, 80, 60));
217 TEST_ESP_OK(i2c_set_stop_timing(I2C_MASTER_NUM, 100, 60));
223 TEST_ESP_OK(i2c_get_start_timing(I2C_MASTER_NUM, &test_setup_time, &test_hold_time));
224 TEST_ESP_OK(i2c_get_data_timing(I2C_MASTER_NUM, &test_data_time, &test_hold_time));
225 TEST_ESP_OK(i2c_get_stop_timing(I2C_MASTER_NUM, &test_stop_time, &test_hold_time));
239 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER,
242 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master));
246 … TEST_ESP_OK(i2c_set_data_mode(I2C_MASTER_NUM, I2C_DATA_MODE_LSB_FIRST, I2C_DATA_MODE_LSB_FIRST));
247 TEST_ESP_OK(i2c_get_data_mode(I2C_MASTER_NUM, &test_tx_trans_mode, &test_rx_trans_mode));
251 … TEST_ESP_OK(i2c_set_data_mode(I2C_MASTER_NUM, I2C_DATA_MODE_MSB_FIRST, I2C_DATA_MODE_MSB_FIRST));
252 TEST_ESP_OK(i2c_get_data_mode(I2C_MASTER_NUM, &test_tx_trans_mode, &test_rx_trans_mode));
300 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master)); in i2c_master_write_test()
302 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, in i2c_master_write_test()
315 TEST_ESP_OK(i2c_driver_delete(I2C_MASTER_NUM)); in i2c_master_write_test()
325 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave)); in i2c_slave_read_test()
326 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE, in i2c_slave_read_test()
345 TEST_ESP_OK(i2c_driver_delete(I2C_SLAVE_NUM)); in i2c_slave_read_test()
355 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master)); in master_read_slave_test()
356 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, in master_read_slave_test()
388 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave)); in slave_write_buffer_test()
389 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE, in slave_write_buffer_test()
417 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master)); in i2c_master_write_read_test()
418 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, in i2c_master_write_read_test()
460 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave)); in i2c_slave_read_write_test()
461 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE, in i2c_slave_read_write_test()
494 TEST_ESP_OK(i2c_param_config(I2C_MASTER_NUM, &conf_master)); in i2c_master_repeat_write()
496 TEST_ESP_OK(i2c_driver_install(I2C_MASTER_NUM, I2C_MODE_MASTER, in i2c_master_repeat_write()
521 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave)); in i2c_slave_repeat_read()
522 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE, in i2c_slave_repeat_read()
562 TEST_ESP_OK(i2c_driver_install(I2C_SLAVE_NUM, I2C_MODE_SLAVE, in test_task()
565 TEST_ESP_OK(i2c_param_config( I2C_SLAVE_NUM, &conf_slave)); in test_task()
596 TEST_ESP_OK(i2c_driver_delete(I2C_SLAVE_NUM));
615 TEST_ESP_OK(i2c_driver_delete(I2C_SLAVE_NUM));
634 TEST_ESP_OK(i2c_param_config( i2c_num, &conf_master));
638 TEST_ESP_OK(i2c_set_period(i2c_num, i, i));
639 TEST_ESP_OK(i2c_get_period(i2c_num, &time_get0, &time_get1));
642 TEST_ESP_OK(i2c_set_start_timing(i2c_num, i, i));
643 TEST_ESP_OK(i2c_get_start_timing(i2c_num, &time_get0, &time_get1));
646 TEST_ESP_OK(i2c_set_stop_timing(i2c_num, i, i));
647 TEST_ESP_OK(i2c_get_stop_timing(i2c_num, &time_get0, &time_get1));
650 TEST_ESP_OK(i2c_set_data_timing(i2c_num, i, i));
651 TEST_ESP_OK(i2c_get_data_timing(i2c_num, &time_get0, &time_get1));
654 TEST_ESP_OK(i2c_set_timeout(i2c_num, i));
655 TEST_ESP_OK(i2c_get_timeout(i2c_num, &time_get0));
710 TEST_ESP_OK(i2c_param_config( i2c_num, &conf_master));
711 TEST_ESP_OK(i2c_driver_install(i2c_num, I2C_MODE_MASTER, 0, 0, 0));
722 TEST_ESP_OK(i2c_driver_delete(i2c_num));