⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bt_errno.h

📁 bluetooth 驱动
💻 H
字号:
/* * bt_errno.h -- Unified error signalling to usermode * * Copyright (C) 2000, 2001  Axis Communications AB * * Author: Mattias Agren <mattias.agren@axis.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * * Exceptionally, Axis Communications AB grants discretionary and * conditional permissions for additional use of the text contained * in the company's release of the AXIS OpenBT Stack under the * provisions set forth hereunder. * * Provided that, if you use the AXIS OpenBT Stack with other files, * that do not implement functionality as specified in the Bluetooth * System specification, to produce an executable, this does not by * itself cause the resulting executable to be covered by the GNU * General Public License. Your use of that executable is in no way * restricted on account of using the AXIS OpenBT Stack code with it. * * This exception does not however invalidate any other reasons why * the executable file might be covered by the provisions of the GNU * General Public License. * * $Id: bt_errno.h,v 1.5 2001/10/16 16:24:51 anderstj Exp $ * *//*==================================================================*//* Macros used to tell origin of error *//* Unique status codes 32 bits : | layer 16 bits | code 16 bits | */#define MSGCODE(layer, msgcode) ((((layer)<<16)&0xffff0000) | ((msgcode)&0xffff))#define MSG_GET_LAYER(msg) ((msg >> 16) & 0x0000ffff)#define MSG_GET_CODE(msg) (msg & 0x0000ffff)/* Layer ID */#define MSG_LAYER_HCI 1#define MSG_LAYER_L2CAP 2#define MSG_LAYER_RFCOMM 3#define MSG_LAYER_SDP 4#define MSG_LAYER_TCS 5#define MSG_BT_INTERFACE 6/*==================================================================*//* HCI *//* Uses errorcodes as specified in the BT specification *//*==================================================================*//* L2CAP */#define L2CAP_SUCCESS 0x0#define L2CAP_CON_PENDING 0x1/* Signalling response result */#define L2CAP_PSMNEG 0x02#define L2CAP_SECNEG 0x03#define L2CAP_NOSRC 0x04/* General l2cap return codes */#define L2CAP_FAILED 0xf0#define L2CAP_CON_UNRESPONSIVE 0xf1#define L2CAP_INVALID_STATE 0xf2#define L2CAP_NO_CONNECTION 0xf3#define L2CAP_EXCEED_REMOTE_MTU 0xf4#define L2CAP_RTX_TIMEOUT 0xf5/*==================================================================*//* RFCOMM */#define RFCOMM_INVALID_LINE 0xf0#define RFCOMM_SRVCHN_CONNECTED 0xf1#define RFCOMM_NO_DATA_ALLOWED 0xf2#define RFCOMM_NO_CONNECTION 0xf3#define RFCOMM_BAD_MAGIC_NUMBER 0Xf4/* fixme *//*==================================================================*//* SDP *//* fixme *//*==================================================================*//* TCS *//* fixme *//*==================================================================*//* BT INTERFACE */#define BT_NOTCONNECTED 0x1#define BT_ALREADYCONNECTED 0x2#define BT_TIMEOUT 0x3#define BT_LINE_BUSY 0x4#define BT_INQ_FAILED 0x5

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -