home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / msdos / ddjmag / ddj8910.arc / SMITH2.ARC / COMMN.H < prev    next >
Text File  |  1989-04-27  |  1KB  |  33 lines

  1. #define PORT  2              /* currently a define 12/16/88 */
  2. #define NAMESIZE   24        /* Used by xmsend and recv */
  3. #define TXTRIES     5        /* Transmit retries */
  4. #define RXTRIES    10        /* Receive retries */
  5.  
  6. /* Parameters to pass to Send Action Make_Pkt and Recv Action Frame_Wait */
  7. #define RESEND      0
  8. #define INIT        1
  9. #define NEXT        2
  10.  
  11. /*  The following declaration is used to pass config info to Config_Comm().  */
  12. typedef struct {     /* Map to UART Line Control bits */
  13.         unsigned wlen      : 2;       /* Word length - 5 */
  14.         unsigned two_stops : 1;       /* 1: Two stops,   0: One stop */
  15.         unsigned parity    : 2;       /* 00, 01: NONE, 10 ODD, 11 EVEN */
  16.         unsigned p_stuck   : 1;       /* 1: Stuck,       0: Normal */
  17.         unsigned set_break : 1;       /* 1: Send break   0: Stop break */
  18.         unsigned div_latch : 1;       /* 1: See divisors 0: See data bytes */
  19.         unsigned           : 8;
  20.       } L_CTRL;
  21.  
  22.   typedef union {
  23.         unsigned char lctrl;
  24.         L_CTRL lbits;
  25.       } U_BITS;
  26.  
  27.   typedef struct
  28.     {
  29.       unsigned speed;       /* value from atoi() of value from speed array */
  30.       U_BITS ubits;
  31.     } S_INIT;
  32.  
  33.