
s c n O p e n S c a n n e r
Description
Enables the scanner and sets the configuration values to the defaults. Be sure to enable the scanner only when it is already disabled.
Because this function resets the
configuration values to the defaults, you must configure the scanner every time you enable it.
This function directs the serial port to the scanner, making external
Because the scanner takes over the serial communications port, the application should disable the scanner immediately before using the port for serial communications and enable it immediately afterwards. When possible, the application should use scnOpenScannerShared to avoid processing delays (enabling and disabling the scanner repeatedly).
scnOpenScanner also saves the serial port’s configuration (baud, parity, data bits, stop bits) to restore when the application disables the scanner. The application must enable the scanner before configuring it.
The application must call this function before it calls any other scanner function (unless it uses scnOpenScannerShared).
Syntax
short far scnOpenScanner(void);