forked from YaroslavSl/llrp-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
53 lines (47 loc) · 1.52 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { EventEmitter } from 'events';
import { LlrpReader } from './src/index';
import { ReaderConfig, AntennaConfig, Logger } from './src/interfaces/llrp';
declare module 'llrp-gm' {
export class LLRP extends EventEmitter implements LlrpReader {
connected: boolean;
constructor(config: ReaderConfig, logger?: Logger);
connect(): void;
disconnect(): void;
disableRFTransmitter(): void;
enableRFTransmitter(): void;
}
export interface TagInformation {
TID?: string;
EPC96?: string;
EPCData?: string;
antennaID?: number;
tagSeenCount?: number;
peakRSSI?: number;
specIndex?: number;
inventoryParameterSpecID?: number;
channelIndex?: number;
C1G2PC?: number;
C1G2CRC?: number;
accessSpecID?: number;
roSpecID?: number;
firstSeenTimestampUTC?: number; // useconds
lastSeenTimestampUTC?: number; // useconds
custom?: string;
}
export interface RadioOperationConfig {
enableReadingTid?: boolean;
antennasConfig?: AntennaConfig[];
tagPopulation?: number;
modeIndex?: number;
}
export enum RfidReaderEvent {
Timeout = 'timeout',
Connected = 'connected',
Disconnect = 'disconnect',
Error = 'error',
DisabledRadioOperation = 'disabledRadioOperation',
StartedRadioOperation = 'startedRadioOperation',
LlrpError = 'llrpError',
DidSeeTag = 'didSeeTag'
}
}