Sets the buffer to store the read barcode data and the optional commands for the barcode reader.

Syntax

void AM_ConfigBarcodeReader(
  MENU_HANDLE menu,
  pAM_BarcodeBuffer pBuffer,
  char *pOptionCommands
);

Parameters

menu
[in] Menu handle
pBuffer
[in] A pointer to an AM_BarcodeBuffer structure.
pOptionCommands
[in] When setting optional commands to the barcode reader, specify the command string. Otherwise, specify NULL.

Return value

None.

Remarks

Set the buffer to receive the read barcode data and the optional commands to be set to the barcode reader.

After setting with this function, enable the barcode reader with AM_EnableBarcodeReader function to scan the barcode by pressing the [SCAN] key. The read barcode data is written to the buffer as specified by the AM_BarcodeBuffer structure.

It is necessary to call this function before enabling the barcode reader with the AM_EnableBarcodeReader function.

Requirements

Header file:
lib.h
AdvancedMenu.h
Library file:
libAdvancedMenu.a
libSTARTUPOPH5000.a

See also

Last updated: 2020/10/09