@iotize/tap
Version:
IoTize Device client for Javascript
212 lines (211 loc) • 7.46 kB
TypeScript
import { SerialSettings } from '@iotize/tap/service/impl/target';
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export interface TapnpassProtocolConfiguration {
modbus: TapnpassProtocolConfiguration.Modbus;
serial: TapnpassProtocolConfiguration.Serial;
usb: TapnpassProtocolConfiguration.Usb;
}
export declare namespace TapnpassProtocolConfiguration {
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Modbus {
slave: number;
offsetFirstRegister: boolean;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Serial {
baudRate: number;
identification: boolean;
ledStatus: boolean;
physicalPort: SerialSettings.PhysicalPort;
stopBits: SerialSettings.StopBits;
bitParity: SerialSettings.BitParity;
dataBits: SerialSettings.DataBits;
handshakeDelimiter: SerialSettings.HandshakeDelimiter;
hardwareFlowControl: SerialSettings.HardwareFlowControl;
timeout: number;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Usb {
aliases: TapnpassProtocolConfiguration.UsbAlias[];
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface UsbAlias {
pid: number;
vid: number;
equ: number;
}
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export interface AdpStats {
header: AdpStats.Header;
state: AdpStats.State;
uart: AdpStats.Uart;
usb: AdpStats.Usb;
current: Uint8Array;
com: AdpStats.Com;
battery: Uint8Array;
intern: AdpStats.Intern;
}
export declare namespace AdpStats {
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Header {
version: AdpStats.Version;
errorCode: number;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Version {
major: number;
minor: number;
patch: number;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Intern {
time: Uint8Array;
nbBoots: Uint8Array;
nbShutdown: Uint8Array;
nbAdpFault: Uint8Array;
nbAdpMemFault: Uint8Array;
nbAdpBusFault: Uint8Array;
nbAdpUsageFault: Uint8Array;
temperature: Uint8Array;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface State {
usbDisconnected: boolean;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Uart {
nbPartityError: number;
nbNoiseError: number;
nbFrameError: number;
nbDmaError: number;
nbTxError: number;
nbRxError: number;
nbOverRun: number;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Usb {
nbFail: number;
nbTimeout: number;
nbError: number;
nbUnknownClass: number;
nbDisconnect: number;
nbOff: number;
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
interface Com {
txBufferOverRun: number;
rxBufferOverRun: number;
nbErrorSettings: number;
nbComAdp: Uint8Array;
}
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export interface AdpControlIn {
command: AdpControlIn.Command;
param: number;
}
export declare namespace AdpControlIn {
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
enum Command {
NONE = 0,
ZIP = 32769,
UNZIP = 32770,
SET_TRANSMISSION_BUFFER_SIZE = 32771,
TOTAL_BUFFER_SIZE = 32772,
GET_TRANSMISSION_BUFFER_SIZE = 32773,
SET_RESPONSE_DELIMITER_LOW = 32774,
SET_RESPONSE_DELIMITER_HIGH = 32775,
SET_COMMAND_DELIMITER_LOW = 32776,
EXEC_COMMANDS = 32777
}
}
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export interface AdpControlOut {
/**
* Result code
*/
resultCode: AdpControlOut.ResultCode;
param: number;
}
export declare namespace AdpControlOut {
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
enum ResultCode {
NONE = 0,
OK = 32768,
ZIP_TIMEOUT = 32769,
UNZIP_TIMEOUT = 32770,
ZIP_ERROR = 32771,
UNZIP_ERROR = 32772,
UNKNOWN_COMMAND = 32773,
INVALID_PARAM = 32774
}
}