
Scanner Function Overview
scnGets
scnTrigger
1
| Scanner Buffer |
|
| scnGets | Application Buffer | ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| scnGetScannedData |
| ||||
|
| 2 |
|
|
|
| |||
|
| 2 |
|
| 3 |
| |||
|
|
|
|
|
|
|
|
| |
| scnGetch |
|
|
|
| Application | |||
| scnGetche |
|
|
|
| Processing | |||
| scnScannerHit |
|
|
|
|
|
|
|
scnGetBarCodeType
The scanner contains a buffer to hold the data from a scan. The application should contain a buffer of its own if it needs to save the data before scanning again. Processing works as follows:
1 . Initiate the scan, putting the data in the scanner buffer with either scnGets or scnTrigger.
2 . Either:
♦Process the data directly in the scanner buffer with scnGetch, scnGetche, scnGetBarCodeType, or scnScannerHit.
♦Save the data in the application buffer with scnGets (continued from step 1) or scnGetScannedData.
The application buffer must be one byte longer than the largest string that you may scan.
3 . If needed, process the data in the application buffer.
NOTE: Every bar code that the