Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
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_ATTTRIBUTE_HANDLE 0x0001
52
/* 0xffff is defined as the maximum, and thus last, valid attribute handle */
53
#define BT_ATT_LAST_ATTTRIBUTE_HANDLE 0xffff
54
55
#if defined(CONFIG_BT_TESTING)
56
int
bt_eatt_disconnect_one(
struct
bt_conn *conn);
57
#endif
/* CONFIG_BT_TESTING */
58
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#endif
/* ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_ */
slist.h
Single-linked list implementation.
include
bluetooth
att.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4