Skip to main content

Crate jtagice_mkii

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§

JtagIceMkii
A JtagIce mkII device
JtagIceMkiiCommand
JtagIceMkiiReply

Enums§

Commands
The various commands that the device can accept
JtagIceMkiiError
Replies
The replies that the device will send after each command