enip-ts
Version:
Typescript implementation of the Ethernet/IP™ protocol.
33 lines (32 loc) • 873 B
TypeScript
/// <reference types="node" />
export declare enum EPathDataTypes {
Simple = 128,
ANSI_EXTD = 145
}
export declare enum EPathDataElementTypes {
UINT8 = 40,
UINT16 = 41,
UINT32 = 42
}
export declare class EPathData {
/**
* Builds EPATH Data Segment
* @param data
* @param ANSI Declare if ANSI Extended or Simple, default to true
* @returns
*/
static build(data: string | Buffer, ANSI?: boolean): Buffer;
/**
* Builds EPATH Symbolic Segment
* @param data
* @param [ANSI=true] Declare if ANSI Extended or Simple
* @returns build symbolic segment buffer
*/
static symbolicBuild(data: string | Buffer, ANSI?: boolean): Buffer;
/**
* Builds EPATH Element Segment
* @param data
* @returns build Element segment buffer
*/
static elementBuild(data: number): Buffer;
}