Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
hci_err.h File Reference

Bluetooth Host Control Interface status codes. More...

Go to the source code of this file.

Macros

#define BT_HCI_ERR_SUCCESS   0x00
 
#define BT_HCI_ERR_UNKNOWN_CMD   0x01
 
#define BT_HCI_ERR_UNKNOWN_CONN_ID   0x02
 
#define BT_HCI_ERR_HW_FAILURE   0x03
 
#define BT_HCI_ERR_PAGE_TIMEOUT   0x04
 
#define BT_HCI_ERR_AUTH_FAIL   0x05
 
#define BT_HCI_ERR_PIN_OR_KEY_MISSING   0x06
 
#define BT_HCI_ERR_MEM_CAPACITY_EXCEEDED   0x07
 
#define BT_HCI_ERR_CONN_TIMEOUT   0x08
 
#define BT_HCI_ERR_CONN_LIMIT_EXCEEDED   0x09
 
#define BT_HCI_ERR_SYNC_CONN_LIMIT_EXCEEDED   0x0a
 
#define BT_HCI_ERR_CONN_ALREADY_EXISTS   0x0b
 
#define BT_HCI_ERR_CMD_DISALLOWED   0x0c
 
#define BT_HCI_ERR_INSUFFICIENT_RESOURCES   0x0d
 
#define BT_HCI_ERR_INSUFFICIENT_SECURITY   0x0e
 
#define BT_HCI_ERR_BD_ADDR_UNACCEPTABLE   0x0f
 
#define BT_HCI_ERR_CONN_ACCEPT_TIMEOUT   0x10
 
#define BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL   0x11
 
#define BT_HCI_ERR_INVALID_PARAM   0x12
 
#define BT_HCI_ERR_REMOTE_USER_TERM_CONN   0x13
 
#define BT_HCI_ERR_REMOTE_LOW_RESOURCES   0x14
 
#define BT_HCI_ERR_REMOTE_POWER_OFF   0x15
 
#define BT_HCI_ERR_LOCALHOST_TERM_CONN   0x16
 
#define BT_HCI_ERR_REPEATED_ATTEMPTS   0x17
 
#define BT_HCI_ERR_PAIRING_NOT_ALLOWED   0x18
 
#define BT_HCI_ERR_UNKNOWN_LMP_PDU   0x19
 
#define BT_HCI_ERR_UNSUPP_REMOTE_FEATURE   0x1a
 
#define BT_HCI_ERR_SCO_OFFSET_REJECTED   0x1b
 
#define BT_HCI_ERR_SCO_INTERVAL_REJECTED   0x1c
 
#define BT_HCI_ERR_SCO_AIR_MODE_REJECTED   0x1d
 
#define BT_HCI_ERR_INVALID_LL_PARAM   0x1e
 
#define BT_HCI_ERR_UNSPECIFIED   0x1f
 
#define BT_HCI_ERR_UNSUPP_LL_PARAM_VAL   0x20
 
#define BT_HCI_ERR_ROLE_CHANGE_NOT_ALLOWED   0x21
 
#define BT_HCI_ERR_LL_RESP_TIMEOUT   0x22
 
#define BT_HCI_ERR_LL_PROC_COLLISION   0x23
 
#define BT_HCI_ERR_LMP_PDU_NOT_ALLOWED   0x24
 
#define BT_HCI_ERR_ENC_MODE_NOT_ACCEPTABLE   0x25
 
#define BT_HCI_ERR_LINK_KEY_CANNOT_BE_CHANGED   0x26
 
#define BT_HCI_ERR_REQUESTED_QOS_NOT_SUPPORTED   0x27
 
#define BT_HCI_ERR_INSTANT_PASSED   0x28
 
#define BT_HCI_ERR_PAIRING_NOT_SUPPORTED   0x29
 
#define BT_HCI_ERR_DIFF_TRANS_COLLISION   0x2a
 
#define BT_HCI_ERR_QOS_UNACCEPTABLE_PARAM   0x2c
 
#define BT_HCI_ERR_QOS_REJECTED   0x2d
 
#define BT_HCI_ERR_CHAN_ASSESS_NOT_SUPPORTED   0x2e
 
#define BT_HCI_ERR_INSUFF_SECURITY   0x2f
 
#define BT_HCI_ERR_PARAM_OUT_OF_MANDATORY_RANGE   0x30
 
#define BT_HCI_ERR_ROLE_SWITCH_PENDING   0x32
 
#define BT_HCI_ERR_RESERVED_SLOT_VIOLATION   0x34
 
#define BT_HCI_ERR_ROLE_SWITCH_FAILED   0x35
 
#define BT_HCI_ERR_EXT_INQ_RESP_TOO_LARGE   0x36
 
#define BT_HCI_ERR_SIMPLE_PAIR_NOT_SUPP_BY_HOST   0x37
 
#define BT_HCI_ERR_HOST_BUSY_PAIRING   0x38
 
#define BT_HCI_ERR_CONN_REJECTED_DUE_TO_NO_CHAN   0x39
 
#define BT_HCI_ERR_CONTROLLER_BUSY   0x3a
 
#define BT_HCI_ERR_UNACCEPT_CONN_PARAM   0x3b
 
#define BT_HCI_ERR_ADV_TIMEOUT   0x3c
 
#define BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL   0x3d
 
#define BT_HCI_ERR_CONN_FAIL_TO_ESTAB   0x3e
 
#define BT_HCI_ERR_MAC_CONN_FAILED   0x3f
 
#define BT_HCI_ERR_CLOCK_ADJUST_REJECTED   0x40
 
#define BT_HCI_ERR_SUBMAP_NOT_DEFINED   0x41
 
#define BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER   0x42
 
#define BT_HCI_ERR_LIMIT_REACHED   0x43
 
#define BT_HCI_ERR_OP_CANCELLED_BY_HOST   0x44
 
#define BT_HCI_ERR_PACKET_TOO_LONG   0x45
 

Detailed Description

Bluetooth Host Control Interface status codes.

Macro Definition Documentation

◆ BT_HCI_ERR_ADV_TIMEOUT

#define BT_HCI_ERR_ADV_TIMEOUT   0x3c

◆ BT_HCI_ERR_AUTH_FAIL

#define BT_HCI_ERR_AUTH_FAIL   0x05

◆ BT_HCI_ERR_BD_ADDR_UNACCEPTABLE

#define BT_HCI_ERR_BD_ADDR_UNACCEPTABLE   0x0f

◆ BT_HCI_ERR_CHAN_ASSESS_NOT_SUPPORTED

#define BT_HCI_ERR_CHAN_ASSESS_NOT_SUPPORTED   0x2e

◆ BT_HCI_ERR_CLOCK_ADJUST_REJECTED

#define BT_HCI_ERR_CLOCK_ADJUST_REJECTED   0x40

◆ BT_HCI_ERR_CMD_DISALLOWED

#define BT_HCI_ERR_CMD_DISALLOWED   0x0c

◆ BT_HCI_ERR_CONN_ACCEPT_TIMEOUT

#define BT_HCI_ERR_CONN_ACCEPT_TIMEOUT   0x10

◆ BT_HCI_ERR_CONN_ALREADY_EXISTS

#define BT_HCI_ERR_CONN_ALREADY_EXISTS   0x0b

◆ BT_HCI_ERR_CONN_FAIL_TO_ESTAB

#define BT_HCI_ERR_CONN_FAIL_TO_ESTAB   0x3e

◆ BT_HCI_ERR_CONN_LIMIT_EXCEEDED

#define BT_HCI_ERR_CONN_LIMIT_EXCEEDED   0x09

◆ BT_HCI_ERR_CONN_REJECTED_DUE_TO_NO_CHAN

#define BT_HCI_ERR_CONN_REJECTED_DUE_TO_NO_CHAN   0x39

◆ BT_HCI_ERR_CONN_TIMEOUT

#define BT_HCI_ERR_CONN_TIMEOUT   0x08

◆ BT_HCI_ERR_CONTROLLER_BUSY

#define BT_HCI_ERR_CONTROLLER_BUSY   0x3a

◆ BT_HCI_ERR_DIFF_TRANS_COLLISION

#define BT_HCI_ERR_DIFF_TRANS_COLLISION   0x2a

◆ BT_HCI_ERR_ENC_MODE_NOT_ACCEPTABLE

#define BT_HCI_ERR_ENC_MODE_NOT_ACCEPTABLE   0x25

◆ BT_HCI_ERR_EXT_INQ_RESP_TOO_LARGE

#define BT_HCI_ERR_EXT_INQ_RESP_TOO_LARGE   0x36

◆ BT_HCI_ERR_HOST_BUSY_PAIRING

#define BT_HCI_ERR_HOST_BUSY_PAIRING   0x38

◆ BT_HCI_ERR_HW_FAILURE

#define BT_HCI_ERR_HW_FAILURE   0x03

◆ BT_HCI_ERR_INSTANT_PASSED

#define BT_HCI_ERR_INSTANT_PASSED   0x28

◆ BT_HCI_ERR_INSUFF_SECURITY

#define BT_HCI_ERR_INSUFF_SECURITY   0x2f

◆ BT_HCI_ERR_INSUFFICIENT_RESOURCES

#define BT_HCI_ERR_INSUFFICIENT_RESOURCES   0x0d

◆ BT_HCI_ERR_INSUFFICIENT_SECURITY

#define BT_HCI_ERR_INSUFFICIENT_SECURITY   0x0e

◆ BT_HCI_ERR_INVALID_LL_PARAM

#define BT_HCI_ERR_INVALID_LL_PARAM   0x1e

◆ BT_HCI_ERR_INVALID_PARAM

#define BT_HCI_ERR_INVALID_PARAM   0x12

◆ BT_HCI_ERR_LIMIT_REACHED

#define BT_HCI_ERR_LIMIT_REACHED   0x43

◆ BT_HCI_ERR_LINK_KEY_CANNOT_BE_CHANGED

#define BT_HCI_ERR_LINK_KEY_CANNOT_BE_CHANGED   0x26

◆ BT_HCI_ERR_LL_PROC_COLLISION

#define BT_HCI_ERR_LL_PROC_COLLISION   0x23

◆ BT_HCI_ERR_LL_RESP_TIMEOUT

#define BT_HCI_ERR_LL_RESP_TIMEOUT   0x22

◆ BT_HCI_ERR_LMP_PDU_NOT_ALLOWED

#define BT_HCI_ERR_LMP_PDU_NOT_ALLOWED   0x24

◆ BT_HCI_ERR_LOCALHOST_TERM_CONN

#define BT_HCI_ERR_LOCALHOST_TERM_CONN   0x16

◆ BT_HCI_ERR_MAC_CONN_FAILED

#define BT_HCI_ERR_MAC_CONN_FAILED   0x3f

◆ BT_HCI_ERR_MEM_CAPACITY_EXCEEDED

#define BT_HCI_ERR_MEM_CAPACITY_EXCEEDED   0x07

◆ BT_HCI_ERR_OP_CANCELLED_BY_HOST

#define BT_HCI_ERR_OP_CANCELLED_BY_HOST   0x44

◆ BT_HCI_ERR_PACKET_TOO_LONG

#define BT_HCI_ERR_PACKET_TOO_LONG   0x45

◆ BT_HCI_ERR_PAGE_TIMEOUT

#define BT_HCI_ERR_PAGE_TIMEOUT   0x04

◆ BT_HCI_ERR_PAIRING_NOT_ALLOWED

#define BT_HCI_ERR_PAIRING_NOT_ALLOWED   0x18

◆ BT_HCI_ERR_PAIRING_NOT_SUPPORTED

#define BT_HCI_ERR_PAIRING_NOT_SUPPORTED   0x29

◆ BT_HCI_ERR_PARAM_OUT_OF_MANDATORY_RANGE

#define BT_HCI_ERR_PARAM_OUT_OF_MANDATORY_RANGE   0x30

◆ BT_HCI_ERR_PIN_OR_KEY_MISSING

#define BT_HCI_ERR_PIN_OR_KEY_MISSING   0x06

◆ BT_HCI_ERR_QOS_REJECTED

#define BT_HCI_ERR_QOS_REJECTED   0x2d

◆ BT_HCI_ERR_QOS_UNACCEPTABLE_PARAM

#define BT_HCI_ERR_QOS_UNACCEPTABLE_PARAM   0x2c

◆ BT_HCI_ERR_REMOTE_LOW_RESOURCES

#define BT_HCI_ERR_REMOTE_LOW_RESOURCES   0x14

◆ BT_HCI_ERR_REMOTE_POWER_OFF

#define BT_HCI_ERR_REMOTE_POWER_OFF   0x15

◆ BT_HCI_ERR_REMOTE_USER_TERM_CONN

#define BT_HCI_ERR_REMOTE_USER_TERM_CONN   0x13

◆ BT_HCI_ERR_REPEATED_ATTEMPTS

#define BT_HCI_ERR_REPEATED_ATTEMPTS   0x17

◆ BT_HCI_ERR_REQUESTED_QOS_NOT_SUPPORTED

#define BT_HCI_ERR_REQUESTED_QOS_NOT_SUPPORTED   0x27

◆ BT_HCI_ERR_RESERVED_SLOT_VIOLATION

#define BT_HCI_ERR_RESERVED_SLOT_VIOLATION   0x34

◆ BT_HCI_ERR_ROLE_CHANGE_NOT_ALLOWED

#define BT_HCI_ERR_ROLE_CHANGE_NOT_ALLOWED   0x21

◆ BT_HCI_ERR_ROLE_SWITCH_FAILED

#define BT_HCI_ERR_ROLE_SWITCH_FAILED   0x35

◆ BT_HCI_ERR_ROLE_SWITCH_PENDING

#define BT_HCI_ERR_ROLE_SWITCH_PENDING   0x32

◆ BT_HCI_ERR_SCO_AIR_MODE_REJECTED

#define BT_HCI_ERR_SCO_AIR_MODE_REJECTED   0x1d

◆ BT_HCI_ERR_SCO_INTERVAL_REJECTED

#define BT_HCI_ERR_SCO_INTERVAL_REJECTED   0x1c

◆ BT_HCI_ERR_SCO_OFFSET_REJECTED

#define BT_HCI_ERR_SCO_OFFSET_REJECTED   0x1b

◆ BT_HCI_ERR_SIMPLE_PAIR_NOT_SUPP_BY_HOST

#define BT_HCI_ERR_SIMPLE_PAIR_NOT_SUPP_BY_HOST   0x37

◆ BT_HCI_ERR_SUBMAP_NOT_DEFINED

#define BT_HCI_ERR_SUBMAP_NOT_DEFINED   0x41

◆ BT_HCI_ERR_SUCCESS

#define BT_HCI_ERR_SUCCESS   0x00

HCI Error Codes, BT Core Spec v5.2 [Vol 1, Part F].

◆ BT_HCI_ERR_SYNC_CONN_LIMIT_EXCEEDED

#define BT_HCI_ERR_SYNC_CONN_LIMIT_EXCEEDED   0x0a

◆ BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL

#define BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL   0x3d

◆ BT_HCI_ERR_UNACCEPT_CONN_PARAM

#define BT_HCI_ERR_UNACCEPT_CONN_PARAM   0x3b

◆ BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER

#define BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER   0x42

◆ BT_HCI_ERR_UNKNOWN_CMD

#define BT_HCI_ERR_UNKNOWN_CMD   0x01

◆ BT_HCI_ERR_UNKNOWN_CONN_ID

#define BT_HCI_ERR_UNKNOWN_CONN_ID   0x02

◆ BT_HCI_ERR_UNKNOWN_LMP_PDU

#define BT_HCI_ERR_UNKNOWN_LMP_PDU   0x19

◆ BT_HCI_ERR_UNSPECIFIED

#define BT_HCI_ERR_UNSPECIFIED   0x1f

◆ BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL

#define BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL   0x11

◆ BT_HCI_ERR_UNSUPP_LL_PARAM_VAL

#define BT_HCI_ERR_UNSUPP_LL_PARAM_VAL   0x20

◆ BT_HCI_ERR_UNSUPP_REMOTE_FEATURE

#define BT_HCI_ERR_UNSUPP_REMOTE_FEATURE   0x1a