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

📄 test.h

📁 bluetooth 驱动
💻 H
字号:
/* * test.h -- Test layer used to verify stack        * * Copyright (C) 2000, 2001  Axis Communications AB * * Author: Mats Friden <mats.friden@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: test.h,v 1.11 2001/10/16 16:24:51 anderstj Exp $x * */#ifndef TEST_H#define TEST_H/****************** INCLUDE FILES SECTION ***********************************/#ifdef __KERNEL__#include <linux/bluetooth/btcommon.h>#else#include "btcommon.h"#endif/****************** CONSTANT AND MACRO SECTION ******************************/extern l2cap_con *testcon;extern l2cap_con *testcon2;extern l2cap_con *testcon3;#define UPTEST_DATA_LEN 16384/****************** TYPE DEFINITION SECTION *********************************//****************** EXPORTED FUNCTION DECLARATION SECTION *******************/void test_init(void);void test_shutdown(void);s32 test_connect_req(BD_ADDR bd);s32 test_connect_psmreq(BD_ADDR bd, u16 psm);void test_connect_ind(l2cap_con *l2cap);void test_connect_cfm(l2cap_con *l2cap, s32 status);void test_connect_pnd(l2cap_con *l2cap, s32 status);void test_config_ind(l2cap_con* l2cap);void test_config_cfm(l2cap_con *l2cap, s32 status);s32 test_disconnect_req(l2cap_con *con);void test_disconnect_ind(l2cap_con *l2cap);void test_disconnect_cfm(l2cap_con *l2cap);void test_receive_data(l2cap_con *l2cap, u8 *data, u32 len);s32 test_send_data(l2cap_con *con, u8 *testdata, s32 len);s32 test_process_cmd(u8 *cmd, s32 size);#endif/****************** END OF FILE sdp.h ***************************************/

⌨️ 快捷键说明

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