8.1.0-exodus.5 • Published 9 months ago
@exodus/ledgerhq-devices v8.1.0-exodus.5
@ledgerhq/devices
Logic for all Ledger devices.
API
Table of Contents
- createHIDframing
- IIGenericHID
- ledgerUSBVendorId
- getDeviceModel
- identifyTargetId
- identifyUSBProductId
- getBluetoothServiceUuids
- getInfosForServiceUuid
- DeviceModel
- BluetoothInfos
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
targetId
number
Returns (DeviceModel | null | undefined)
identifyUSBProductId
Parameters
usbProductId
number
Returns (DeviceModel | null | undefined)
getBluetoothServiceUuids
Returns Array[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
getInfosForServiceUuid
Parameters
uuid
string
Returns (BluetoothInfos | undefined)
DeviceModel
BluetoothInfos
8.1.0-exodus.5
9 months ago
8.1.0-exodus.4
1 year ago
8.1.0-exodus.3
2 years ago
8.1.0-exodus.2
2 years ago
8.1.0-exodus.1
2 years ago
8.1.0-exodus.0
2 years ago