UNPKG

rxpoweredup

Version:

A Typescript RxJS-based library for controlling LEGO Powered UP hubs & peripherals.

15 lines (14 loc) 1.02 kB
import { RawMessage } from './types'; import { MessageType } from './constants'; export declare function readBitAtPosition(value: number, position: number): boolean; export declare function concatUint8ToUint16(high: number, low: number): number; export declare function numberToUint32LEArray(value: number): number[]; export declare function numberToUint16LEArray(value: number): number[]; export declare function readNumberFromUint8LEArray(value: Uint8Array): number; export declare function readNumberFromUint8LEArray(value: number[]): number; export declare function convertUint8ToSignedInt(value: number): number; export declare function convertUint32ToSignedInt(value: number): number; export declare function convertUint16ToSignedInt(value: number): number; export declare function concatUintArraysToUint8Array(...a: Array<Uint8Array | Uint16Array>): Uint8Array; export declare function formatMessageForDump(message: RawMessage<MessageType>): string; export declare function numberToHexString(number: number): string;