Moxa Technologies Moxa Smartio C168H Uživatelský manuál Strana 66

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 102
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 65
4-8 Smartio C168H/HS User’s Manual
Syntax for UNIX SVR4.2
#include <sys/stropts.h>
#include <sys/sysmacros.h>
#define MOBUFED 0x402
struct strioctl ioc;
int count; /* number of bytes queued in the output
buffer */
ioc.ic_cmd = MOBUFED;
ioc.ic_timout = 0;
ioc.ic_len = sizeof(int);
ioc.ic_dp = (char *)&count;
ioctl(moxa_fd, I_STR, &ioc);
Note: See MIBUFED for influence of STREAMS driver.
3. MTCRTS
This function, only valid when hardware flow control is turned off (see
MHWFLOW), is used to drive RTS signal on or off.
Syntax for SCO UNIX/OpenServer
#define MTCRTS 0x403
#define TurnON 1
#define TurnOFF 0
ioctl(moxa_fd, MTCRTS, TurnON);
ioctl(moxa_fd, MTCRTS, TurnOFF);
Syntax for UNIX SVR4.2
#include <sys/stropts.h>
#include <sys/sysmacros.h>
#define MTCRTS 0x403
#define TurnON 1
#define TurnOFF 0
struct strioctl ioc;
int setting;
Zobrazit stránku 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 101 102

Komentáře k této Příručce

Žádné komentáře