⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 device.idl

📁 嵌入式系统开发 TOPPERS and JSP Kernel Release 1.3 TOPPERS = Toyohashi Open Platform for Embedded Real-Tim
💻 IDL
字号:
/* *  TOPPERS/JSP Kernel *      Toyohashi Open Platform for Embedded Real-Time Systems/ *      Just Standard Profile Kernel *  *  Copyright (C) 2000-2002 by Embedded and Real-Time Systems Laboratory *                              Toyohashi Univ. of Technology, JAPAN *  *  惧淡螟侯涪荚は·Free Software Foundation によって给山されている  *  GNU General Public License の Version 2 に淡揭されている掘凤か·笆 *  布の(1)×(4)の掘凤を塔たす眷圭に嘎り·塑ソフトウェア∈塑ソフトウェ *  アを猖恃したものを崔むˉ笆布票じ∷を蝗脱ˇ剩澜ˇ猖恃ˇ浩芹邵∈笆布· *  网脱と钙ぶ∷することを痰浸で钓满するˉ *  (1) 塑ソフトウェアをソ〖スコ〖ドの妨で网脱する眷圭には·惧淡の螟侯 *      涪山绩·この网脱掘凤および布淡の痰瘦沮惮年が·そのままの妨でソ〖 *      スコ〖ド面に崔まれていることˉ *  (2) 塑ソフトウェアを浩网脱材墙なバイナリコ〖ド∈リロケ〖タブルオブ *      ジェクトファイルやライブラリなど∷の妨で网脱する眷圭には·网脱 *      に燃うドキュメント∈网脱荚マニュアルなど∷に·惧淡の螟侯涪山绩· *      この网脱掘凤および布淡の痰瘦沮惮年を非很することˉ *  (3) 塑ソフトウェアを浩网脱稍材墙なバイナリコ〖ドの妨または怠达に寥 *      み哈んだ妨で网脱する眷圭には·肌のいずれかの掘凤を塔たすことˉ *    (a) 网脱に燃うドキュメント∈网脱荚マニュアルなど∷に·惧淡の螟侯 *        涪山绩·この网脱掘凤および布淡の痰瘦沮惮年を非很することˉ *    (b) 网脱の妨轮を·侍に年める数恕によって·惧淡螟侯涪荚に鼠桂する *        ことˉ *  (4) 塑ソフトウェアの网脱により木儡弄または粗儡弄に栏じるいかなる禄 *      巢からも·惧淡螟侯涪荚を倘勒することˉ *  *  塑ソフトウェアは·痰瘦沮で捏丁されているものであるˉ惧淡螟侯涪荚は· *  塑ソフトウェアに簇して·その努脱材墙拉も崔めて·いかなる瘦沮も乖わ *  ないˉまた·塑ソフトウェアの网脱により木儡弄または粗儡弄に栏じたい *  かなる禄巢に簇しても·その勒扦を砷わないˉ *  *  @(#) $Id: device.idl,v 1.2 2002/04/10 11:26:20 takayuki Exp $ */import "oaidl.idl";import "ocidl.idl";#include "olectl.h"		[		object,		uuid(6998EBB2-678E-4891-8BD0-C34F165488AC),		dual,		helpstring("IDeviceControl Interface"),		pointer_default(unique)	]	interface IDeviceControl : IDispatch	{		[id(1), helpstring("Make a connection with the device manager")] HRESULT Connect();		[id(2), helpstring("Disconnect a device manager")] HRESULT Close();		[propget, id(3), helpstring("Turn true if this device is enabled")] HRESULT Valid([out, retval] BOOL *pVal);		[id(4), helpstring("Make a interrupt request to the kernel")] HRESULT RaiseInterrupt([in]long inhno);		[id(5), helpstring("Make a address mapping on the manager")] HRESULT Map([in]long address,[in]long size);		[id(6), helpstring("Release a address mapping on the manager")] HRESULT Unmap([in]long address);		[propget, id(7), helpstring("Turn true if the kernel is running")] HRESULT IsKernelStarted([out, retval] BOOL *pVal);		[propget, id(8), helpstring("Internal Buffer offset")] HRESULT Offset([out, retval] long *pVal);		[propput, id(8), helpstring("Internal Buffer offset")] HRESULT Offset([in] long newVal);		[propget, id(9), helpstring("Access Width of Internal Buffer")] HRESULT AccessSize([out, retval] short *pVal);		[propput, id(9), helpstring("Access width of internal buffer")] HRESULT AccessSize([in] short newVal);		[propget, id(10), helpstring("Value of current scope of internal buffer")] HRESULT Value([out, retval] long *pVal);		[propput, id(10), helpstring("Value of current scope of internal buffer")] HRESULT Value([in] long newVal);	};[	uuid(194B359F-594E-4EE4-A804-84723D1CF1C4),	version(1.0),	helpstring("TOPPERS/JSP on Windows Device Component Type Library")]library ATLDEVICELib{	importlib("stdole32.tlb");	importlib("stdole2.tlb");	[		uuid(49253060-4210-43A1-8EA2-3A97587C89B9),		helpstring("_IDeviceControlEvents Interface")	]	dispinterface _IDeviceControlEvents	{		properties:		methods:		[id(1), helpstring("Read event notification")] HRESULT OnRead([in] long address, [in] long sz);		[id(2), helpstring("Write event notification")] HRESULT OnWrite([in] long address, [in] long sz);		[id(3), helpstring("Kernel start notification")] HRESULT OnKernelStart();		[id(4), helpstring("Kernel completion notification")] HRESULT OnKernelExit();	};	[		uuid(D6626115-E35B-4B38-BC65-3E59D5535AD4),		helpstring("DeviceControl Class")	]	coclass DeviceControl	{		[default] interface IDeviceControl;		[default, source] dispinterface _IDeviceControlEvents;	};};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -