This member of Class WaveLinkAuxPort is supported on Windows Mobile, Windows CE, Palm, and DOS.
The ConfigurePort Method configures the basic UART settings for the serial port of a device before calling the QueryPort Method.
Syntax
public void ConfigurePort(int port, int baud, int databits, int stopBits, int parity, int flowCtrl)
throws WaveLinkError
IllegalArgumentException
Parameters
|
port |
The serial port of the device which UART settings you wish to configure |
|
baud |
The UART baud rate of the serial port |
|
dataBits |
The UART data bit setting of the serial port |
|
stopBits |
The UART stop bit setting of the serial port |
|
parity |
The UART parity setting of the serial port |
|
flowControl |
The UART flow control setting of the serial port |
Throws
WaveLinkError
IllegalArgumentException
Remarks
A serial port must first be configured using the ConfigurePort Method before the port may be queried for input using the QueryPort Method.
The possible values for port are:
|
WLCOM1 |
COM port 1 (serial port on Palm devices) |
|
WLCOM2 |
COM port 2 (infrared port on Palm devices) |
The possible values for baud are:
|
BAUD110 |
110000 BBS baud |
|
BAUD150 |
150 BBS baud |
|
BAUD300 |
300 BBS baud |
|
BAUD600 |
600 BBS baud |
|
BAUD1200 |
1200 BBS baud |
|
BAUD1350 |
1350 BBS baud |
|
BAUD2400 |
2400 BBS baud |
|
BAUD4800 |
4800 BBS baud |
|
BAUD9600 |
9600 BBS baud |
|
BAUD19200 |
19200 BBS baud |
|
BAUD38400 |
38400 BBS baud |
The possible values for dataBits are:
|
DATABITS4 |
4 data bits |
|
DATABITS5 |
5 data bits |
|
DATABITS6 |
6 data bits |
|
DATABITS7 |
7 data bits |
|
DATABITS8 |
8 data bits |
The possible values for stopBits are:
|
STOPBITS1 |
1 stop bit |
|
STOPBITS2 |
2 stop bits |
The possible values for parity are:
|
PARITYEVEN |
Even parity |
|
PARITYMARK |
Mark parity |
|
PARITYNONE |
No parity |
|
PARITYODD |
Odd parity |
|
PARITYSPACE |
Space parity |
The possible values for flowControl are:
|
HARDWAREFLOWCTL |
Hardware based flow control |
|
NOFLOWCTL |
No flow control |
|
SOFTWAREFLOWCTL |
Software based flow control |
See Constant Values for the numeric values returned by the function.
Example
See the QueryPort Method
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other