📄 bt_vendor.h
字号:
/* * bt_vendor.h -- Interface functions towards kernel / userstack * * 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_vendor.h,v 1.12 2001/10/16 15:02:20 pkj Exp $ * */#ifndef __BT_VENDOR_H__#define __BT_VENDOR_H__#include "bt_conf.h" /* * HW init defines */#define MANUFACTURER_SPEC 0x3f#define HW_NOT_PROBED -1#define HW_CSR 0#define HW_DIGIANSWER 1#define HW_ERICSSON 2#define HW_INFINEON 3#define HW_USB 4#define HW_GENERIC 5#define HW_NO_INIT 6#define HW_UNKNOWN 7/* * Vendor specific functions */void init_hw(int bt_cfd, int phys_fd, const char *speedstr);void init_phys(int fd, int flow_control);void init_failed(int bt_cfd, int phys_fd, const char *speedstr, int flow_control);int bt_set_max_power(int bt_cfd, short max_power);int hw_vendor(void);void csr_bcsp_to_h4(int bt_cfd, int phys_fd, const char *speedstr, int flow_control);void csr_h4_to_bcsp(int bt_cfd, int phys_fd, const char *speedstr, int flow_control);void csr_pskey(int bt_cfd, unsigned short ps_key, unsigned short rw_mode, unsigned short *ps_vals, unsigned short n_pars);#endif /* __BT_VENDOR_H__*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -