ethernet_init.h 817 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #pragma once
  7. #include "esp_eth_driver.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /**
  12. * @brief Initialize Ethernet driver based on Espressif IoT Development Framework Configuration
  13. *
  14. * @param[out] eth_handles_out array of initialized Ethernet driver handles
  15. * @param[out] eth_cnt_out number of initialized Ethernets
  16. * @return
  17. * - ESP_OK on success
  18. * - ESP_ERR_INVALID_ARG when passed invalid pointers
  19. * - ESP_ERR_NO_MEM when there is no memory to allocate for Ethernet driver handles array
  20. * - ESP_FAIL on any other failure
  21. */
  22. esp_err_t example_eth_init(esp_eth_handle_t *eth_handles_out[], uint8_t *eth_cnt_out);
  23. #ifdef __cplusplus
  24. }
  25. #endif