UNPKG

1.39 kBTypeScriptView Raw
1/**
2 * this is the low-level implementation of the E1.31 (sACN) protocol
3 */
4/// <reference types="node" />
5export interface Options {
6 universe: Packet['universe'];
7 payload: Packet['payload'];
8 sequence: Packet['sequence'];
9 sourceName?: Packet['sourceName'];
10 priority?: Packet['priority'];
11 cid?: Packet['cid'];
12}
13/**
14 * This constructs a sACN Packet, either from an
15 * existing `Buffer` or from `Options`.
16 */
17export declare class Packet {
18 readonly sourceAddress?: string;
19 private readonly root_vector;
20 private readonly root_fl;
21 private readonly preambleSize;
22 private readonly postambleSize;
23 private readonly acnPid;
24 readonly cid: Buffer;
25 private readonly frame_vector;
26 private readonly frame_fl;
27 readonly options: number;
28 readonly sequence: number;
29 readonly sourceName: string;
30 readonly priority: number;
31 readonly syncUniverse: number;
32 readonly universe: number;
33 private readonly dmp_vector;
34 private readonly dmp_fl;
35 private readonly type;
36 private readonly firstAddress;
37 private readonly addressIncrement;
38 readonly propertyValueCount: number;
39 private readonly startCode;
40 private readonly privatePayload;
41 constructor(input: Buffer | Options, sourceAddress?: string);
42 get payload(): Record<number, number>;
43 get payloadAsBuffer(): Buffer;
44 get buffer(): Buffer;
45}