beautypg.com

Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 150

background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 150


var CBR_128000 = 128000;
var CBR_256000 = 256000;

//
// Error Flags
//
var CE_RXOVER = 0x0001; // Receive Queue overflow
var CE_OVERRUN = 0x0002; // Receive Overrun Error
var CE_RXPARITY = 0x0004; // Receive Parity Error
var CE_FRAME = 0x0008; // Receive Framing error
var CE_BREAK = 0x0010; // Break Detected
var CE_TXFULL = 0x0100; // TX Queue is full
var CE_PTO = 0x0200; // LPTx Timeout
var CE_IOE = 0x0400; // LPTx I/O Error
var CE_DNS = 0x0800; // LPTx Device not selected
var CE_OOP = 0x1000; // LPTx Out-Of-Paper
var CE_MODE = 0x8000; // Requested mode unsupported

//
// Access
//
var GENERIC_READ = 0x80000000;
var GENERIC_WRITE = 0x40000000;

//
// Events
//
var EV_RXCHAR = 0x0001; // Any Character received
var EV_RXFLAG = 0x0002; // Received certain character
var EV_TXEMPTY = 0x0004; // Transmitt Queue Empty
var EV_CTS = 0x0008; // CTS changed state
var EV_DSR = 0x0010; // DSR changed state
var EV_RLSD = 0x0020; // RLSD changed state
var EV_BREAK = 0x0040; // BREAK received
var EV_ERR = 0x0080; // Line status error occurred
var EV_RING = 0x0100; // Ring signal detected
var EV_PERR = 0x0200; // Printer error occured
var EV_RX80FULL = 0x0400; // Receive buffer is 80% full
var EV_EVENT1 = 0x0800; // Provider specific event 1
var EV_EVENT2 = 0x1000; // Provider specific event 2
var EV_POWER = 0x2000; // WINCE Power event.

var EVENT_WAIT_FAILED = 0x01000000; // Wait failed, see LastError
var EVENT_WAIT_CANCELED = 0x02000000; // Canceled by user

//
// Extended Functions codes
//
var SETXOFF = 1; // Simulate XOFF received
var SETXON = 2; // Simulate XON received
var SETRTS = 3; // Set RTS high
var CLRRTS = 4; // Set RTS low
var SETDTR = 5; // Set DTR high

This manual is related to the following products: