coexist_internal.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2018-2018 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. #ifndef __COEXIST_INTERNAL_H__
  15. #define __COEXIST_INTERNAL_H__
  16. #include <stdbool.h>
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. typedef enum {
  21. COEX_PREFER_WIFI = 0,
  22. COEX_PREFER_BT,
  23. COEX_PREFER_BALANCE,
  24. COEX_PREFER_NUM,
  25. } coex_prefer_t;
  26. /**
  27. * @brief Init software coexist
  28. * extern function for internal use.
  29. *
  30. * @return Init ok or failed.
  31. */
  32. esp_err_t coex_init(void);
  33. /**
  34. * @brief De-init software coexist
  35. * extern function for internal use.
  36. */
  37. void coex_deinit(void);
  38. /**
  39. * @brief Pause software coexist
  40. * extern function for internal use.
  41. */
  42. void coex_pause(void);
  43. /**
  44. * @brief Resume software coexist
  45. * extern function for internal use.
  46. */
  47. void coex_resume(void);
  48. /**
  49. * @brief Get software coexist version string
  50. * extern function for internal use.
  51. * @return : version string
  52. */
  53. const char *coex_version_get(void);
  54. /**
  55. * @brief Coexist performance preference set from libbt.a
  56. * extern function for internal use.
  57. *
  58. * @param prefer : the prefer enumeration value
  59. * @return : ESP_OK - success, other - failed
  60. */
  61. esp_err_t coex_preference_set(coex_prefer_t prefer);
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif /* __COEXIST_INTERNAL_H__ */