Intermec 5055 Reference Guide

Page of 216
im_get_label_symbology
5-28
im_get_label_symbology
Purpose:
This function gets the symbology, such as Code 39, from the most recently scanned
label. Call this function after receiving data using im_receive_input or im_receive_field.
Syntax:
#include "im5055.h"
IM_STATUS im_get_label_symbology
    (IM_DECTYPE far *
symb
);
IN Parameters:
None.
OUT Parameters:
symb    Identifies the label symbology and is one of these constants:
IM_UNKNOWN_DECODE    Unknown bar code.
IM_CODABAR    Codabar bar code.
IM_CODE_39    Code 39 bar code.
IM_CODE_128    Code 128 bar code.
IM_I_2_OF_5    Interleaved 2 of 5.
IM_MSI    MSI bar code.
IM_UPC    Universal Product code.
Return Value:
This function returns one of these codes:
IM_SUCCESS    Successfully retrieved.
IM_NO_SYMBOLOGY    No symbology code available, or no scans received.
See Also:
im_receive_input, im_receive_field, im_get_label_symbologyid
Example
/********************* im_get_label_symbology **********************/
#include <conio.h>
#include "stdio.h"
#include "im5055.h"
static char *bar_code[] = {
  "unknown",
  "Code 39",      /* See typedef enum { ...} IM_DECTYPE in Im5055.h*/
  "I 2 of 5",
  "Codabar",
  "UPC and EAN",
  "Code 128",
  "MSI"
};
void main (void)
{
   IM_UCHAR   input[256];
   IM_ORIGIN  source;
   IM_DECTYPE symbol;