Skip to main content

Crate razers_protocol_core

Crate razers_protocol_core 

Source
Expand description

Pure protocol codecs with no device or operating-system I/O.

纯协议编解码,不执行设备或操作系统读写。

Structs§

Report90
A decoded classic 90-byte Razer vendor report.

Enums§

Report90Error
Errors produced while encoding or decoding a classic report.

Constants§

REPORT_90_ARGUMENT_CAPACITY
Maximum number of argument bytes carried by a classic report.
REPORT_90_CRC_INDEX
Byte position containing the report checksum.
REPORT_90_RESERVED_INDEX
Byte position containing the reserved trailing byte.
REPORT_90_SIZE
Total size of the classic Razer vendor report.

Functions§

calculate_crc
Calculate the XOR checksum over byte positions 2 through 87 inclusive.