Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- union transaction_id_union {
- unsigned char id;
- struct transaction_parts {
- unsigned char device : 3;
- unsigned char id : 5;
- } parts;
- };
- union command_id_union {
- unsigned char id;
- struct command_id_parts {
- unsigned char direction : 1;
- unsigned char id : 7;
- } parts;
- };
- typedef union razer_report {
- unsigned char Data[90];
- struct {
- unsigned char report_id; /* required by hidraw or something - 0x00 */
- unsigned char status;
- union transaction_id_union transaction_id; /* */
- unsigned short remaining_packets; /* Big Endian */
- unsigned char protocol_type; /*0x0*/
- unsigned char data_size;
- unsigned char command_class;
- union command_id_union command_id;
- unsigned char arguments[80];
- unsigned char crc;/*xor'ed bytes of report*/
- unsigned char reserved; /*0x0*/
- } razer_report_inner;
- } razer_report;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement