C H A P T E R 2 4
Built-in Communications Tools
You can get or set most of the standard serial options in the endpoint method that
established the state, as shown in Table 24-1. You set the endpoint options by passing
an argument to the communications tool when calling one of the endpoint methods
. For example, when you pass an
option to the
method, the system sets the option and then does the binding.
Many of the communications options can only be used when the communications
tool is in a certain state. For example, the first option in Table 24-1,
, can only be used after the endpoint has been instantiated
and before the binding is made. That means you could use it in the
methods, but not in the
All of these options have default values, so you may not need to use an option if
the default values provide the behavior you want. However, the default values do
not apply partially. This means that if you do use an option, you must specify a
value for each field within it.
Sends a break.
Discards data in input
and/or output buffer.
Configures the serial
tool to complete an
endpoint event on
returns the number of
bytes available in the
reports statistics from
the current serial
Used only with an
external clock to set
the clock divide factor.
Summary of serial options (continued)