touch_scope.h 677 B

1234567891011121314151617181920212223
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. /**
  8. * @brief Send data info to digital scope.
  9. * @param data Pointer to send buff.
  10. * @param channel_num The number of channels to be displayed.
  11. * @return the length of successfully transmitted data.
  12. */
  13. int test_tp_print_to_scope(float *data, unsigned char channel_num);
  14. /**
  15. * @brief Initialize the UART so that the touch sensor data is output to the digital scope.
  16. * @return
  17. * - ESP_OK Success
  18. * - ESP_FAIL UART error
  19. */
  20. esp_err_t test_tp_scope_debug_init(uint8_t uart_num, int tx_io_num, int rx_io_num, int baud_rate);