source: asp3_tinet_ecnl_rx/trunk/bnep_bridge/src/if_btusb.h@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 3.8 KB
Line 
1/*
2 * TINET (TCP/IP Protocol Stack)
3 *
4 * Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
5 * Tomakomai National College of Technology, JAPAN
6 * Copyright (C) 2014 Cores Co., Ltd. Japan
7 *
8 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ
9 * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
10 * 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
11 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
12 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
13 * スコード中に含まれていること.
14 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
15 * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
16 * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
17 * の無保証規定を掲載すること.
18 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
19 * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ
20 * と.
21 * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
22 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
23 * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに
24 * 報告すること.
25 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
26 * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
27 * また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理
28 * 由に基づく請求からも,上記著作権者およびTOPPERSプロジェクトを
29 * 免責すること.
30 *
31 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
32 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的
33 * に対する適合性も含めて,いかなる保証も行わない.また,本ソフトウェ
34 * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ
35 * の責任を負わない.
36 *
37 * @(#) $Id$
38 */
39
40/*
41 * Copyright (C) 1993, David Greenman. This software may be used, modified,
42 * copied, distributed, and sold, in both source and binary form provided
43 * that the above copyright and these terms are retained. Under no
44 * circumstances is the author responsible for the proper functioning
45 * of this software, nor does the author assume any responsibility
46 * for damages incurred with its use.
47 */
48
49#ifndef _IF_BTUSB_H_
50#define _IF_BTUSB_H_
51
52#if !defined(TOPPERS_MACRO_ONLY) && !defined(_MACRO_ONLY)
53
54/*
55 * 前方参照
56 */
57
58#ifndef T_IF_SOFTC_DEFINED
59
60typedef struct t_if_softc T_IF_SOFTC;
61
62#define T_IF_SOFTC_DEFINED
63
64#endif /* of #ifndef T_IF_SOFTC_DEFINED */
65
66#ifndef T_NET_BUF_DEFINED
67
68typedef struct t_net_buf T_NET_BUF;
69
70#define T_NET_BUF_DEFINED
71
72#endif /* of #ifndef T_NET_BUF_DEFINED */
73
74/*
75 * 関数
76 */
77
78void btusb_watchdog(T_IF_SOFTC *ic);
79void btusb_probe(T_IF_SOFTC *ic);
80void btusb_init(T_IF_SOFTC *ic);
81void btusb_reset(T_IF_SOFTC *ic);
82T_NET_BUF *btusb_read(T_IF_SOFTC *ic);
83int btusb_start(T_IF_SOFTC *ic, T_NET_BUF *output);
84ER btusb_addmulti(T_IF_SOFTC *ic);
85void usb_bt_callback(uint8_t event_type, uint8_t *data, int size);
86
87#endif /* #if !defined(TOPPERS_MACRO_ONLY) && !defined(_MACRO_ONLY) */
88
89#endif /* of #ifndef _IF_BTUSB_H_ */
Note: See TracBrowser for help on using the repository browser.