Trait Jtag

Source
pub trait Jtag<DEPS>: From<DEPS> {
    const AVAILABLE: bool;

    // Required methods
    fn sequences(&mut self, data: &[u8], rxbuf: &mut [u8]) -> u32;
    fn set_clock(&mut self, max_frequency: u32) -> bool;
}

Required Associated Constants§

Source

const AVAILABLE: bool

If JTAG is available or not.

Required Methods§

Source

fn sequences(&mut self, data: &[u8], rxbuf: &mut [u8]) -> u32

Handle a JTAG sequence request.

Source

fn set_clock(&mut self, max_frequency: u32) -> bool

Set the maximum clock frequency, return true if it is valid.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§