完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
请问各位:
cc2540 做为Central角色连接上了外围设备,之后连接断开,会返回 pEvent->linkTerminate.reason,表示原因的参数,请问关于terminate reason参数的说明在哪里可以找到啊?谢谢! |
|
相关推荐
7 个讨论
|
|
/*
** LL API Status Codes ** ** Note: These status values map directly to the HCI Error Codes. ** Per the Bluetooth Core Specification, V4.0.0, Vol. 2, Part D. */ #define LL_STATUS_SUCCESS 0x00 // Success #define LL_STATUS_ERROR_UNKNOWN_CONN_HANDLE 0x02 // Unknown Connection Identifier #define LL_STATUS_ERROR_INACTIVE_CONNECTION 0x02 // Unknown Connection Identifier for now; may be needed for multiple connections #define LL_STATUS_ERROR_AUTH_FAILURE 0x05 // Authentication Failure #define LL_STATUS_ERROR_PIN_OR_KEY_MISSING 0x06 // Pin or Key Missing #define LL_STATUS_ERROR_OUT_OF_CONN_RESOURCES 0x07 // Memory Capacity Exceeded #define LL_STATUS_ERROR_OUT_OF_TX_MEM 0x07 // Memory Capacity Exceeded #define LL_STATUS_ERROR_OUT_OF_RX_MEM 0x07 // Memory Capacity Exceeded #define LL_STATUS_ERROR_OUT_OF_HEAP 0x07 // Memory Capacity Exceeded #define LL_STATUS_ERROR_WL_TABLE_FULL 0x07 // Memory Capacity Exceeded #define LL_STATUS_ERROR_CONNECTION_TIMEOUT 0x08 // Connection Timeout #define LL_STATUS_ERROR_CONNECTION_LIMIT_EXCEEDED 0x09 // Connection Limit Exceeded #define LL_STATUS_ERROR_COMMAND_DISALLOWED 0x0C // Command Disallowed #define LL_STATUS_ERROR_DUE_TO_LIMITED_RESOURCES 0x0D // Command Rejected Due To Limited Resources #define LL_STATUS_ERROR_DUE_TO_DELAYED_RESOURCES 0x0D // Command Delayed Due To Limited Resources #define LL_STATUS_ERROR_FEATURE_NOT_SUPPORTED 0x11 // Unsupported Feature or Parameter Value #define LL_STATUS_ERROR_UNEXPECTED_PARAMETER 0x12 // Invalid HCI Command Parameters #define LL_STATUS_ERROR_ILLEGAL_PARAM_COMBINATION 0x12 // Invalid HCI Command Parameters #define LL_STATUS_ERROR_BAD_PARAMETER 0x12 // Invalid HCI Command Parameters or 0x30: Parameter Out of Mandatory Range? #define LL_STATUS_ERROR_UNKNOWN_ADV_EVT_TYPE 0x12 // Invalid HCI Command Parameters or 0x30: Parameter Out of Mandatory Range? #define LL_STATUS_ERROR_PEER_TERM 0x13 // Remote User Terminated Connection #define LL_STATUS_ERROR_PEER_DEVICE_TERM_LOW_RESOURCES 0x14 // Remote Device Terminated Connection Due To Low Resources #define LL_STATUS_ERROR_PEER_DEVICE_TERM_POWER_OFF 0x15 // Remote Device Terminated Connection Due To Power Off #define LL_STATUS_ERROR_HOST_TERM 0x16 // Connection Terminated By Local Host #define LL_STATUS_ERROR_UNSUPPORTED_REMOTE_FEATURE 0x1A // Unsupported Remote Feature #define LL_STATUS_ERROR_WL_ENTRY_NOT_FOUND 0x1F // Unspecified Error #define LL_STATUS_ERROR_WL_TABLE_EMPTY 0x1F // Unspecified Error #define LL_STATUS_ERROR_RNG_FAILURE 0x1F // Unspecified Error #define LL_STATUS_ERROR_DISCONNECT_IMMEDIATE 0x1F // Unspecified Error #define LL_STATUS_ERROR_UNEXPECTED_STATE_ROLE 0x21 // Role Change Not Allowed #define LL_STATUS_ERROR_LL_TIMEOUT 0x22 // Link Layer Response Timeout #define LL_STATUS_ERROR_LL_TIMEOUT_HOST 0x22 // Link Layer Response Timeout #define LL_STATUS_ERROR_LL_TIMEOUT_PEER 0x22 // Link Layer Response Timeout #define LL_STATUS_ERROR_INSTANT_PASSED 0x28 // Instant Passed #define LL_STATUS_ERROR_INSTANT_PASSED_HOST 0x28 // Instant Passed #define LL_STATUS_ERROR_INSTANT_PASSED_PEER 0x28 // Instant Passed #define LL_STATUS_ERROR_KEY_PAIRING_NOT_SUPPORTED 0x29 // Pairing With Unit Key Not Supported #define LL_STATUS_ERROR_NO_ADV_CHAN_FOUND 0x30 // Parameter Out Of Mandatory Range #define LL_STATUS_ERROR_PARAM_OUT_OF_RANGE 0x30 // Parameter Out Of Mandatory Range #define LL_STATUS_ERROR_UPDATE_CTRL_PROC_PENDING 0x3A // Controller Busy #define LL_STATUS_ERROR_CTRL_PROC_ALREADY_ACTIVE 0x3A // Controller Busy #define LL_STATUS_ERROR_VER_INFO_REQ_ALREADY_PENDING 0x3A // Controller Busy #define LL_STATUS_ERROR_UNACCEPTABLE_CONN_INTERVAL 0x3B // Unacceptable Connection Interval #define LL_STATUS_ERROR_DIRECTED_ADV_TIMEOUT 0x3C // Directed Advertising Timeout #define LL_STATUS_ERROR_CONN_TERM_DUE_TO_MIC_FAILURE 0x3D // Connection Terminated Due To MIC Failure #define LL_STATUS_ERROR_CONN_FAILED_TO_BE_ESTABLISHED 0x3E // Connection Failed To Be Established #define LL_STATUS_ERROR_CONN_TIMING_FAILURE 0x3F // MAC Connection Failed |
|
|
|
|
|
只有小组成员才能发言,加入小组>>
341 浏览 1 评论
539 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
781 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
655 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1138 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
70浏览 29评论
222浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
257浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
205浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
65浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 15:42 , Processed in 1.055994 second(s), Total 57, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号