23#include "nimble/porting/nimble/include/syscfg/syscfg.h"
25#if MYNEWT_VAL(ENC_ADV_DATA)
26#include "nimble/nimble/host/include/nimble/host/ble_ead.h"
32#define BLE_SVC_GAP_UUID16 0x1800
33#define BLE_SVC_GAP_CHR_UUID16_DEVICE_NAME 0x2a00
34#define BLE_SVC_GAP_CHR_UUID16_APPEARANCE 0x2a01
35#define BLE_SVC_GAP_CHR_UUID16_PERIPH_PREF_CONN_PARAMS 0x2a04
36#define BLE_SVC_GAP_CHR_UUID16_CENTRAL_ADDRESS_RESOLUTION 0x2aa6
38#if MYNEWT_VAL(ENC_ADV_DATA)
39#define BLE_SVC_GAP_CHR_UUID16_KEY_MATERIAL 0x2B88
42#define BLE_SVC_GAP_APPEARANCE_GEN_UNKNOWN 0
43#define BLE_SVC_GAP_APPEARANCE_GEN_COMPUTER 128
44#define BLE_SVC_GAP_APPEARANCE_GEN_HID 960
45#define BLE_SVC_GAP_APPEARANCE_CYC_SPEED_AND_CADENCE_SENSOR 1157
47typedef void (ble_svc_gap_chr_changed_fn) (uint16_t uuid);
49void ble_svc_gap_set_chr_changed_cb(ble_svc_gap_chr_changed_fn *cb);
51const char *ble_svc_gap_device_name(
void);
52int ble_svc_gap_device_name_set(
const char *name);
53uint16_t ble_svc_gap_device_appearance(
void);
54int ble_svc_gap_device_appearance_set(uint16_t appearance);
55#if MYNEWT_VAL(ENC_ADV_DATA)
56int ble_svc_gap_device_key_material_set(uint8_t *session_key, uint8_t *iv);
59void ble_svc_gap_init(
void);