steeloxide 0.1.0

A rust library for interacting with SteelSeries devices.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// (c) ato
// 
// `mouse/packet/persist.rs`
// 
// I'm guessing that this writes the current configuration to the mouse's memory
// The header was also obtained straight from Wireshark w USBPcap

use crate::{Result, mouse::packet::MousePacket};

pub const PERSIST_PACKET_HEADER: [u8; 4] = [0x00, 0x09, 0x00, 0x00];

#[derive(Clone)]
pub struct PersistPacket;
impl MousePacket for PersistPacket {
    fn serialize(&self) -> Result<Vec<u8>> {
        Ok(PERSIST_PACKET_HEADER.to_vec())
    }
}