Moxa-technologies INTELLIO C218 Bedienungsanleitung Seite 64

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 93
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 63
4-10 Intellio C218Turbo /PCI User's Manual
Syntax for SCO UNIX/XENIX
#define MLOWATER 0x405
int lowater; /* low water value of output buffer (default = 512 bytes) */
ioctl(moxa_fd, MLOWATER, lowater);
Syntax for UNIX SVR4
#include <sys/stropts.h>
#include <sys/sysmacros.h>
#define MLOWATER 0x405
struct strioctl ioc;
int lowater; /* low water value of output buffer (default = 512 bytes) */
ioc.ic_cmd = MLOWATER;
ioc.ic_timout = 0;
ioc.ic_len = sizeof(int);
ioc.ic_dp = (char *)&lowater;
ioctl(moxa_fd, I_STR, &ioc);
6. MSTATUS
This function is used to know the RS-232 line status (CTS/DSR/DCD).
Syntax for SCO UNIX/XENIX
#define MSTATUS 0x407
int status; /* status = RS-232 line status */
/* bit0
¡ÐCTS (1:on, 0:off) */
/* bit1
¡ÐDSR (1:on, 0:off) */
/* bit2
¡ÐDCD (1:on, 0:off) */
ioctl(moxa_fd, MSTATUS, &status);
Syntax for UNIX SVR4
#define MSTATUS 0x407
#include <sys/stropts.h>
#include <sys/sysmacros.h>
struct strioctl ioc;
int status; /* status = RS-232 line status */
/* bit0
¡ÐCTS (1:on, 0:off) */
/* bit1
¡ÐDSR (1:on, 0:off) */
/* bit2
¡ÐDCD (1:on, 0:off) */
ioc.ic_cmd = MSTATUS;
ioc.ic_timout = 0;
ioc.ic_len = sizeof(int);
ioc.ic_dp = (char *)&status;
ioctl(moxa_fd, I_STR, &ioc);
Seitenansicht 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 92 93

Kommentare zu diesen Handbüchern

Keine Kommentare