![]() |
Re: Comparing functions
Maybe someone can write an example how to use PortIO (getpcrd,setpcrd) with omcdrv (GetPCIRDWord,SetPCIRDWord).
I dont understand what Muetze ment. |
Re: Comparing functions
What did we say about double-posting?
You're doing it again, so take this (again) as a warning to NOT double post. Muetze confused a word. He did not mean device but decide. You have to decide what driver is needed to be called and then you have to call the function of the correct driver. |
Re: Comparing functions
He said both offer same functionality so i have to decide wich one to use but its impossible to use 2 becouse i get BSOD(BLUE SCREEN OF DEATH)if i use it,get it? :zwinker:
As i said an example would be perfect just how to make this compilable omcdrv.GetPCIRDWord(0,24,$03,$E4,pdata); |
Re: Comparing functions
Zitat:
Zitat:
That you can't use both is completly logical and so you have to decide which one to use. So decide and then change the sources to use onyl the selected one... |
Re: Comparing functions
[delphi]Alright alright and thanks buuut
[pre]procedure GetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; var pdata: Cardinal); procedure SetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; pdata: Cardinal); omcdrv.GetPCIRDWord(0,24,$03,$E4,pdata); [/pre] [pre]var dwresult:dword; function GetPCRD(Bus, Dev, Func, Reg : byte): dword; procedure SetPCRD(Bus, Dev, Func, Reg : byte; value : dword); dwResult:=GetPCRD(0,24,$03,$E4); [/pre] Now how in heaven can i change this this arent theh same functions... |
Re: Comparing functions
Delphi-Quellcode:
dwBus = Bus
procedure GetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; var pdata: Cardinal);
function GetPCRD(Bus, Dev, Func, Reg : byte): dword; dwDev = Dev dwFunc = Func offs = Reg div 4 pData = result
Delphi-Quellcode:
dwBus = Bus
procedure SetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; pdata: Cardinal);
procedure SetPCRD(Bus, Dev, Func, Reg : byte; value : dword); dwDev = Dev dwFunc = Func offs = Reg div 4 pData = value |
Re: Comparing functions
Zitat:
Delphi-Quellcode:
var
pdata:cardinal; begin GetPCIRDWord(0,24,$03,$E4,pdata) form1.caption:=pdata //??? |
Re: Comparing functions
Basicly it is ok so, but I think you have to divide the given offset by four. The code is ok, but the line with the question-marks are Delphi basics and not hw specific.
|
Re: Comparing functions
|
Re: Comparing functions
![]() other search result says clear all DCU's and build again |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:11 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz