@onekeyfe/hd-transport-usb 1.1.27-patch.1 → 1.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +24 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +396 -68
- package/package.json +4 -4
- package/src/index.ts +465 -36
- package/dist/constants.d.ts +0 -5
- package/dist/constants.d.ts.map +0 -1
- package/src/constants.ts +0 -11
package/dist/constants.d.ts
DELETED
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,KAAK,CAAC;AAG9B,eAAO,MAAM,SAAS,KAAO,CAAC;AAG9B,eAAO,MAAM,YAAY,QAAkB,CAAC;AAG5C,eAAO,MAAM,aAAa,IAAI,CAAC"}
|
package/src/constants.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** USB packet size in bytes */
|
|
2
|
-
export const PACKET_SIZE = 64;
|
|
3
|
-
|
|
4
|
-
/** Protocol marker byte (0x3F = '?') — first byte of every packet */
|
|
5
|
-
export const REPORT_ID = 0x3f;
|
|
6
|
-
|
|
7
|
-
/** Usable payload per packet after stripping the 0x3F report byte */
|
|
8
|
-
export const PAYLOAD_SIZE = PACKET_SIZE - 1;
|
|
9
|
-
|
|
10
|
-
/** Protocol header length: typeId (2 bytes) + length (4 bytes) */
|
|
11
|
-
export const HEADER_LENGTH = 6;
|