Apple Newton Utilities Guía de usuario Pagina 860

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 942
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 859
CHAPTER 24
Built-in Communications Tools
24-2 Serial Tool
The following is an example of how to create an endpoint that uses the standard
asynchronous serial tool:
myAsyncEP := {_proto:protoBasicEndpoint};
myOptions := [
{ label: kCMSAsyncSerial,
type: 'service,
opCode: opSetRequired } ];
returnedOptions:= myAsyncEP:Instantiate(myAsyncEP,
myOptions);
Table 24-1 summarizes the standard serial options. Each of these options is
described in detail in “Options for the Standard Asynchronous Serial Tool”
(page 21-2) in Newton Programmers Reference
e.
Table 24-1 Summary of serial options
Label Value Use when Description
kCMOSerialHWChipLoc
"schp" Before or at
binding
Sets which serial
hardware to use.
kCMOSerialChipSpec
"sers" Before or at
binding
Sets which serial
hardware to use and
returns information
about the serial
hardware.
kCMOSerialCircuitControl
"sctl" After connecting Controls usage of the
serial interface lines.
kCMOSerialBuffers
"sbuf" Before or at
binding
Sets the size of the
input and output
buffers.
kCMOSerialIOParms
"siop" Any time Sets the bps rate, stop
bits, data bits, and
parity options.
kCMOSerialBitRate
"sbps " Any time Changes the bps rate.
kCMOOutputFlowControlParms
"oc" Any time Sets output ow
control parameters.
kCMOInputFlowControlParms
"ic" Any time Sets input ow
control parameters.
continued
Vista de pagina 859
1 2 ... 855 856 857 858 859 860 861 862 863 864 865 ... 941 942

Comentarios a estos manuales

Sin comentarios