> struct termios TtyAttr;
> struct termios BackupTtyAttr;
>
> CommFd = open("/dev/ttyS0", O_RDWR, 0);
>
> memset(&TtyAttr, 0, sizeof(struct termios));
> TtyAttr.c_iflag = IGNPAR;
> TtyAttr.c_cflag = DeviceSpeed | HUPCL | ByteBits | CREAD | CLOCAL;
> TtyAttr.c_cc[VMIN] = 1;
>
> TtyFd = open("/dev/tty", O_RDWR | O_NDELAY, 0);
>
> TtyAttr.c_cflag = TtySpeed | HUPCL | ByteBits | CREAD | CLOCAL;
>
> tcsetattr(TtyFd, TCSANOW,&TtyAttr)
>
> Will you please be so kind as to direct me or guide me to the relevant
> literature.

Peeking at the code, a first start should be "man tcsetattr". It will guide you to the relevant headers and provide you with link to further manual articles. Please note that depending on your development machines linux distribution, you might need to install the development section of the man pages. (manpages-dev package on debianoids, don't know for others.)

Greetz Sepp

Dipl-Ing. (FH) J. Holzmayr
Entwicklung Embedded Devices / Software

Telefon: (08444) 9204-48
Telefax: (08444) 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
85301 Schweitenkirchen
Germany



Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548



--
ptxdist mailing list
[email protected]

Reply via email to