Scan and Enter Location App
Scan and Enter Location App

Scan and Enter Location App

Function prototype: int8_t CST_APIsendLocBarCodeQty(LocRecord_t *location, BarcodeRecord_t *barcode, uint16_t quantity)

Description
:
        
Sends the location and barcode data to the firmware layer.
Parameters
:
       
LocRecord_t *location
:  pointer to the structure containing location data and length.
        
BarcodeRecord_t *barcode
: structure containing the barcode data and length
        
quantity
: number of barcode data from GUI.
Return value
:
int8_t status
          APP_SEND_QTY_SUCESS                             (1)
         If valid quantity, location and barcode data is sent out.
          APP_SEND_QTY_UNDERFLOW_ERROR       (-1L)
         If Quantity entered is less than or equal to zero.
          APP_SEND_QTY_OVERFLOW_ERROR         (-2L)
         If Quantity entered is greater than 9999.
          APP_SEND_QTY_INVALID_DATA                   (-3L)
         If Location data or barcode data is not valid (NULL).
        
          APP_SEND_QTY_INVALID_LENGTH              (-4L)
         If the length of the Location data or barcode data is not within allowed range.