Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual
Page 84
Function Reference 4-43
s c n C l o s e S c a n n e r
Description
Disables either scanner. Be sure to disable the scanner only
when it is already enabled.
If the application enabled the scanner with scnOpenScanner,
♦
the application should disable the scanner at the end of
processing or immediately before any serial communications.
♦
this function sets the serial communications port back to
external RS-232 connection mode. It also restores the serial
port configuration settings (baud rate, parity, data bits, and
stop bits) saved when the application enabled the scanner.
Syntax
short far scnCloseScanner(void);
Parameters
None
Return Values
0
Successful.
-1
The scanner was already disabled.
Example
#include <stdio.h>
#include "mmsultra.h"
void main(void)
{
short sStatus = 0;
// Command calls status
sStatus = scnOpenScanner();
// Enable scanner
if (sStatus == -2)
printf("Scanner error-- %d", sStatus);
else
{