touch_scope.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2015-2020 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #pragma once
  15. /**
  16. * @brief Send data info to digital scope.
  17. * @param data Pointer to send buff.
  18. * @param channel_num The number of channels to be displayed.
  19. * @return the length of successfully transmitted data.
  20. */
  21. int test_tp_print_to_scope(float *data, unsigned char channel_num);
  22. /**
  23. * @brief Initialize the UART so that the touch sensor data is output to the digital scope.
  24. * @return
  25. * - ESP_OK Success
  26. * - ESP_FAIL UART error
  27. */
  28. esp_err_t test_tp_scope_debug_init(uint8_t uart_num, int tx_io_num, int rx_io_num, int baud_rate);