Question about RS232 interfacing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,

I am new to this list and am not sure if this is the right place to ask this
question. Nonetheless, I am sure that you computer gurus can provide me some
pointers.

What I am trying to do is this:

I have a camera shutter driver that is connected to COM1 port and a camera
image processing unit that is connected to the parallel (printer) port. I am
using a null modem cable between the shutter driver and the COM port, because
the driver supports only RS232 mode of communication. I am interested to
control the driver and the image processing unit by writing a program in a PC
that is used as a controller. The PC has Windows 98 installed in it, and I am
using a Turbo C++ 7.0 compiler.

While compiling the program, I am getting an error in dos.h which states
that the following are wrong:

void _Cdecl setvect (int interruptno, void interrupt (*isr()); -> This says
function definition out of place

void interrupt (*_Cdecl getvect(int interruptno)) (); -> the same error here
as well.

I am using the bioscom command for communicating data over the RS232 Link.

I am not sure what exactly the problem is, though I suspect a compiler
mismatch. Can any one of you please let me know what I could do to rectify this
error? Or perhaps provide me some help (or an alternative link) so that I could
get the program working.

Thanks a lot in advance!

Dip

-- 
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService

Jetzt kostenlos anmelden unter http://www.gmx.net

+++ GMX - die erste Adresse für Mail, Message, More! +++

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux