View previous topic :: View next topic |
Author |
Message |
ludbrook
Joined: 08 Sep 2005 Posts: 1
|
Posted: Thu Sep 08, 2005 3:16 am Post subject: IN and OUT Commands in FTN77 |
|
|
Please could you advise me on the following problem:
I am using FTN77 (Version 3.55 - very old I know) under Windows 98 and wish
to control a PCI card using the IN and OUT commands in FTN77.
The card is a PCIDCC5 counter card from KONTRON and some sample code for
controlling and reading the card is provided e.g
to set various registers on the card
OUT Baseadd+1, hexadecimal number
and to read
Counter2 = INP(Baseadd)
The software I have written will not compile with the IN OUT commands –
everything else is valid and compiles and runs properly.
Please could you advise if the IN OUT format is correct and if their use in this
context is valid. The baseaddress of the card seems to be OK
Many thanks
Geoff Ludbrook
geoff@ludbrook400.fsnet.co.uk
G Ludbrook |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Fri Sep 09, 2005 2:19 am Post subject: IN and OUT Commands in FTN77 |
|
|
As far as I can recall there were routines called IN@ and OUT@ under DBOS but these were not ported to Win32.
If your FTN77 is the Win32 version then IN@ and OUT@ will not be available.
The alternative Win32 Salford routines are called READCOMMDEVICE@ etc.
These are documented in the FTN95 documentation.
I cannot recall if they are in the FTN77 documentation but they are located in salflibc.dll so they should also work with FTN77 (Win32).
Failing this, you can communicate using the Windows API if you have the time and patience. |
|
Back to top |
|
|
|