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

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

?? rfcomm.h

?? bluetooth 開發程序bluez-hcidump-1.28
?? H
字號:
/* * *  BlueZ - Bluetooth protocol stack for Linux * *  Copyright (C) 2001-2002  Wayne Lee <waynelee@qualcomm.com> *  Copyright (C) 2003-2005  Marcel Holtmann <marcel@holtmann.org> * * *  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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA * */#ifndef __RFCOMM_H#define __RFCOMM_H#include <endian.h>#define RFCOMM_PSM 3#define TRUE  1#define FALSE 0#define RFCOMM_MAX_CONN 10#define BT_NBR_DATAPORTS RFCOMM_MAX_CONN#define GET_BIT(pos,bitfield) ((bitfield[(pos)/32]) & (1 << ((pos) % 32)))#define SET_BIT(pos,bitfield) ((bitfield[(pos)/32]) |= (1 << ((pos) % 32))) #define CLR_BIT(pos,bitfield) ((bitfield[(pos)/32]) &= ((1 << ((pos) % 32)) ^ (~0)))/* Sets the P/F-bit in the control field */#define SET_PF(ctr) ((ctr) | (1 << 4)) /* Clears the P/F-bit in the control field */#define CLR_PF(ctr) ((ctr) & 0xef)/* Returns the P/F-bit */#define GET_PF(ctr) (((ctr) >> 4) & 0x1)#define MIN(a, b) (((a) < (b)) ? (a) : (b))/* Endian-swapping macros for structs */#define swap_long_frame(x) ((x)->h.length.val = le16_to_cpu((x)->h.length.val))#define swap_mcc_long_frame(x) (swap_long_frame(x))/* Used for UIH packets */#define SHORT_CRC_CHECK 2/* Used for all packet exepts for the UIH packets */#define LONG_CRC_CHECK 3/* Short header for short UIH packets */#define SHORT_HDR 2/* Long header for long UIH packets */#define LONG_HDR 3/* FIXME: Should this one be defined here? */#define SHORT_PAYLOAD_SIZE 127/* Used for setting the EA field in different packets, really neccessary? */#define EA 1/* Yes the FCS size is only one byte */#define FCS_SIZE 1#define RFCOMM_MAX_HDR_SIZE 5#define MAX_CREDITS   30#define START_CREDITS 7#define MIN_CREDITS   6#define DEF_RFCOMM_MTU 127/* The values in the control field when sending ordinary rfcomm packets */#define SABM 0x2f	/* set asynchronous balanced mode */#define UA   0x63	/* unnumbered acknolodgement */#define DM   0x0f	/* disconnected mode */#define DISC 0x43	/* disconnect */#define UIH  0xef	/* unnumbered information with header check (only) */#define UI   0x03	/* unnumbered information (with all data check) */#define SABM_SIZE 4#define UA_SIZE   4/* The values in the type field in a multiplexer command packet */#define PN    (0x80 >> 2)	/* parameter negotiation */#define PSC   (0x40 >> 2)	/* power saving control */#define CLD   (0xc0 >> 2)	/* close down */#define TEST  (0x20 >> 2)	/* test */#define FCON  (0xa0 >> 2)	/* flow control on */#define FCOFF (0x60 >> 2)	/* flow control off */#define MSC   (0xe0 >> 2)	/* modem status command */#define NSC   (0x10 >> 2)	/* not supported command response */#define RPN   (0x90 >> 2)	/* remote port negotiation */#define RLS   (0x50 >> 2)	/* remote line status */#define SNC   (0xd0 >> 2)	/* service negotiation command *//* Define of some V.24 signals modem control signals in RFCOMM */#define DV  0x80	/* data valid */#define IC  0x40	/* incoming call */#define RTR 0x08	/* ready to receive */#define RTC 0x04	/* ready to communicate */#define FC  0x02	/* flow control (unable to accept frames) */#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 */#if __BYTE_ORDER == __LITTLE_ENDIANtypedef struct parameter_mask {	uint8_t bit_rate:1;	uint8_t data_bits:1;	uint8_t stop_bit:1;	uint8_t parity:1;	uint8_t parity_type:1;	uint8_t xon:1;	uint8_t xoff:1;	uint8_t res1:1;	uint8_t xon_input:1;	uint8_t xon_output:1;	uint8_t rtr_input:1;	uint8_t rtr_output:1;	uint8_t rtc_input:1;	uint8_t rtc_output:1;	uint8_t res2:2;} __attribute__ ((packed)) parameter_mask;typedef struct rpn_values {	uint8_t bit_rate;	uint8_t data_bits:2;	uint8_t stop_bit:1;	uint8_t parity:1;	uint8_t parity_type:2;	uint8_t res1:2;	uint8_t xon_input:1;	uint8_t xon_output:1;	uint8_t rtr_input:1;	uint8_t rtr_output:1;	uint8_t rtc_input:1;	uint8_t rtc_output:1;	uint8_t res2:2;	uint8_t xon;	uint8_t xoff;	uint16_t pm;	//parameter_mask pm;} __attribute__ ((packed)) rpn_values;#elif __BYTE_ORDER == __BIG_ENDIANtypedef struct parameter_mask {	uint8_t res1:1;	uint8_t xoff:1;	uint8_t xon:1;	uint8_t parity_type:1;	uint8_t parity:1;	uint8_t stop_bit:1;	uint8_t data_bits:1;	uint8_t bit_rate:1;	uint8_t res2:2;	uint8_t rtc_output:1;	uint8_t rtc_input:1;	uint8_t rtr_output:1;	uint8_t rtr_input:1;	uint8_t xon_output:1;	uint8_t xon_input:1;} __attribute__ ((packed)) parameter_mask;typedef struct rpn_values {	uint8_t bit_rate;	uint8_t res1:2;	uint8_t parity_type:2;	uint8_t parity:1;	uint8_t stop_bit:1;	uint8_t data_bits:2;	uint8_t res2:2;	uint8_t rtc_output:1;	uint8_t rtc_input:1;	uint8_t rtr_output:1;	uint8_t rtr_input:1;	uint8_t xon_output:1;	uint8_t xon_input:1;	uint8_t xon;	uint8_t xoff;	uint16_t pm;	//parameter_mask pm;} __attribute__ ((packed)) rpn_values;#else#error "Unknown byte order"#endif/* Typedefinitions of stuctures used for creating and parsing packets, for a * further description of the structures please se the bluetooth core * specification part F:1 and the ETSI TS 07.10 specification  */#if __BYTE_ORDER == __LITTLE_ENDIANtypedef struct address_field {	uint8_t ea:1;	uint8_t cr:1;	uint8_t d:1;	uint8_t server_chn:5;} __attribute__ ((packed)) address_field;typedef struct short_length {	uint8_t ea:1;	uint8_t len:7;} __attribute__ ((packed)) short_length;typedef union long_length {	struct bits {		uint8_t ea:1;		unsigned short len:15;	} __attribute__ ((packed)) bits ;	uint16_t val ;} __attribute__ ((packed)) long_length;typedef struct short_frame_head {	address_field addr;	uint8_t control;	short_length length;} __attribute__ ((packed)) short_frame_head;typedef struct short_frame {	short_frame_head h;	uint8_t data[0]; } __attribute__ ((packed)) short_frame;typedef struct long_frame_head {	address_field addr;	uint8_t control;	long_length length;	uint8_t data[0];} __attribute__ ((packed)) long_frame_head;typedef struct long_frame {	long_frame_head h;	uint8_t data[0];} __attribute__ ((packed)) long_frame;/* Typedefinitions for structures used for the multiplexer commands */typedef struct mcc_type {	uint8_t ea:1;	uint8_t cr:1;	uint8_t type:6;} __attribute__ ((packed)) mcc_type;typedef struct mcc_short_frame_head {	mcc_type type;	short_length length;	uint8_t value[0];} __attribute__ ((packed)) mcc_short_frame_head;typedef struct mcc_short_frame {	mcc_short_frame_head h;	uint8_t value[0];} __attribute__ ((packed)) mcc_short_frame;typedef struct mcc_long_frame_head {	mcc_type type;	long_length length;	uint8_t value[0];} __attribute__ ((packed)) mcc_long_frame_head;typedef struct mcc_long_frame {	mcc_long_frame_head h;	uint8_t value[0];} __attribute__ ((packed)) mcc_long_frame;/* MSC-command */typedef struct v24_signals {	uint8_t ea:1;	uint8_t fc:1;	uint8_t rtc:1;	uint8_t rtr:1;	uint8_t reserved:2;	uint8_t ic:1;	uint8_t dv:1;} __attribute__ ((packed)) v24_signals;typedef struct break_signals {	uint8_t ea:1;	uint8_t b1:1;	uint8_t b2:1;	uint8_t b3:1;	uint8_t len:4;} __attribute__ ((packed)) break_signals;typedef struct msc_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	address_field dlci;	v24_signals v24_sigs;	//break_signals break_sigs;	uint8_t fcs;} __attribute__ ((packed)) msc_msg;typedef struct rpn_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	address_field dlci;	rpn_values rpn_val;	uint8_t fcs;} __attribute__ ((packed)) rpn_msg;/* RLS-command */  typedef struct rls_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	address_field dlci;	uint8_t error:4;	uint8_t res:4;	uint8_t fcs;} __attribute__ ((packed)) rls_msg;/* PN-command */typedef struct pn_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;/* The res1, res2 and res3 values have to be set to 0 by the sender */	uint8_t dlci:6;	uint8_t res1:2;	uint8_t frame_type:4;	uint8_t credit_flow:4;	uint8_t prior:6;	uint8_t res2:2;	uint8_t ack_timer;	uint16_t frame_size:16;	uint8_t max_nbrof_retrans;	uint8_t credits;	uint8_t fcs;} __attribute__ ((packed)) pn_msg;/* NSC-command */typedef struct nsc_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	mcc_type command_type;	uint8_t fcs;} __attribute__ ((packed)) nsc_msg;#elif __BYTE_ORDER == __BIG_ENDIANtypedef struct address_field {	uint8_t server_chn:5;	uint8_t d:1;	uint8_t cr:1;	uint8_t ea:1;} __attribute__ ((packed)) address_field;typedef struct short_length {	uint8_t len:7;	uint8_t ea:1;} __attribute__ ((packed)) short_length;typedef union long_length {	struct bits {		unsigned short len:15;		uint8_t ea:1;	} __attribute__ ((packed)) bits;	uint16_t val;} __attribute__ ((packed)) long_length;typedef struct short_frame_head {	address_field addr;	uint8_t control;	short_length length;} __attribute__ ((packed)) short_frame_head;typedef struct short_frame {	short_frame_head h;	uint8_t data[0];} __attribute__ ((packed)) short_frame;typedef struct long_frame_head {	address_field addr;	uint8_t control;	long_length length;	uint8_t data[0];} __attribute__ ((packed)) long_frame_head;typedef struct long_frame {	long_frame_head h;	uint8_t data[0];} __attribute__ ((packed)) long_frame;typedef struct mcc_type {	uint8_t type:6;	uint8_t cr:1;	uint8_t ea:1;} __attribute__ ((packed)) mcc_type;typedef struct mcc_short_frame_head {	mcc_type type;	short_length length;	uint8_t value[0];} __attribute__ ((packed)) mcc_short_frame_head;typedef struct mcc_short_frame {	mcc_short_frame_head h;	uint8_t value[0];} __attribute__ ((packed)) mcc_short_frame;typedef struct mcc_long_frame_head {	mcc_type type;	long_length length;	uint8_t value[0];} __attribute__ ((packed)) mcc_long_frame_head;typedef struct mcc_long_frame {	mcc_long_frame_head h;	uint8_t value[0];} __attribute__ ((packed)) mcc_long_frame;typedef struct v24_signals {	uint8_t dv:1;	uint8_t ic:1;	uint8_t reserved:2;	uint8_t rtr:1;	uint8_t rtc:1;	uint8_t fc:1;	uint8_t ea:1;} __attribute__ ((packed)) v24_signals;typedef struct break_signals {	uint8_t len:4;	uint8_t b3:1;	uint8_t b2:1;	uint8_t b1:1;	uint8_t ea:1;} __attribute__ ((packed)) break_signals;typedef struct msc_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	address_field dlci;	v24_signals v24_sigs;	//break_signals break_sigs;	uint8_t fcs;} __attribute__ ((packed)) msc_msg;typedef struct rpn_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	address_field dlci;	rpn_values rpn_val;	uint8_t fcs;} __attribute__ ((packed)) rpn_msg;typedef struct rls_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	address_field dlci;	uint8_t res:4;	uint8_t error:4;	uint8_t fcs;} __attribute__ ((packed)) rls_msg;typedef struct pn_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	uint8_t res1:2;	uint8_t dlci:6;	uint8_t credit_flow:4;	uint8_t frame_type:4;	uint8_t res2:2;	uint8_t prior:6;	uint8_t ack_timer;	uint16_t frame_size:16;	uint8_t max_nbrof_retrans;	uint8_t credits;	uint8_t fcs;} __attribute__ ((packed)) pn_msg;typedef struct nsc_msg {	short_frame_head s_head;	mcc_short_frame_head mcc_s_head;	mcc_type command_type;	uint8_t fcs;} __attribute__ ((packed)) nsc_msg;#else#error "Unknown byte order"#error Processor endianness unknown!#endif#endif /* __RFCOMM_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久综合| 91精品国产aⅴ一区二区| 国产精品盗摄一区二区三区| 成人午夜电影网站| 综合久久久久久| 91蝌蚪porny九色| 亚洲一区二区三区免费视频| 欧美精品自拍偷拍| 久久狠狠亚洲综合| 欧美韩国日本不卡| 欧美三级视频在线| 久久精品国内一区二区三区| 久久久国产精华| 在线一区二区三区四区| 蜜臀精品久久久久久蜜臀| 久久久99久久精品欧美| 91日韩在线专区| 日本不卡高清视频| 欧美经典一区二区| 欧美在线不卡一区| 精品一区二区av| 曰韩精品一区二区| 精品乱人伦小说| 91麻豆蜜桃一区二区三区| 日韩激情中文字幕| 欧美国产激情一区二区三区蜜月| 91高清视频免费看| 久久99精品久久久| 亚洲精品日日夜夜| 精品国产一区久久| 欧美亚洲综合另类| 成人精品视频一区二区三区 | 国产精品二区一区二区aⅴ污介绍| 91黄色免费版| 国产v综合v亚洲欧| 日韩中文字幕91| 中文字幕欧美一| 91精品福利在线一区二区三区 | 欧美一区二区三级| 成人av资源下载| 日本不卡不码高清免费观看| 日韩毛片视频在线看| 精品噜噜噜噜久久久久久久久试看 | 欧美日韩亚洲综合一区二区三区| 九九视频精品免费| 一级做a爱片久久| 亚洲国产精品v| 久久美女高清视频| 91 com成人网| 欧美午夜在线观看| 99久久99久久综合| 国产suv精品一区二区6| 美国欧美日韩国产在线播放| 午夜不卡av在线| 亚洲综合图片区| 国产精品不卡视频| 国产三级精品三级| 久久久久久久综合色一本| 日韩丝袜情趣美女图片| 欧美日韩一级视频| 日本伦理一区二区| 91网站在线观看视频| 成人综合婷婷国产精品久久蜜臀| 久久精品国产99国产| 青青草国产成人99久久| 亚洲va国产天堂va久久en| 亚洲免费av高清| 亚洲视频在线观看三级| 国产精品久久久爽爽爽麻豆色哟哟| 久久综合久久99| 精品成人私密视频| 久久婷婷一区二区三区| 精品国产凹凸成av人网站| 精品久久久影院| 26uuu另类欧美亚洲曰本| 亚洲精品一区二区三区蜜桃下载| 精品对白一区国产伦| 久久综合久久99| 欧美激情一区二区三区四区| 国产欧美日韩久久| 国产精品毛片a∨一区二区三区| 国产色一区二区| 亚洲欧洲av在线| 亚洲精品欧美在线| 亚洲一区二区三区在线播放| 性做久久久久久久免费看| 日韩电影免费一区| 精品一区二区三区视频| 国产美女精品在线| 波多野结衣在线aⅴ中文字幕不卡| 国产91精品久久久久久久网曝门| 成人黄色在线看| 色欧美乱欧美15图片| 欧美亚洲尤物久久| 日韩精品最新网址| 国产精品嫩草久久久久| 亚洲免费资源在线播放| 午夜精品一区二区三区免费视频| 青青草精品视频| 国产99久久久精品| 91黄色免费版| 26uuu亚洲| 亚洲日本在线a| 日本麻豆一区二区三区视频| 国产91精品在线观看| 欧美视频第二页| 国产亚洲一区二区三区| 亚洲精品成人在线| 国内不卡的二区三区中文字幕| av在线不卡网| 欧美一区三区二区| 中文字幕精品一区二区精品绿巨人 | 午夜精品久久久久久久蜜桃app| 美女视频免费一区| 北条麻妃国产九九精品视频| 欧美色网一区二区| 中文字幕乱码久久午夜不卡 | 亚洲成人免费视频| 国内成人免费视频| 欧美色精品在线视频| 国产亚洲综合在线| 亚洲国产精品久久人人爱| 国产美女视频91| 欧美日韩国产首页| 国产精品无圣光一区二区| 婷婷开心激情综合| 99riav久久精品riav| 欧美刺激午夜性久久久久久久| 亚洲欧美国产毛片在线| 国内久久婷婷综合| 欧美日韩亚洲综合一区 | 国产亲近乱来精品视频| 亚洲国产精品久久久男人的天堂 | 狠狠色综合色综合网络| 欧美午夜精品久久久久久超碰| 国产日韩在线不卡| 精品午夜一区二区三区在线观看| 在线观看av一区二区| 国产精品麻豆一区二区| 国产麻豆精品在线| 日韩一级高清毛片| 亚洲国产综合91精品麻豆| 波多野结衣在线一区| 久久一日本道色综合| 男女男精品网站| 欧美日韩夫妻久久| 一区二区三区蜜桃网| 不卡av在线网| 国产精品沙发午睡系列990531| 国精产品一区一区三区mba视频| 欧美日韩国产一区二区三区地区| 亚洲图片你懂的| 不卡影院免费观看| 中文字幕精品综合| 成人看片黄a免费看在线| 久久久三级国产网站| 九九精品视频在线看| 5858s免费视频成人| 五月婷婷综合网| 欧美视频自拍偷拍| 日韩制服丝袜先锋影音| 4438x成人网最大色成网站| 午夜精品aaa| 日韩欧美国产午夜精品| 日本不卡视频在线观看| 欧美刺激脚交jootjob| 久久综合综合久久综合| 久久日韩粉嫩一区二区三区 | 日日夜夜免费精品视频| 欧美久久一二区| 日韩成人一级大片| 欧美大片日本大片免费观看| 久久国产精品99久久久久久老狼| 日韩欧美成人一区二区| 精品亚洲成av人在线观看| 久久久精品一品道一区| 国产99精品视频| 中文字幕一区二区在线观看| 91视频一区二区| 亚洲精品成人精品456| 欧美日本一区二区三区| 偷窥少妇高潮呻吟av久久免费| 日韩一级片在线播放| 狠狠色狠狠色合久久伊人| 日本一区二区成人在线| 91香蕉视频污| 青青草国产精品97视觉盛宴| 久久精品夜色噜噜亚洲a∨| 成人a免费在线看| 亚洲成av人片一区二区| 日韩欧美一区中文| 成人一级黄色片| 亚洲一区二区三区在线看| 欧美一级在线视频| 成人亚洲一区二区一| 亚洲国产视频在线| 精品国产一区二区三区久久影院| 不卡的电影网站| 日韩成人一区二区| 国产精品久久久久婷婷|