You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memflow-pcileech/examples/read_pcileech.rs

20 lines
531 B
Rust

use log::Level;
use memflow_core::connector::ConnectorArgs;
use memflow_pcileech::{create_connector, PcieGen};
fn main() {
simple_logger::init_with_level(Level::Trace).unwrap();
let mut conn = create_connector(&ConnectorArgs::new()).unwrap();
conn.set_pcie_gen(PcieGen::Gen2).unwrap();
// TODO: put this + more in a conn print trait ->
println!(
"pcie device opened with link width {} and pcie gen {}",
conn.pcie_link_width(),
conn.pcie_gen()
);
conn.test_read().unwrap();
}