UNPKG

@kvaser/canking-api

Version:

CanKing API to communicate with the CanKing service using Node.js.

76 lines (75 loc) 2.95 kB
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; /** Possible signal encodings. The value must match the kvadblib value. */ export declare enum SignalEncoding { SIGNAL_ENCODING_INTEL = 0, SIGNAL_ENCODING_MOTOROLA = 1, UNRECOGNIZED = -1 } export declare function signalEncodingFromJSON(object: any): SignalEncoding; export declare function signalEncodingToJSON(object: SignalEncoding): string; /** Possible signal types. The value must match the kvadblib value. */ export declare enum SignalType { SIGNAL_TYPE_INVALID = 0, /** SIGNAL_TYPE_SIGNED - Signed integer */ SIGNAL_TYPE_SIGNED = 1, /** SIGNAL_TYPE_UNSIGNED - Unsigned integer */ SIGNAL_TYPE_UNSIGNED = 2, /** SIGNAL_TYPE_FLOAT - Float, strictly 32 bit long */ SIGNAL_TYPE_FLOAT = 3, /** SIGNAL_TYPE_DOUBLE - Double, strictly 64 bit long */ SIGNAL_TYPE_DOUBLE = 4, UNRECOGNIZED = -1 } export declare function signalTypeFromJSON(object: any): SignalType; export declare function signalTypeToJSON(object: SignalType): string; /** A message that holds information about a signal. */ export interface SignalDefinition { name: string; qualifiedName: string; comment: string; encoding: SignalEncoding; dataType: SignalType; startbit: number; length: number; unit: string; factor: number; offset: number; minValue: number; maxValue: number; enumValues: { [key: number]: string; }; isMultiplexer: boolean; isMultiplexed: boolean; multiplexValue?: number | undefined; } export interface SignalDefinition_EnumValuesEntry { key: number; value: string; } export interface SignalDefinitions { items: SignalDefinition[]; } export declare const SignalDefinition: MessageFns<SignalDefinition>; export declare const SignalDefinition_EnumValuesEntry: MessageFns<SignalDefinition_EnumValuesEntry>; export declare const SignalDefinitions: MessageFns<SignalDefinitions>; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>; type KeysOfUnion<T> = T extends T ? keyof T : never; type Exact<P, I extends P> = P extends Builtin ? P : P & { [K in keyof P]: Exact<P[K], I[K]>; } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never; }; interface MessageFns<T> { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create<I extends Exact<DeepPartial<T>, I>>(base?: I): T; fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T; } export {};