[][src]Struct ecpdap::jtag::JTAGTAP

pub struct JTAGTAP { /* fields omitted */ }

Represents a single TAP in a JTAG scan chain, with methods to read and write this TAP while other TAPs are placed into BYPASS.

Implementations

impl JTAGTAP[src]

pub fn index(&self) -> usize[src]

Returns the index of this TAP.

pub fn n_taps(&self) -> usize[src]

Returns number of TAPs in the underlying chain.

pub fn max_tdi_bits(&self) -> usize[src]

Returns maximum number of TDI bits we can fit into a single DAP packet.

pub fn release(self) -> (JTAG, JTAGChain)[src]

Consume the JTAGTAP and return its JTAG and JTAGChain.

pub fn test_logic_reset(&mut self) -> Result<()>[src]

Reset JTAG TAPs, entering Test-Logic-Reset.

pub fn run_test_idle(&mut self, n: usize) -> Result<()>[src]

Move to Run-Test/Idle and remain there for n clock cycles.

pub fn write_ir(&mut self, ir: &[bool]) -> Result<()>[src]

Move to Shift-IR, write ir to IR, then enter Update-IR.

pub fn read_ir(&mut self) -> Result<Vec<bool>>[src]

Move to Shift-IR, read the IR while writing 0xFF, then enter Update-IR. Returns the captured bits from TDO, leaving BYPASS in all IRs.

pub fn exchange_ir(&mut self, ir: &[bool]) -> Result<Vec<bool>>[src]

Move to Shift-IR, write ir to IR while capturing TDO, then enter Update-IR. Returns the captured bits from TDO.

pub fn write_dr(&mut self, dr: &[bool]) -> Result<()>[src]

Move to Shift-DR and write dr to DR. Exits Shift-DR and enters Update-DR once complete.

pub fn write_dr_raw(&mut self, dr: &[bool]) -> Result<()>[src]

Move to Shift-DR if not already there and write dr directly, without any prefix or suffix for our TAP position, and remain in Shift-DR afterwards. This method requires that only one TAP is present in the chain.

pub fn read_dr(&mut self, n: usize) -> Result<Vec<bool>>[src]

Move to Shift-DR, read n bits of DR while writing 0xFF. Exits Shift-DR and enters Update-DR once complete. Returns the captured bits from TDO.

pub fn exchange_dr(&mut self, dr: &[bool]) -> Result<Vec<bool>>[src]

Move to Shift-DR, write dr to DR while capturing TDO. Exits Shift-DR and enters Update-DR once complete. Returns the captured bits from TDO.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.