forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IN and OUT Commands in FTN77

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
ludbrook



Joined: 08 Sep 2005
Posts: 1

PostPosted: Thu Sep 08, 2005 3:16 am    Post subject: IN and OUT Commands in FTN77 Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6466
Location: Salford, UK

PostPosted: Fri Sep 09, 2005 2:19 am    Post subject: IN and OUT Commands in FTN77 Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group