phy_prph.h 660 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #ifndef H_PHY_PRPH_
  7. #define H_PHY_PRPH_
  8. #include <stdbool.h>
  9. #include "nimble/ble.h"
  10. #include "modlog/modlog.h"
  11. #include "esp_peripheral.h"
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. struct ble_hs_cfg;
  16. struct ble_gatt_register_ctxt;
  17. /** Making sure client connects to server having LE PHY UUID */
  18. #define LE_PHY_UUID16 0xABF2
  19. #define LE_PHY_CHR_UUID16 0xABF3
  20. void gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *arg);
  21. int gatt_svr_init_le_phy(void);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif