1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef BLE_GATT_DB_H__
- #define BLE_GATT_DB_H__
- #include <stdint.h>
- #include "ble.h"
- #include "ble_gattc.h"
- #include "sdk_config.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef BLE_GATT_DB_MAX_CHARS
- #define BLE_GATT_DB_MAX_CHARS 6
- #endif
- typedef struct
- {
- ble_gattc_char_t characteristic;
- uint16_t cccd_handle;
- uint16_t ext_prop_handle;
- uint16_t user_desc_handle;
- uint16_t report_ref_handle;
- } ble_gatt_db_char_t;
- typedef struct
- {
- ble_uuid_t srv_uuid;
- uint8_t char_count;
- ble_gattc_handle_range_t handle_range;
- ble_gatt_db_char_t charateristics[BLE_GATT_DB_MAX_CHARS];
- } ble_gatt_db_srv_t;
- #ifdef __cplusplus
- }
- #endif
- #endif
|