UNPKG

vban

Version:
22 lines (21 loc) 720 B
export declare const PACKET_IDENTIFICATION = "VBAN"; /** * the stream name is limited to 16 bytes */ export declare const STREAM_NAME_LENGTH = 16; export declare const BITS_SPEEDS: Record<number, number>; export declare enum EFormatBit { /** * 0 to 255 */ VBAN_DATATYPE_BYTE8 = 0 } export declare const serialStopModes: Array<{ mode: number; stop: number | null; }>; export declare function dec2bin(dec: number): string; export declare function bufferToHex(buffer: Buffer): string; export declare function prepareStringForPacket(str: string, maxLength: number): string; export declare function cleanPacketString(str: string): string; export declare const sampleRates: Record<number, number>;