Lines Matching refs:TEST_ESP_OK

52         TEST_ESP_OK(rmt_config(&tx_config));  in rmt_setup_testbench()
68 TEST_ESP_OK(rmt_config(&rx_config)); in rmt_setup_testbench()
73 TEST_ESP_OK(gpio_set_direction(RMT_DATA_IO, GPIO_MODE_INPUT_OUTPUT)); in rmt_setup_testbench()
79 TEST_ESP_OK(rmt_driver_install(tx_channel, 0, 0)); in rmt_setup_testbench()
88 TEST_ESP_OK(rmt_driver_install(rx_channel, 3000, 0)); in rmt_setup_testbench()
100 TEST_ESP_OK(rmt_driver_uninstall(tx_channel)); in rmt_clean_testbench()
101 TEST_ESP_OK(s_ir_builder->del(s_ir_builder)); in rmt_clean_testbench()
106 TEST_ESP_OK(rmt_driver_uninstall(rx_channel)); in rmt_clean_testbench()
107 TEST_ESP_OK(s_ir_parser->del(s_ir_parser)); in rmt_clean_testbench()
143 TEST_ESP_OK(rmt_set_mem_block_num(channel, 2));
144 TEST_ESP_OK(rmt_get_mem_block_num(channel, &memNum));
147 TEST_ESP_OK(rmt_set_clk_div(channel, 160));
148 TEST_ESP_OK(rmt_get_clk_div(channel, &div_cnt));
152 TEST_ESP_OK(rmt_set_source_clk(channel, RMT_BASECLK_REF));
153 TEST_ESP_OK(rmt_get_source_clk(channel, &src_clk));
158 TEST_ESP_OK(rmt_set_source_clk(channel, RMT_BASECLK_XTAL));
159 TEST_ESP_OK(rmt_get_source_clk(channel, &src_clk));
164 TEST_ESP_OK(rmt_set_tx_carrier(channel, 0, 1, 0, 1));
165 TEST_ESP_OK(rmt_set_idle_level(channel, 1, 0));
173 TEST_ESP_OK(rmt_set_rx_idle_thresh(channel, 200));
174 TEST_ESP_OK(rmt_get_rx_idle_thresh(channel, &idle_thres));
177 TEST_ESP_OK(rmt_set_rx_filter(channel, 1, 100));
179 TEST_ESP_OK(rmt_set_memory_owner(channel, RMT_MEM_OWNER_RX));
180 TEST_ESP_OK(rmt_get_memory_owner(channel, &owner));
191 TEST_ESP_OK(rmt_config(&tx_cfg));
192 TEST_ESP_OK(rmt_driver_install(tx_cfg.channel, 0, 0));
196 TEST_ESP_OK(rmt_driver_uninstall(i));
202 TEST_ESP_OK(rmt_config(&rx_cfg));
203 TEST_ESP_OK(rmt_driver_install(rx_cfg.channel, 0, 0));
207 TEST_ESP_OK(rmt_driver_uninstall(i));
214 TEST_ESP_OK(rmt_config(&tx_cfg));
216 TEST_ESP_OK(rmt_driver_install(tx_cfg.channel, 1000, 0));
217 TEST_ESP_OK(rmt_driver_uninstall(tx_cfg.channel));
220 TEST_ESP_OK(rmt_config(&rx_cfg));
222 TEST_ESP_OK(rmt_driver_install(rx_cfg.channel, 1000, 0));
223 TEST_ESP_OK(rmt_driver_uninstall(rx_cfg.channel));
261 TEST_ESP_OK(rmt_config(&tx_cfg));
262 TEST_ESP_OK(rmt_driver_install(tx_cfg.channel, 0, 0));
270 TEST_ESP_OK(rmt_driver_uninstall(tx_cfg.channel));
288 TEST_ESP_OK(rmt_get_ringbuf_handle(rx_channel, &rb)); in do_nec_tx_rx()
290 TEST_ESP_OK(rmt_rx_start(rx_channel, true)); in do_nec_tx_rx()
299 TEST_ESP_OK(s_ir_builder->build_frame(s_ir_builder, addr, cmd)); in do_nec_tx_rx()
300 TEST_ESP_OK(s_ir_builder->get_result(s_ir_builder, &items, &length)); in do_nec_tx_rx()
302 TEST_ESP_OK(rmt_write_items(tx_channel, items, length, false)); // no wait in do_nec_tx_rx()
303 TEST_ESP_OK(rmt_wait_tx_done(tx_channel, portMAX_DELAY)); in do_nec_tx_rx()
305 TEST_ESP_OK(rmt_write_items(tx_channel, items, length, true)); // wait until done in do_nec_tx_rx()
364 TEST_ESP_OK(rmt_write_items(tx_channel, items, SOC_RMT_MEM_WORDS_PER_CHANNEL - 1, 1));
384 TEST_ESP_OK(s_ir_builder->del(s_ir_builder));
392 TEST_ESP_OK(rmt_get_ringbuf_handle(rx_channel, &rb));
394 TEST_ESP_OK(rmt_rx_start(rx_channel, true));
401 TEST_ESP_OK(s_ir_builder->build_frame(s_ir_builder, addr, cmd));
404 TEST_ESP_OK(s_ir_builder->get_result(s_ir_builder, &frames, &length));
407 TEST_ESP_OK(rmt_write_items(tx_channel, frames, length, true));
409 TEST_ESP_OK(rmt_tx_stop(tx_channel));
459 TEST_ESP_OK(rmt_get_ringbuf_handle(rx_channel, &rb));
461 TEST_ESP_OK(rmt_rx_start(rx_channel, true));
466 TEST_ESP_OK(rmt_write_items(tx_channel, frames, size, true));
511 TEST_ESP_OK(rmt_config(&tx_config0));
512 TEST_ESP_OK(rmt_config(&tx_config1));
514 TEST_ESP_OK(rmt_driver_install(channel0, 0, 0));
515 TEST_ESP_OK(rmt_driver_install(channel1, 0, 0));
519 TEST_ESP_OK(rmt_add_channel_to_group(channel0));
520 TEST_ESP_OK(rmt_add_channel_to_group(channel1));
522 TEST_ESP_OK(rmt_write_items(channel0, frames, size, false));
524 TEST_ESP_OK(rmt_write_items(channel1, frames, size, false));
526 TEST_ESP_OK(rmt_wait_tx_done(channel0, portMAX_DELAY));
527 TEST_ESP_OK(rmt_wait_tx_done(channel1, portMAX_DELAY));
532 TEST_ESP_OK(rmt_remove_channel_from_group(channel0));
533 TEST_ESP_OK(rmt_remove_channel_from_group(channel1));
535 TEST_ESP_OK(rmt_driver_uninstall(channel0));
536 TEST_ESP_OK(rmt_driver_uninstall(channel1));
561 TEST_ESP_OK(rmt_get_ringbuf_handle(rx_channel, &rb));
563 TEST_ESP_OK(rmt_rx_start(rx_channel, true));
572 TEST_ESP_OK(s_ir_builder->build_frame(s_ir_builder, addr, cmd));
573 TEST_ESP_OK(s_ir_builder->get_result(s_ir_builder, &items, &length));
574 TEST_ESP_OK(rmt_write_items(tx_channel, items, length, true)); // wait until done