Macros | |
#define | SRVC_SECONDARY_SET (0x80) |
#define | SRVC_UUID_TYPE_SET(uuid_len) ((uuid_len) << 5) |
#define | SRVC_DISABLE (0x10) |
#define | SRVC_PERM(sec_level) (((sec_level) & SEC_LEVEL_MASK) << 2) |
#define | SRVC_ENCRP_KEY_SIZE_16 (0x02) |
#define | SRVC_MULTI_ENABLE (0x01) |
Service permissions
7 | 6–5 | 4 | 3–2 | 1 | 0 |
---|---|---|---|---|---|
SEC | UUID_LEN | DIS | AUTH | EKS | MI |
Bit [0] : Service is multi-instantiated (0 = not support; 1 = support)
Bit [1] : Encryption key size must be 16 bytes (0 = not need; 1 = need)
Bit [2-3]: Service permission (0 = NOAUTH; 1 = UNAUTH; 2 = AUTH; 3 = SEC_CON)
Bit [4] : Disable the service (0 = no; 1 = yes)
Bit [5-6]: UUID Length Type (0 = 16 bits; 2 = 128 bits)
Bit [7] : Secondary Service (0 = Primary Service; 1 = Secondary Service)
#define SRVC_DISABLE (0x10) |
Service disable.
#define SRVC_ENCRP_KEY_SIZE_16 (0x02) |
16 bytes service encryption key size .
#define SRVC_MULTI_ENABLE (0x01) |
Service is multi-instantiated.
#define SRVC_PERM | ( | sec_level | ) | (((sec_level) & SEC_LEVEL_MASK) << 2) |
Service permission authentication. See Attribute and Service Access Rights.
#define SRVC_SECONDARY_SET (0x80) |
Secondary service set.
#define SRVC_UUID_TYPE_SET | ( | uuid_len | ) | ((uuid_len) << 5) |
Service UUID length set. See Attribute and Service UUID Type.