pub struct JTAG { /* private fields */ }

Implementations

Create a new JTAG object which takes ownership of the provided DAP.

The initial state is TAPState::Unknown; the only way to enter a known state is by calling enter_test_logic_reset() to reset.

Set the maximum scan chain length to attempt to detect.

Set JTAG bus clock speed.

Pulse nRST low for duration.

Scan JTAG chain, detecting TAPs and their IDCODEs and IR lengths.

If IR lengths for each TAP are known, provide them in ir_lengths.

Returns a new JTAGChain, which contains detected IDCODEs and can be used to create a JTAGTAP at a specific index.

Create a new JTAG TAP, allowing read/write access to a single TAP on the chain.

Force all TAPs into Test-Logic-Reset state from any current state.

Enter Run-Test/Idle state from TestLogicReset, Exit1*, Pause*, or Update*.

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

Enter Shift-DR state from Test-Logic-Reset, Run-Test/Idle, Update*, or Pause*.

Enter Pause-DR from Exit1-DR.

Enter Update-DR from Shift-DR or Exit1-DR.

Enter Shift-IR state from Test-Logic-Reset, Run-Test/Idle, Update*, or Pause*.

Enter Pause-IR from Exit1-IR.

Enter Update-IR from Shift-IR or Exit1-IR.

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

Move to Shift-IR, read n bits of IR while writing 0xFF, then enter Update-IR. Returns the captured bits from TDO.

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

Move to Shift-DR, write tdi to DR, then enter Exit1-DR.

Move to Shift-DR, write tdi to DR, then enter Exit1-DR.

Additionally, call cb at regular intervals with the number of bits written so far.

Move to Shift-DR, read n bits of DR while writing 0xFF, then enter Exit1-DR. Returns the captured bits from TDO.

Move to Shift-DR, write tdi to DR while capturing TDO, then enter Exit1-DR. Returns the captured bits from TDO.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.