ZCOM C I/F Library Routines

ZSEND (3X)

#define ZCOM_MSTYPE_RSLT

6

/* Response from local terminal */

#define ZCOM_MSTYPE_RSLP

7

/* Response from local program */

#define ZCOM_MSTYPE____8

8

/* Undefined type */

#define ZCOM_MSTYPE_MSRT

9

/* Remote terminal message */

#define ZCOM_MSTYPE_RPLP

10

/* Remote program to program */

#define ZCOM_MSTYPE_TORZ

11

/* Timer message for remote ZLU */

#define ZCOM_MSTYPE_RPLT

12

/* Remote program to terminal */

#define ZCOM_MSTYPE_RSEM

13

/* Remote system event message */

#define ZCOM_MSTYPE_RSRT

14

/* Response from remote terminal */

#define ZCOM_MSTYPE_RSRP

15

/* Response from remote program */

/* Mask of message response code */

 

#define ZCOM_MSRESP_LPR

0x80

/* Low priority transmit message */

#define ZCOM_MSRESP_XPS

0x40

/* Express transmit message */

#define ZCOM_MSRESP_PGW

0x08

/* Program is waiting for message */

#define ZCOM_MSRESP_BFR

0x04

/* Response with buffer and status */

#define ZCOM_MSRESP_DEF

0x02

/* Definite response */

#define ZCOM_MSRESP_ERR

0x01

/* Response if error */

/*-- ZCOM Message Request Header --*/ typedef struct {

uint8

mrqcode;

/* Request code */

uint8

mrqterm;

/* Terminal no. */

uint8

mrqstat;

/* Request status */

uint8

mrqtag;

/* Tag parameter */

uint16

mrqlen;

/* Data length */

}zmrq_type;

/* Message request code values */ #define ZCOM_MRQCODE_UND #define ZCOM_MRQCODE_READ #define ZCOM_MRQCODE_WRITE #define ZCOM_MRQCODE_CNTWR #define ZCOM_MRQCODE_STDT #define ZCOM_MRQCODE_STATUS #define ZCOM_MRQCODE_TERM #define ZCOM_MRQCODE_ENB #define ZCOM_MRQCODE_DSB #define ZCOM_MRQCODE_ACT #define ZCOM_MRQCODE_DEA #define ZCOM_MRQCODE_DEL #define ZCOM_MRQCODE_PORT #define ZCOM_MRQCODE_MULTI

/*-- ZCOM Message Header --*/ typedef struct {

zmid_type mid; zmrq_type mrq;

}zmhd_type;

0/* Undefined type */

1/* Terminal input */

2/* Terminal write */

3/* Terminal write */

4/* INTERNAL USE: Status transfer */

5/* Unsolicited status change */

6/* Set terminal parameters */

7/* Terminal enable */

8/* Terminal disable */

9/* Terminal activate */

10/* Terminal deactivate */

11/* Terminal delete */

14 /* Port configuration */

15 /* Multi-completion RXDT req code. */

/* Message ID header */

/* Message request block */

314

Chapter 4