Crate jtagice_mkii
source ·Expand description
JTAGICE mkII rust implementation
This crate implements the JTAGICE mkII protocol.
§Usage
Using this library is rather easy:
let port = serialport::new("/dev/ttyUSB0", 19200)
.data_bits(serialport::DataBits::Eight)
.parity(serialport::Parity::None)
.stop_bits(serialport::StopBits::One)
.timeout(Duration::from_secs(8))
.open()
.expect("Failed to open port");
let mut dgr = JtagIceMkii::new(port);
let _ = dgr.sign_on();
dgr.sign_on().expect("Couldn't sign on");
//Set bd rate to 115200
println!(">>> Will set baud rate");
Structs§
- A JtagIce mkII device
Enums§
- The various commands that the device can accept
- The replies that the device will send after each command