gap.h 502 B

1234567891011121314151617181920212223
  1. /*
  2. * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Unlicense OR CC0-1.0
  5. */
  6. #ifndef GAP_SVC_H
  7. #define GAP_SVC_H
  8. /* Includes */
  9. /* NimBLE GAP APIs */
  10. #include "host/ble_gap.h"
  11. #include "services/gap/ble_svc_gap.h"
  12. /* Defines */
  13. #define BLE_GAP_APPEARANCE_GENERIC_TAG 0x0200
  14. #define BLE_GAP_URI_PREFIX_HTTPS 0x17
  15. #define BLE_GAP_LE_ROLE_PERIPHERAL 0x00
  16. /* Public function declarations */
  17. void adv_init(void);
  18. int gap_init(void);
  19. #endif // GAP_SVC_H