AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Comparing functions

Ein Thema von Razor · begonnen am 28. Aug 2007 · letzter Beitrag vom 8. Nov 2007
Antwort Antwort
Seite 2 von 9     12 34     Letzte »    
Razor
(Gast)

n/a Beiträge
 
#11

Re: Comparing functions

  Alt 29. Aug 2007, 16:07
Maybe someone can write an example how to use PortIO (getpcrd,setpcrd) with omcdrv (GetPCIRDWord,SetPCIRDWord).

I dont understand what Muetze ment.
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)

Registriert seit: 25. Jun 2002
Ort: Hausach
7.611 Beiträge
 
#12

Re: Comparing functions

  Alt 29. Aug 2007, 16:20
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.
Sebastian Gingter
Phoenix - 不死鳥, Microsoft MVP, Rettungshundeführer
Über mich: Sebastian Gingter @ Thinktecture Mein Blog: https://gingter.org
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#13

Re: Comparing functions

  Alt 29. Aug 2007, 16:22
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?


As i said an example would be perfect just how to make this compilable


omcdrv.GetPCIRDWord(0,24,$03,$E4,pdata);
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#14

Re: Comparing functions

  Alt 29. Aug 2007, 16:31
Zitat von Phoenix:
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.
Ups, sorry. Phoenix is right - the word was wrong - decide is what i mean.

Zitat von Razor:
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?
Yes, we all understand this. And I said you have to decide which one you want to use and then transform all your code using the other driver to use the new selected one. So, do you get it?

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...
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#15

Re: Comparing functions

  Alt 29. Aug 2007, 16:34
[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...
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#16

Re: Comparing functions

  Alt 29. Aug 2007, 16:39
Delphi-Quellcode:
procedure GetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; var pdata: Cardinal);
function GetPCRD(Bus, Dev, Func, Reg : byte): dword;
dwBus = Bus
dwDev = Dev
dwFunc = Func
offs = Reg div 4
pData = result

Delphi-Quellcode:
procedure SetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; pdata: Cardinal);
procedure SetPCRD(Bus, Dev, Func, Reg : byte; value : dword);
dwBus = Bus
dwDev = Dev
dwFunc = Func
offs = Reg div 4
pData = value
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#17

Re: Comparing functions

  Alt 29. Aug 2007, 17:02
Zitat von Muetze1:
Delphi-Quellcode:
procedure GetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; var pdata: Cardinal);
function GetPCRD(Bus, Dev, Func, Reg : byte): dword;
dwBus = Bus
dwDev = Dev
dwFunc = Func
offs = Reg div 4
pData = result

Delphi-Quellcode:
procedure SetPCIRDWord(dwBus, dwDev, dwFunc, offs: byte; pdata: Cardinal);
procedure SetPCRD(Bus, Dev, Func, Reg : byte; value : dword);
dwBus = Bus
dwDev = Dev
dwFunc = Func
offs = Reg div 4
pData = value
Well so it goes like this then

Delphi-Quellcode:
var
pdata:cardinal;
begin
GetPCIRDWord(0,24,$03,$E4,pdata)
form1.caption:=pdata //???
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#18

Re: Comparing functions

  Alt 29. Aug 2007, 17:44
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.
  Mit Zitat antworten Zitat
Razor
(Gast)

n/a Beiträge
 
#19

Re: Comparing functions

  Alt 29. Aug 2007, 18:50
I don't know what i am doing wrong

http://img172.imagevenue.com/img.php..._122_419lo.JPG
  Mit Zitat antworten Zitat
Muetze1
(Gast)

n/a Beiträge
 
#20

Re: Comparing functions

  Alt 29. Aug 2007, 19:46
http://www.elists.org/pipermail/delp...il/026837.html

other search result says clear all DCU's and build again
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 9     12 34     Letzte »    


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:59 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz