source: anotherchoice/tags/jsp-1.4.4-full-UTF8/windev/devicecontrol/device.idl@ 26

Last change on this file since 26 was 26, checked in by ykominami, 12 years ago

initial

File size: 5.5 KB
Line 
1/*
2 * TOPPERS/JSP Kernel
3 * Toyohashi Open Platform for Embedded Real-Time Systems/
4 * Just Standard Profile Kernel
5 *
6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
7 * Toyohashi Univ. of Technology, JAPAN
8 *
9 * 上記著作権者
10は,以下の (1)〜(4) の条件か,Free Software Foundation
11 * によってå…
12¬è¡¨ã•ã‚Œã¦ã„ã‚‹ GNU General Public License の Version 2 に記
13 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
14 * を改変したものを含む.以下同じ)を使用・複製・改変・再é…
15å¸ƒï¼ˆä»¥ä¸‹ï¼Œ
16 * 利用と呼ぶ)することを無償で許諾する.
17 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
18 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
19 * スコード中に含まれていること.
20 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
21 * 用できる形で再é…
22å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œå†é…
23å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨
24 * 者
25マニュアルなど)に,上記の著作権表示,この利用条件および下記
26 * の無保証規定を掲載すること.
27 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
28 * 用できない形で再é…
29å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œæ¬¡ã®ã„ずれかの条件を満たすこ
30 * と.
31 * (a) 再é…
32å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨è€…
33マニュアルなど)に,上記の著
34 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
35 * (b) 再é…
36å¸ƒã®å½¢æ…
37‹ã‚’,別に定める方法によって,TOPPERSプロジェクトに
38 * 報告すること.
39 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
40 * 害からも,上記著作権者
41およびTOPPERSプロジェクトをå…
42è²¬ã™ã‚‹ã“と.
43 *
44 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者
45お
46 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
47 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
48 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
49 *
50 * @(#) $Id: device.idl,v 1.4 2003/12/20 09:19:59 takayuki Exp $
51 */
52
53import "oaidl.idl";
54import "ocidl.idl";
55#include "olectl.h"
56
57
58 [
59 object,
60 uuid(6998EBB2-678E-4891-8BD0-C34F165488AC),
61 dual,
62 helpstring("IDeviceControl Interface"),
63 pointer_default(unique)
64 ]
65 interface IDeviceControl : IDispatch
66 {
67 [id(1), helpstring("Make a connection with the device manager")] HRESULT Connect();
68 [id(2), helpstring("Disconnect a device manager")] HRESULT Close();
69 [propget, id(3), helpstring("Turn true if this device is enabled")] HRESULT Valid([out, retval] BOOL *pVal);
70 [id(4), helpstring("Make a interrupt request to the kernel")] HRESULT RaiseInterrupt([in]long inhno);
71 [id(5), helpstring("Make a address mapping on the manager")] HRESULT Map([in]long address,[in]long size);
72 [id(6), helpstring("Release a address mapping on the manager")] HRESULT Unmap([in]long address);
73 [propget, id(7), helpstring("Turn true if the kernel is running")] HRESULT IsKernelStarted([out, retval] BOOL *pVal);
74 [propget, id(8), helpstring("Internal Buffer offset")] HRESULT Offset([out, retval] long *pVal);
75 [propput, id(8), helpstring("Internal Buffer offset")] HRESULT Offset([in] long newVal);
76 [propget, id(9), helpstring("Access Width of Internal Buffer")] HRESULT AccessSize([out, retval] short *pVal);
77 [propput, id(9), helpstring("Access width of internal buffer")] HRESULT AccessSize([in] short newVal);
78 [propget, id(10), helpstring("Value of current scope of internal buffer")] HRESULT Value([out, retval] long *pVal);
79 [propput, id(10), helpstring("Value of current scope of internal buffer")] HRESULT Value([in] long newVal);
80 [propget, id(11), helpstring("プロパティDeviceName")] HRESULT DeviceName([out, retval] BSTR* pVal);
81 [propput, id(11), helpstring("プロパティDeviceName")] HRESULT DeviceName([in] BSTR newVal);
82 };
83
84[
85 uuid(194B359F-594E-4EE4-A804-84723D1CF1C4),
86 version(1.0),
87 helpstring("TOPPERS/JSP on Windows Device Component Type Library")
88]
89library ATLDEVICELib
90{
91 importlib("stdole32.tlb");
92 importlib("stdole2.tlb");
93
94 [
95 uuid(49253060-4210-43A1-8EA2-3A97587C89B9),
96 helpstring("_IDeviceControlEvents Interface")
97 ]
98 dispinterface _IDeviceControlEvents
99 {
100 properties:
101 methods:
102 [id(1), helpstring("Read event notification")] HRESULT OnRead([in] long address, [in] long sz);
103 [id(2), helpstring("Write event notification")] HRESULT OnWrite([in] long address, [in] long sz);
104 [id(3), helpstring("Kernel start notification")] HRESULT OnKernelStart();
105 [id(4), helpstring("Kernel completion notification")] HRESULT OnKernelExit();
106 };
107
108 [
109 uuid(D6626115-E35B-4B38-BC65-3E59D5535AD4),
110 helpstring("DeviceControl Class")
111 ]
112 coclass DeviceControl
113 {
114 [default] interface IDeviceControl;
115 [default, source] dispinterface _IDeviceControlEvents;
116 };
117};
Note: See TracBrowser for help on using the repository browser.