@ombori/epc-ean
Version:
EPC Tag Data Standard encoding and decoding library, written in javascript
43 lines (42 loc) • 1.48 kB
TypeScript
export class Epc extends BitArray {
clone(): void;
getType(): void;
toTagURI(): void;
toIdURI(): void;
toBarcode(): void;
getTotalBits(): void;
getHeader(): void;
/**
* The filter value is additional control information that may be included in
* the EPC memory bank of a Gen 2 tag. The intended use of the filter value is
* to allow an RFID reader to select or deselect the tags corresponding to
* certain physical objects, to make it easier to read the desired tags in an
* environment where there may be other tags present in the environment
* @return
*/
getFilter(): number;
/**
* 0.- All Others (see Section 10.1).
* 1.- Point of Sale (POS) Trade Item .
* 2.- Full Case for Transport.
* 3.- Reserved (see Section 10.1).
* 4.- Inner Pack Trade Item Grouping for Handling.
* 5.- Reserved (see Section 10.1).
* 6.- Unit Load.
* 7.- Unit inside Trade Item or component inside a
* product not intended for individual sale.
* @param value
*/
setFilter(value: any): Epc;
getSegment(segment: any): number;
setSegment(value: any, segment: any): void;
getSegmentString(segment: any): string;
}
export namespace Epc {
const EPC_HEADER_OFFSET: number;
const EPC_HEADER_END: number;
const FILTER_OFFSET: number;
const FILTER_END: number;
const FILTER_MAX_VALUE: number;
}
import { BitArray } from './utils/bit-array';