esp_openthread_spi_slave.h 586 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include "esp_openthread.h"
  8. #include "esp_openthread_types.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. /**
  13. * @brief This function initializes the OpenThread spinel SPI slave.
  14. *
  15. */
  16. esp_err_t esp_openthread_host_rcp_spi_init(const esp_openthread_platform_config_t *config);
  17. /**
  18. * @brief This function deinitializes the OpenThread spinel SPI slave.
  19. *
  20. */
  21. void esp_openthread_spi_slave_deinit(void);
  22. #ifdef __cplusplus
  23. } /* extern "C" */
  24. #endif