dualsense-ts
Version:
The natural interface for your DualSense Classic and DualSense Access controllers, with Typescript
9 lines • 469 B
TypeScript
export declare function computeBluetoothReportChecksum(buffer: Uint8Array): number;
/**
* Compute CRC-32 for a Bluetooth feature report.
* The CRC covers the HID transaction header (0x53), the report ID,
* and all payload bytes except the last 4 (which hold the CRC itself).
* Uses standard CRC-32 with final inversion.
*/
export declare function computeFeatureReportChecksum(reportId: number, buffer: Uint8Array): number;
//# sourceMappingURL=bt_checksum.d.ts.map