Click or drag to resize

RfidBank01FromBackscatterWords Method

Creates an RfidBank01 instance having the specified contents of the PC, XPC, and EPC/UII portion. The most significant bit of element 0 of the specified word array becomes bit 10 (hex). Element 0 of the specified byte array become bits 10 (hex) through 1F (hex) (the PC bits). If the XPC indicator (bit 16 hex, extracted from element 0 of the specified word array) is zero, then the remaining elements of the word array become bits 20 (hex) onward, with the most significant bit of element 1 becoming bit 20 (hex). If the XPC indicator is one, then element 1 of the specified byte array becomes the XPC bits 210 (hex) through 21F (hex), and the remaining elements of the specified byte array become bits 20 (hex) onward (with the most significant bit of element 2 becoming bit 20 hex). This interpretation of the byte array corresponds to the way that the contents of Bank 01 are backscattered in the Gen2/18000-6C Air Interface protocol, excluding the CRC bits.

If adjustEpcUiiLength is false, then the PC length bits are calculated based on the length of the specified array, replacing whatever PC length value was provided in the input.

If adjustEpcUiiLength is true, then the contents of the EPC/UII portion is either right-truncated or padded on the right with zeros to match the length implied by the PC bits provided in the input.

If a zero-length array is specified, it is equivalent to specifying a word array containing a single zero-valued element (that is, a zero-length EPC). If a one-length array is specified, and the XPC indicator is one, it is equivalent to specifying a word array with an additional zero-valued element.


Namespace: GS1.EPC.Api
Assembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntax
C#
public static RfidBank01 FromBackscatterWords(
	ushort[] words,
	bool adjustEpcUiiLength
)

Parameters

words  UInt16
 
adjustEpcUiiLength  Boolean
 

Return Value

RfidBank01
See Also