Nightly Perpetrated Mischief

    @ledgerhq/devices
    TypeScript icon, indicating that this package has built-in type declarations

    6.27.1 • Public • Published

    @ledgerhq/devices

    Logic for all Ledger devices.

    API

    Table of Contents

    createHIDframing

    Parameters

    IIGenericHID

    The USB product IDs will be defined as MMII, encoding a model (MM) and an interface bitfield (II)

    • Model

    Ledger Nano S : 0x10 Ledger Blue : 0x00 Ledger Nano X : 0x40

    • Interface support bitfield

    Generic HID : 0x01 Keyboard HID : 0x02 U2F : 0x04 CCID : 0x08 WebUSB : 0x10

    Type: number

    ledgerUSBVendorId

    Type: number

    getDeviceModel

    Parameters

    • id DeviceModelId

    Returns DeviceModel

    identifyTargetId

    Given a targetId, return the deviceModel associated to it, based on the first two bytes.

    Parameters

    Returns (DeviceModel | null | undefined)

    identifyUSBProductId

    Parameters

    Returns (DeviceModel | null | undefined)

    getBluetoothServiceUuids

    Returns Array<string>

    getInfosForServiceUuid

    Parameters

    Returns (BluetoothInfos | undefined)

    DeviceModel

    BluetoothInfos

    Keywords

    Install

    npm i @ledgerhq/devices

    DownloadsWeekly Downloads

    150,983

    Version

    6.27.1

    License

    Apache-2.0

    Unpacked Size

    118 kB

    Total Files

    60

    Last publish

    Collaborators

    • haammar-ledger
    • kvn-ledger
    • ofreyssinet
    • jelbaz-ledger
    • achabrolin-ledger
    • gre
    • btchip
    • meriadec
    • flocks
    • amougel
    • juan-cortes
    • val_pinkman
    • iammorrow
    • phenry-ledger
    • jdecussy-ledger
    • lfbarreto
    • junsugiura
    • hzheng_ledger
    • machard-ledger
    • glethuillier_ledger