APPENDIX B
Common PEN*KEY 6000 Series Information
B-14 PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide
devpack.reqlen = sizeof devpack;
/* Length of ioctl packet */
devpack.cmd = 3;
/* ioctl input read */
devpack.buff = (FP(uchar)) &args;
/* Point buffer to ioargsc */
devpack.bytes = 7;
/* Read one byte */
inter.fncx = strat.fncx = hdr;
inter.addr.offset = hdr–>interrupt;
strat.addr.offset = hdr–>strategy;
drivercall(strat.fnc,(FP(struct reqpk)) &devpack);
drivercall(inter.fnc,(FP(struct reqpk)) &devpack);
exterr = args.ioctl_buf[0];
if (exterr == HEADJAM) {
jam = args.ioctl_buf[3];
jam2 = args.ioctl_buf[4];
jam3 = args.ioctl_buf[5];
jam4 = args.ioctl_buf[6];
}
scr_printf (“\nprinter error\n %d\n”,exterr);
switch (exterr) {
case PNRDY:
scr_printf(“Printer not ready. Check connection. Retry.\n”);
break;
case RXTMO:
scr_printf(“Printer not transmitting. Check connection.Retry.\n”);
break;
case TXTMO:
scr_printf(“Printer not receiving. Check connection. Retry. \n”);
break;
case BADADR:
scr_printf(“MAC address error. Abort. \n”);
break;
case GAPERR:
scr_printf(“MAC intercharacter Gap error. Retry.\n”);
break;
case LSRPE:
scr_printf(“MAC length parity error. Retry.\n”);
break;
case IFTS:
scr_printf(“Invalid communication Frame. Abort.\n”);
break;
case NS_NE_VR:
scr_printf(“NS <> VR. Abort. \n”);
break;
case NR_NE_VS:
scr_printf(“NR <> VS. Abort. \n”);
break;
case MAC_CRCERR:
scr_printf(“CRC error. Retry. \n”);
break;
case RLENERR:
scr_printf(“Receive length error. Abort.\n”);
break;
case FRMERR:
scr_printf(“Frame reject. Abort. \n”);
break;
case NDMERR:
scr_printf(“Printer Disconnect. Abort.\n”);
break;
case BINDERR:
scr_printf(“Bind error. Abort.\n”);
break;
case IPLDUR:
scr_printf(“Invalid PLDU. Abort.\n”);
break;
case HEADJAM:
jamarray[0][jamindex] = jam;
B. Common PEN*KEY
6000 Series Info.