亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rfcomm.h

?? linux系統下的關于藍牙模塊的源代碼!十分的經典的程序!
?? H
字號:
/* * rfcomm.c -- Implementation of Bluetooth RFCOMM with TS 07.10,  *             Serial Port Emulation * * Copyright (C) 2000, 2001  Axis Communications AB * * Authors: Mattias Agren <mattias.agren@axis.com> *          Mats Friden <matsf.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: rfcomm.h,v 1.41 2001/10/10 14:59:17 anderstj Exp $ * */#ifndef RFCOMM_H#define RFCOMM_H/****************** INCLUDE FILES SECTION ***********************************/#ifdef __KERNEL__#include <linux/config.h>#include <linux/types.h>#include <linux/bluetooth/btcommon.h>#else#include "local.h"#include "btcommon.h"#endif#include <asm/byteorder.h>/****************** CONSTANT AND MACRO SECTION ******************************//*  * RFCOMM connection ID macros * format : | psm(16 bits) | line(8bits) | dlci(8 bits) |  */#define CREATE_RFCOMM_ID(line, dlci) ( ((RFCOMM_LAYER << 16)&0xffff0000) | ((line<<8)&0xff00) | ((dlci) & 0xff) )#define CHECK_RFCOMM(id) do { \                          if (GET_PSM(id) != RFCOMM_LAYER) \                             D_ERR("con id 0x%x is not a RFCOMM ID (%s, l.%d)\n", id, __FILE__, __LINE__);\                          } while (0)#define GET_RFCOMMSRVCH(con_id) ((con_id&0xff) >> 1)#define GET_RFCOMMDLCI(con_id) (con_id&0xff)#ifdef CONFIG_SVINTO2#include <asm/svinto.h>#endif#define RFCOMM_MAGIC 0x1234#define PPP_DLCI 2/* The virtual port for ppp */#define CTRL_CHAN 0/* The control channel is defined as DLCI 0 in rfcomm */#define MCC_CMD 1/* Multiplexer command */#define MCC_RSP 0/* Multiplexer response *//****************** TYPE DEFINITION SECTION *********************************//* An rfcomm connection is described by the physical connection to another   device, the l2cap_con, and the emulated serial ports on this connection,   active_ports *//* These two are placed here temporary during the UnPlugFest */#ifdef __LITTLE_ENDIAN_BITFIELDtypedef struct parameter_mask{	u8 bit_rate:1;	u8 data_bits:1;	u8 stop_bit:1;	u8 parity:1;	u8 parity_type:1;	u8 xon_u8:1;	u8 xoff_u8:1;	u8 res1:1;	u8 xon_input:1;	u8 xon_output:1;	u8 rtr_input:1;	u8 rtr_output:1;	u8 rtc_input:1;	u8 rtc_output:1;	u8 res2:2;} __attribute__ ((packed)) parameter_mask;typedef struct rpn_values{	u8 bit_rate;	u8 data_bits:2;	u8 stop_bit:1;	u8 parity:1;	u8 parity_type:2;	u8 res1:2;	u8 xon_input:1;	u8 xon_output:1;	u8 rtr_input:1;	u8 rtr_output:1;	u8 rtc_input:1;	u8 rtc_output:1;	u8 res2:2;	u8 xon_u8;	u8 xoff_u8;	parameter_mask pm;} __attribute__ ((packed)) rpn_values;#elif defined(__BIG_ENDIAN_BITFIELD)typedef struct parameter_mask{ 	u8 res1:1;	u8 xoff_u8:1;	u8 xon_u8:1;	u8 parity_type:1;	u8 parity:1;	u8 stop_bit:1;	u8 data_bits:1;	u8 bit_rate:1;	u8 res2:2;	u8 rtc_output:1;	u8 rtc_input:1;	u8 rtr_output:1;	u8 rtr_input:1;	u8 xon_output:1;	u8 xon_input:1;} __attribute__ ((packed)) parameter_mask;typedef struct rpn_values{ 	u8 bit_rate;	u8 res1:2;	u8 parity_type:2;	u8 parity:1;	u8 stop_bit:1;	u8 data_bits:2;	u8 res2:2;	u8 rtc_output:1;	u8 rtc_input:1;	u8 rtr_output:1;	u8 rtr_input:1;	u8 xon_output:1;	u8 xon_input:1;	u8 xon_u8;	u8 xoff_u8;	parameter_mask pm;} __attribute__ ((packed)) rpn_values;#else  /* __XXX_BITFIELD */#error Processor endianness unknown!#endif/****************** EXPORTED FUNCTION DECLARATION SECTION *******************/s32 rfcomm_module_init(void);void rfcomm_init(void);void rfcomm_close(void);s32 rfcomm_connect_req(u8* bd_addr, u8 server_chan, u8 line);void rfcomm_connect_ind(l2cap_con *l2cap);void rfcomm_connect_pnd(l2cap_con *l2cap, int status);void rfcomm_connect_cfm(l2cap_con *l2cap, s32 status);void rfcomm_config_ind(l2cap_con* l2cap);void rfcomm_config_cfm(l2cap_con *l2cap, s32 status);void rfcomm_disconnect_ind(l2cap_con *l2cap);void rfcomm_disconnect_cfm(l2cap_con *l2cap);void rfcomm_receive_data(l2cap_con *l2cap, u8 *data, u32 len);s32 rfcomm_send_data(u32 con_id, u8 *data, u32 count);s32 rfcomm_disconnect_req(u8 line);void rfcomm_send_testdata(u32 count, u8 line);void rfcomm_print_status(void);s32 rfcomm_sprint_status(u8 *buf);s32 rfcomm_ua_msg(rfcomm_con *rfcomm, u8 dlci);s32 rfcomm_dm_msg(rfcomm_con *rfcomm, u8 dlci);s32 rfcomm_disc_msg(rfcomm_con *rfcomm, u8 dlci);s32 rfcomm_test_msg(rfcomm_con *rfcomm, u8 *test_pattern, u32 len, u8 cr);s32 rfcomm_fcon_msg(rfcomm_con *rfcomm, u8 cr);s32 rfcomm_fcoff_msg(rfcomm_con *rfcomm, u8 cr);s32 rfcomm_rpn_msg(rfcomm_con *rfcomm, u8 cr, u8 dlci, u8 req);s32 rfcomm_rls_msg(rfcomm_con *rfcomm, u8 cr, u8 dlci, u8 err_code);s32 rfcomm_set_mtu(rfcomm_con *rfcomm, u8 dlci, u32 new_mtu);s32 rfcomm_msc_msg(rfcomm_con *rfcomm, u8 value, u8 cr, u8 dlci);s32 rfcomm_sabm_msg(rfcomm_con *rfcomm, u8 dlci);s32 rfcomm_pn_msg(rfcomm_con *rfcomm, u8 dlci, u8 credits, u32 frame_size);s32 rfcomm_crap_msg(rfcomm_con *rfcomm);s32 rfcomm_send_credits(rfcomm_con *rfcomm, u8 dlci, u8 credits);s32 valid_dlci(u8 dlci);s32 rfcomm_flow_stop(u8 line, u8 dlci);#endif/****************** END OF FILE rfcomm.h ************************************/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合图片区| 国产欧美视频在线观看| 成人av电影观看| 男人操女人的视频在线观看欧美| 亚洲欧美日韩国产综合在线 | 日韩一本二本av| 欧美视频在线观看一区二区| 91视频在线观看| 99视频精品全部免费在线| 成人免费高清在线观看| 国产成人精品一区二区三区四区| 久久91精品国产91久久小草| 欧美a一区二区| 精品一区二区三区的国产在线播放| 亚洲a一区二区| 热久久国产精品| 日本成人在线看| 国产专区欧美精品| 成人在线视频一区二区| 粉嫩久久99精品久久久久久夜| 高清国产一区二区| 成人美女在线观看| 一本大道av一区二区在线播放 | 日韩一区和二区| 精品国产一区二区三区av性色| 日韩欧美第一区| 日本一区二区免费在线观看视频| 中文字幕欧美区| 亚洲激情图片小说视频| 午夜精品一区在线观看| 久久精品国产精品亚洲精品| 国产精品一区二区久久不卡| 成人免费观看视频| 在线视频你懂得一区| 91精品蜜臀在线一区尤物| 欧美不卡在线视频| 亚洲欧洲精品一区二区三区| 一区二区欧美在线观看| 免费高清在线一区| 国产高清精品在线| 欧美性色黄大片手机版| 欧美不卡123| 国产精品黄色在线观看| 亚洲午夜电影在线观看| 国产专区综合网| 欧美性欧美巨大黑白大战| 日韩欧美国产午夜精品| 国产精品国产三级国产普通话三级 | 亚洲一区二区四区蜜桃| 久久精品国产精品青草| 色婷婷综合久久久中文字幕| 欧美成人video| 亚洲精品国产a| 精品亚洲aⅴ乱码一区二区三区| 丁香激情综合国产| 日韩一卡二卡三卡国产欧美| 国产精品毛片大码女人| 久久精品国产免费看久久精品| 91一区二区在线| 久久欧美一区二区| 青青草成人在线观看| 一本色道久久综合狠狠躁的推荐| 精品久久免费看| 午夜精品免费在线| 色婷婷综合久久| 国产精品视频一二| 国产成人亚洲综合a∨婷婷图片| 欧美色视频在线观看| 国产精品免费视频网站| 狠狠狠色丁香婷婷综合激情 | 亚洲欧洲精品天堂一级| 国产一区二区三区黄视频| 欧美另类videos死尸| 亚洲男女毛片无遮挡| 99re这里只有精品6| 欧美国产日韩a欧美在线观看| 久久狠狠亚洲综合| 在线不卡一区二区| 亚洲444eee在线观看| 色婷婷精品久久二区二区蜜臂av | 天使萌一区二区三区免费观看| 国产v日产∨综合v精品视频| 日韩免费福利电影在线观看| 亚洲高清在线视频| 欧美影院午夜播放| 一区二区三区中文字幕精品精品| 不卡在线观看av| 国产精品区一区二区三区| 国产成人av电影免费在线观看| 26uuu精品一区二区| 国产在线播放一区| 国产日产精品一区| 大胆欧美人体老妇| 国产精品丝袜91| 91在线国产观看| 一区二区在线观看视频在线观看| 99精品久久久久久| 一区二区三区高清不卡| 精品视频在线免费看| 日韩精品免费视频人成| 欧美白人最猛性xxxxx69交| 激情综合亚洲精品| 欧美激情艳妇裸体舞| 99精品国产99久久久久久白柏| 亚洲三级在线免费| 欧美日韩欧美一区二区| 精品综合免费视频观看| 中国色在线观看另类| 91在线观看视频| 五月综合激情网| 国产亚洲精品bt天堂精选| jlzzjlzz亚洲女人18| 亚洲高清视频的网址| 精品国产区一区| 91香蕉国产在线观看软件| 午夜精品一区二区三区免费视频| 久久综合色一综合色88| 99国产一区二区三精品乱码| 丝袜亚洲另类丝袜在线| 国产精品美女久久久久久久久| 在线视频一区二区免费| 精品一区二区三区蜜桃| 一区二区三区高清在线| 精品日本一线二线三线不卡| 91在线一区二区| 久久国产精品99精品国产 | 国产精品中文欧美| 亚洲乱码国产乱码精品精的特点| 欧美一区2区视频在线观看| 国产91在线观看| 日韩高清一区二区| 中文字幕制服丝袜成人av| 欧美精品日韩一区| 97久久精品人人澡人人爽| 秋霞电影网一区二区| 亚洲日本青草视频在线怡红院| 欧美mv和日韩mv国产网站| 色激情天天射综合网| 国产成人av一区二区三区在线| 亚洲一区视频在线| 亚洲欧美自拍偷拍色图| 欧美岛国在线观看| 欧美日韩国产乱码电影| 色婷婷亚洲婷婷| 99精品国产热久久91蜜凸| 久久精品av麻豆的观看方式| 亚洲一区二区高清| 一区二区三区在线免费| 日本一二三四高清不卡| 精品国内片67194| 91精品国产福利在线观看| 在线观看视频一区二区| 91香蕉视频污在线| 北岛玲一区二区三区四区| 国产aⅴ综合色| 国产高清在线精品| 国产精品自拍av| 国产美女在线观看一区| 国产真实精品久久二三区| 麻豆91免费看| 久久99精品网久久| 极品少妇xxxx偷拍精品少妇| 秋霞电影网一区二区| 青青草国产精品亚洲专区无| 同产精品九九九| 视频一区在线视频| 免费av成人在线| 美女精品自拍一二三四| 秋霞国产午夜精品免费视频| 日本三级韩国三级欧美三级| 肉色丝袜一区二区| 日本中文一区二区三区| 日韩 欧美一区二区三区| 久久国产精品第一页| 国产精品一区一区| a在线播放不卡| 欧美视频在线一区| 91精品久久久久久久99蜜桃| 日韩午夜激情免费电影| 欧美精品一区二区三区一线天视频 | 天堂成人国产精品一区| 欧美a级一区二区| 国产呦萝稀缺另类资源| 成人免费观看av| 色老汉一区二区三区| 制服丝袜激情欧洲亚洲| 久久精品视频在线免费观看| 国产精品第13页| 亚洲成人动漫一区| 国产主播一区二区| 色综合久久中文综合久久牛| 欧美美女直播网站| 久久久91精品国产一区二区精品| 中文字幕中文字幕在线一区 | 一本色道亚洲精品aⅴ| 欧美一区二区三区婷婷月色| 欧美激情一区二区三区蜜桃视频| 亚洲精品久久7777| 狠狠久久亚洲欧美| 欧美在线三级电影|