To Antonio: outportbyte()

To Antonio: outportbyte()

Postby byte-one » Wed Jul 24, 2013 9:33 am

Antonio, i will use this function for 32 bit. But not functioning. Can you please help me to rewrite for 32 bit? I am using a kernel-driver for direct access to ports.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: To Antonio: outportbyte()

Postby Antonio Linares » Wed Jul 24, 2013 12:22 pm

Günther,

I have no experience in kernel drivers development, I have never seen their source code. Do you have an example ?

Why do you need to be on kernel level ? I found a library that I once suggested to a FWH user:
http://www.zealsoftstudio.com/ntport/
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: To Antonio: outportbyte()

Postby byte-one » Wed Jul 24, 2013 6:51 pm

Antonio, I use this for driving a stepper-motor over the parallel-port.
A source for such kernel-mode-driver you found on:
http://www.highrez.co.uk/downloads/inpout32/default.htm
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: To Antonio: outportbyte()

Postby Antonio Linares » Thu Jul 25, 2013 12:58 pm

Günther,

Do you mean to create the C wrappers for http://www.highrez.co.uk/scripts/download.asp?package=InpOut32C ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: To Antonio: outportbyte()

Postby Antonio Linares » Thu Jul 25, 2013 1:04 pm

You could try

DLL FUNCTION Out32( nPort AS LONG, nValue AS LONG ) AS VOID LIB "InpOut32.DLL"

DLL FUNCTION In32( nPort AS LONG ) AS LONG LIB "InpOut32.DLL"
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42092
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests