ql_wifi_spi.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /**
  2. @file
  3. ql_wifi_spi.h
  4. @brief
  5. Quectel wifi spi api header.
  6. */
  7. /*============================================================================
  8. Copyright (c) 2020 Quectel Wireless Solution, Co., Ltd. All Rights Reserved.
  9. Quectel Wireless Solution Proprietary and Confidential.
  10. =============================================================================*/
  11. /*===========================================================================
  12. EDIT HISTORY FOR MODULE
  13. This section contains comments describing changes made to the module.
  14. Notice that changes are listed in reverse chronological order.
  15. WHEN WHO WHAT, WHERE, WHY
  16. ---------- ------------ ----------------------------------------------------
  17. =============================================================================*/
  18. #ifndef QL_WIFI_SPI_H
  19. #define QL_WIFI_SPI_H
  20. #include "ql_osi_def.h"
  21. #include "ql_api_osi.h"
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /*========================================================================
  26. * Macro Definition
  27. *========================================================================*/
  28. /*========================================================================
  29. * Enumeration Definition
  30. *========================================================================*/
  31. typedef enum
  32. {
  33. QL_WIFI_SPI_SUCCESS = 0,
  34. QL_WIFI_SPI_EXECUTE_ERR = 1 | (QL_COMPONENT_LWIP_WIFI << 16),
  35. QL_WIFI_SPI_INVALID_PARAM_ERR,
  36. QL_WIFI_SPI_TASK_CREATE_ERR,
  37. } ql_wifi_spi_errcode_e;
  38. /*========================================================================
  39. * Type Definition
  40. *========================================================================*/
  41. /*========================================================================
  42. * function Definition
  43. *========================================================================*/
  44. /*****************************************************************
  45. * Function: ql_wifi_spi_output_data_msg
  46. *
  47. * Description: Wi-Fi 802.3 data streams output function.Use this function to send data streams.
  48. *
  49. * Parameters:
  50. * ctx [in] See ql_wifi_data_info_s in ql_api_wifi.h
  51. *
  52. * Return:
  53. * 0 success
  54. * other error code
  55. *
  56. *****************************************************************/
  57. int ql_wifi_spi_output_data_msg(void *ctx);
  58. /*****************************************************************
  59. * Function: ql_wifi_spi_init
  60. *
  61. * Description: Initialize Wi-Fi spi engine.
  62. *
  63. * Parameters:
  64. * argv [in] No defined yet.
  65. *
  66. * Return:
  67. * 0 success
  68. * other error code
  69. *
  70. *****************************************************************/
  71. ql_wifi_spi_errcode_e ql_wifi_spi_init(void* argv);
  72. /*****************************************************************
  73. * Function: ql_wifi_spi_deinit
  74. *
  75. * Description: Deinitialize Wi-Fi spi engine.
  76. *
  77. * Parameters:
  78. * argv [in] No defined yet.
  79. *
  80. * Return:
  81. * 0 success
  82. * other error code
  83. *
  84. *****************************************************************/
  85. ql_wifi_spi_errcode_e ql_wifi_spi_deinit(void* argv);
  86. #ifdef __cplusplus
  87. } /*"C" */
  88. #endif
  89. #endif