|
30 | 30 | NRF_SDH_BLE_OBSERVER(_name##_obs, ble_db_discovery_on_ble_evt, &_name, \ |
31 | 31 | BLE_DB_DISC_BLE_OBSERVER_PRIO) |
32 | 32 |
|
33 | | -/** |
34 | | - * @brief BLE GATT database characteristic. |
35 | | - */ |
36 | | -struct ble_gatt_db_char { |
37 | | - /** |
38 | | - * @brief Structure containing information about the characteristic. |
39 | | - */ |
40 | | - ble_gattc_char_t characteristic; |
41 | | - /** |
42 | | - * @brief CCCD Handle value for this characteristic. |
43 | | - * |
44 | | - * This will be set to BLE_GATT_HANDLE_INVALID if a CCCD is not present at the server. |
45 | | - */ |
46 | | - uint16_t cccd_handle; |
47 | | - /** |
48 | | - * @brief Extended Properties Handle value for this characteristic. |
49 | | - * |
50 | | - * This will be set to BLE_GATT_HANDLE_INVALID if an Extended |
51 | | - * Properties descriptor is not present at the server. |
52 | | - */ |
53 | | - uint16_t ext_prop_handle; |
54 | | - /** |
55 | | - * @brief User Description Handle value for this characteristic. |
56 | | - * |
57 | | - * This will be set to BLE_GATT_HANDLE_INVALID if a User Description |
58 | | - * descriptor is not present at the server. |
59 | | - */ |
60 | | - uint16_t user_desc_handle; |
61 | | - /** |
62 | | - * @brief Report Reference Handle value for this characteristic. |
63 | | - * This will be set to BLE_GATT_HANDLE_INVALID if a Report Reference |
64 | | - * descriptor is not present at the server. |
65 | | - */ |
66 | | - uint16_t report_ref_handle; |
67 | | -}; |
68 | | - |
69 | | -/** |
70 | | - * @brief BLE GATT database service. |
71 | | - */ |
72 | | -struct ble_gatt_db_srv { |
73 | | - /** |
74 | | - * @brief UUID of the service. |
75 | | - */ |
76 | | - ble_uuid_t srv_uuid; |
77 | | - /** |
78 | | - * @brief Number of characteristics present in the service. |
79 | | - */ |
80 | | - uint8_t char_count; |
81 | | - /** |
82 | | - * @brief Service Handle Range. |
83 | | - */ |
84 | | - ble_gattc_handle_range_t handle_range; |
85 | | - /** |
86 | | - * @brief Array of information related to the characteristics present in the service. |
87 | | - * |
88 | | - * This list can extend further than one. |
89 | | - */ |
90 | | - struct ble_gatt_db_char charateristics[CONFIG_BLE_GATT_DB_MAX_CHARS]; |
91 | | -}; |
92 | | - |
93 | 33 | /** |
94 | 34 | * @brief BLE database discovery event type. |
95 | 35 | */ |
|
0 commit comments