Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
att.h
Go to the documentation of this file.
1
5
/*
6
* Copyright (c) 2016 Intel Corporation
7
*
8
* SPDX-License-Identifier: Apache-2.0
9
*/
10
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_
11
#define ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_
12
13
#include <
sys/slist.h
>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
/* Error codes for Error response PDU */
20
#define BT_ATT_ERR_SUCCESS 0x00
21
#define BT_ATT_ERR_INVALID_HANDLE 0x01
22
#define BT_ATT_ERR_READ_NOT_PERMITTED 0x02
23
#define BT_ATT_ERR_WRITE_NOT_PERMITTED 0x03
24
#define BT_ATT_ERR_INVALID_PDU 0x04
25
#define BT_ATT_ERR_AUTHENTICATION 0x05
26
#define BT_ATT_ERR_NOT_SUPPORTED 0x06
27
#define BT_ATT_ERR_INVALID_OFFSET 0x07
28
#define BT_ATT_ERR_AUTHORIZATION 0x08
29
#define BT_ATT_ERR_PREPARE_QUEUE_FULL 0x09
30
#define BT_ATT_ERR_ATTRIBUTE_NOT_FOUND 0x0a
31
#define BT_ATT_ERR_ATTRIBUTE_NOT_LONG 0x0b
32
#define BT_ATT_ERR_ENCRYPTION_KEY_SIZE 0x0c
33
#define BT_ATT_ERR_INVALID_ATTRIBUTE_LEN 0x0d
34
#define BT_ATT_ERR_UNLIKELY 0x0e
35
#define BT_ATT_ERR_INSUFFICIENT_ENCRYPTION 0x0f
36
#define BT_ATT_ERR_UNSUPPORTED_GROUP_TYPE 0x10
37
#define BT_ATT_ERR_INSUFFICIENT_RESOURCES 0x11
38
#define BT_ATT_ERR_DB_OUT_OF_SYNC 0x12
39
#define BT_ATT_ERR_VALUE_NOT_ALLOWED 0x13
40
41
/* Common Profile Error Codes (from CSS) */
42
#define BT_ATT_ERR_WRITE_REQ_REJECTED 0xfc
43
#define BT_ATT_ERR_CCC_IMPROPER_CONF 0xfd
44
#define BT_ATT_ERR_PROCEDURE_IN_PROGRESS 0xfe
45
#define BT_ATT_ERR_OUT_OF_RANGE 0xff
46
47
/* Version 5.2, Vol 3, Part F, 3.2.9 defines maximum attribute length to 512 */
48
#define BT_ATT_MAX_ATTRIBUTE_LEN 512
49
50
/* Handle 0x0000 is reserved for future use */
51
#define BT_ATT_FIRST_ATTRIBUTE_HANDLE 0x0001
52
#define BT_ATT_FIRST_ATTTRIBUTE_HANDLE __DEPRECATED_MACRO BT_ATT_FIRST_ATTRIBUTE_HANDLE
53
/* 0xffff is defined as the maximum, and thus last, valid attribute handle */
54
#define BT_ATT_LAST_ATTRIBUTE_HANDLE 0xffff
55
#define BT_ATT_LAST_ATTTRIBUTE_HANDLE __DEPRECATED_MACRO BT_ATT_LAST_ATTRIBUTE_HANDLE
56
57
#if defined(CONFIG_BT_TESTING)
58
int
bt_eatt_disconnect_one(
struct
bt_conn *conn);
59
#endif
/* CONFIG_BT_TESTING */
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif
/* ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_ */
slist.h
Single-linked list implementation.
include
bluetooth
att.h
Generated on Mon Feb 21 2022 22:43:01 for Zephyr API Documentation by
1.9.2