16 #ifndef __GATT_SERVER_H__ 17 #define __GATT_SERVER_H__ 43 #define PRIMARY_SERVICE_UUID (0x2800) 44 #define SECONDARY_SERVICE_UUID (0x2801) 45 #define INCLUDE_SERVICE_UUID (0x2802) 46 #define CHARACTERISTIC_UUID (0x2803) 47 #define CHAR_EXTENDED_PROP_DESC_UUID (0x2900) 48 #define CHAR_USER_DESC_UUID (0x2901) 49 #define CHAR_CLIENT_CONFIG_DESC_UUID (0x2902) 50 #define CHAR_SERVER_CONFIG_DESC_UUID (0x2903) 51 #define CHAR_FORMAT_DESC_UUID (0x2904) 52 #define CHAR_AGGR_FMT_DESC_UUID (0x2905) 53 #define GATT_SERVICE_UUID (0x1801) 54 #define GAP_SERVICE_UUID (0x1800) 55 #define SERVICE_CHANGED_UUID (0x2A05) 66 #define ATTR_NO_ACCESS (0x00) 67 #define ATTR_ACCESS_READ_ONLY (0x01) 68 #define ATTR_ACCESS_WRITE_REQ_ONLY (0x02) 69 #define ATTR_ACCESS_READ_WRITE (0x03) 70 #define ATTR_ACCESS_WRITE_WITHOUT_RESPONSE (0x04) 71 #define ATTR_ACCESS_SIGNED_WRITE_ALLOWED (0x08) 75 #define ATTR_ACCESS_WRITE_ANY (0x0E) 85 #define CHAR_PROP_BROADCAST (0x01) 86 #define CHAR_PROP_READ (0x02) 87 #define CHAR_PROP_WRITE_WITHOUT_RESP (0x04) 88 #define CHAR_PROP_WRITE (0x08) 89 #define CHAR_PROP_NOTIFY (0x10) 90 #define CHAR_PROP_INDICATE (0x20) 91 #define CHAR_PROP_SIGNED_WRITE (0x40) 92 #define CHAR_PROP_EXT (0x80) 103 #define ATTR_PERMISSION_NONE (0x00) 104 #define ATTR_PERMISSION_AUTHEN_READ (0x01) 105 #define ATTR_PERMISSION_AUTHOR_READ (0x02) 106 #define ATTR_PERMISSION_ENCRY_READ (0x04) 107 #define ATTR_PERMISSION_AUTHEN_WRITE (0x08) 108 #define ATTR_PERMISSION_AUTHOR_WRITE (0x10) 109 #define ATTR_PERMISSION_ENCRY_WRITE (0x20) 119 #define UUID_TYPE_16 (0x01) 120 #define UUID_TYPE_128 (0x02) 130 #define PRIMARY_SERVICE (0x01) 131 #define SECONDARY_SERVICE (0x02) 142 #define GATT_DONT_NOTIFY_EVENTS (0x00) 143 #define GATT_NOTIFY_ATTRIBUTE_WRITE (0x01) 145 #define GATT_NOTIFY_WRITE_REQ_AND_WAIT_FOR_APPL_RESP (0x02) 148 #define GATT_NOTIFY_READ_REQ_AND_WAIT_FOR_APPL_RESP (0x04) 159 #define CHAR_VALUE_LEN_CONSTANT (0x00) 160 #define CHAR_VALUE_LEN_VARIABLE (0x01) 173 #define MIN_ENCRY_KEY_SIZE (7) 178 #define MAX_ENCRY_KEY_SIZE (0x10) 203 #define FORMAT_UINT8 0x04 204 #define FORMAT_UINT16 0x06 205 #define FORMAT_SINT16 0x0E 206 #define FORMAT_SINT24 0x0F 215 #define UNIT_UNITLESS 0x2700 216 #define UNIT_TEMP_CELSIUS 0x272F 217 #define UNIT_PRESSURE_BAR 0x2780 237 #define NOTIFICATION 1 __packed struct _charactFormat charactFormat
#define PACKED
Definition: bluenrg_types.h:63