Metrologic Optimus S Programming Manual page 110

"c" programming guide
Table of Contents

Advertisement

104
"C" Programming Guide For Optimus S/R
0x00
0x01
0x02
0x03
0x04
0x05
0x06
0x07
0x00
0x08
0x00
0x10
0x30
0x00
0x40
0xc0
Wedge Emulator Setting
0x8000
Cradle (Modem type) Command Setting
0x0100
Bluetooth Setting
0x00
0x03
0x04
Example
open_com (1,0x0b);
This routine initializes the specified COM port, clears its receive buffer, stops
Description
any ongoing data transmission, resets COM port status, and configures the
COM port according to the settings.
Note that the direct RS-232 port is usually COM 1, and the virtual COM port
assigned for Bluetooth serial port profile is COM 2. However, only direct
RS-232 allows for flow control options.
Return
If successful, it returns 1.
Otherwise, it returns 0 to indicate the port number is invalid.
See Also
close_com
Baud rate (bps)
* (asterisk):
Not applicable to Serial IR.
Data bits
Parity
Flow control method
Wedge Emulator
Cradle Command
BT-SPP Slave
BT-SPP Master
BT-DUN
/* open COM 1 to 38400, 8 data bits, no parity and no handshake */
BAUD_115200
BAUD_76800 *
BAUD_57600
BAUD_38400
BAUD_19200
BAUD_9600
BAUD_4800 *
BAUD_2400 *
DATA_BIT7
DATA_BIT8
PARITY_NONE
PARITY_ODD
PARITY_EVEN
HANDSHAKE_NONE
HANDSHAKE_CTS
HANDSHAKE_XON
WEDGE_EMULATOR
CRADLE_COMMAND
BT_SERIALPORT_SLAVE
BT_SERIALPORT_MASTER
BT_DIALUP_NETWORKING

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents