Lines Matching refs:TEST_ESP_OK
122 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in event_calculate()
145 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in event_calculate()
210 TEST_ESP_OK(pcnt_unit_config(&pcnt_config)); in count_mode_test()
222 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
223 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
224 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
227 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
229 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
234 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
235 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
236 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
239 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
241 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
246 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
247 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
248 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
251 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
253 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
258 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
259 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
260 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
263 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
265 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
270 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
271 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
272 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
275 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
277 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
282 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
283 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
284 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
287 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
289 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
294 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
295 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
296 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
299 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
301 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
306 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0)); in count_mode_test()
307 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0)); in count_mode_test()
308 TEST_ESP_OK(pcnt_set_mode(PCNT_UNIT_0, PCNT_CHANNEL_0, in count_mode_test()
311 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0)); in count_mode_test()
313 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter)); in count_mode_test()
335 TEST_ESP_OK(pcnt_unit_config(&pcnt_config));
343 TEST_ESP_OK(pcnt_unit_config(&pcnt_config));
352 TEST_ESP_OK(pcnt_unit_config(&pcnt_config));
401 TEST_ESP_OK(pcnt_unit_config(&pcnt_config));
408 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0));
409 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
410 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter));
414 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0));
415 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter));
417 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter));
423 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter));
430 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
431 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter));
437 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0));
439 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter));
444 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0));
446 TEST_ESP_OK(pcnt_get_counter_value(PCNT_UNIT_0, &test_counter));
485 TEST_ESP_OK(pcnt_unit_config(&config));
499 TEST_ESP_OK(pcnt_set_filter_value(PCNT_UNIT_0, 2));
500 TEST_ESP_OK(pcnt_filter_enable(PCNT_UNIT_0));
501 …TEST_ESP_OK(pcnt_set_event_value(PCNT_UNIT_0, PCNT_EVT_THRES_1, 4)); // when arrive to max thresh…
502 TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_THRES_1));
503 …TEST_ESP_OK(pcnt_set_event_value(PCNT_UNIT_0, PCNT_EVT_THRES_0, 1)); // when arrive to minimum th…
504 TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_THRES_0));
505 TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_ZERO));
506 … TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_H_LIM)); // when arrive to max limit trigger
507 …TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_L_LIM)); // when arrive to minimum limit trig…
510 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0));
511 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
516 TEST_ESP_OK(pcnt_isr_register(pcnt_intr_handler, NULL, 0, &pcnt_isr_service));
517 TEST_ESP_OK(pcnt_intr_enable(PCNT_UNIT_0));
518 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0));
530 TEST_ESP_OK(pcnt_intr_disable(PCNT_UNIT_0));
531 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
542 TEST_ESP_OK(pcnt_intr_enable(PCNT_UNIT_0));
543 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0));
544 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
545 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0));
555 TEST_ESP_OK(pcnt_event_disable(PCNT_UNIT_0, PCNT_EVT_ZERO));
556 TEST_ESP_OK(pcnt_event_disable(PCNT_UNIT_0, PCNT_EVT_L_LIM));
557 TEST_ESP_OK(pcnt_event_disable(PCNT_UNIT_0, PCNT_EVT_THRES_0));
567 TEST_ESP_OK(pcnt_isr_unregister(pcnt_isr_service));
585 TEST_ESP_OK(pcnt_unit_config(&config));
599 TEST_ESP_OK(pcnt_set_filter_value(PCNT_UNIT_0, 2));
600 TEST_ESP_OK(pcnt_filter_enable(PCNT_UNIT_0));
601 …TEST_ESP_OK(pcnt_set_event_value(PCNT_UNIT_0, PCNT_EVT_THRES_1, -4)); // when arrive to max thres…
602 TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_THRES_1));
603 …TEST_ESP_OK(pcnt_set_event_value(PCNT_UNIT_0, PCNT_EVT_THRES_0, 0)); // when arrive to minimum th…
604 TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_THRES_0));
605 TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_ZERO));
606 … TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_H_LIM)); // when arrive to max limit trigger
607 …TEST_ESP_OK(pcnt_event_enable(PCNT_UNIT_0, PCNT_EVT_L_LIM)); // when arrive to minimum limit trig…
610 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0));
611 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
616 TEST_ESP_OK(pcnt_isr_register(pcnt_intr_handler, NULL, 0, &pcnt_isr_service));
617 TEST_ESP_OK(pcnt_intr_enable(PCNT_UNIT_0));
618 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0));
630 TEST_ESP_OK(pcnt_intr_disable(PCNT_UNIT_0));
631 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
644 TEST_ESP_OK(pcnt_intr_enable(PCNT_UNIT_0));
645 TEST_ESP_OK(pcnt_counter_pause(PCNT_UNIT_0));
646 TEST_ESP_OK(pcnt_counter_clear(PCNT_UNIT_0));
647 TEST_ESP_OK(pcnt_counter_resume(PCNT_UNIT_0));
657 TEST_ESP_OK(pcnt_event_disable(PCNT_UNIT_0, PCNT_EVT_ZERO));
658 TEST_ESP_OK(pcnt_event_disable(PCNT_UNIT_0, PCNT_EVT_L_LIM));
659 TEST_ESP_OK(pcnt_event_disable(PCNT_UNIT_0, PCNT_EVT_THRES_0));
669 TEST_ESP_OK(pcnt_isr_unregister(pcnt_isr_service));