pub struct Sequences<'a> { /* private fields */ }
Expand description

Represents a series of JTAG sequences to be sent to a DAP. The maximum number of sequences is limited by the DAP packet size, or at most 255.

Implementations

Create a new Sequences object which can be sent to the provided DAP.

Add a new sequence to this set of sequences.

len: number of clock cycles, from 1 to 64. tms: value to set TMS during this sequence. tdi: optional data to clock out TDI, bits in transmission order, set to all-1 if None. capture: if true, capture TDO state during this sequence.

Add multiple sequences as required to reach the desired total bit length.

len: number of clock cycles. tms: value to set TMS during these sequence. tdi: optional data to clock out TDI, bits in transmission order, set to all-1 if None. capture: if true, capture TDO state during this sequence.

Shift out tms bits.

Internally each run of identical bits is collapsed into a single request.

Write bits to TDI without capturing TDO state.

If exit is true, the first bits have TMS=0 and the final bit has TMS=1, otherwise all bits have TMS=0.

Read n bits from TDO, writing all 1 bits to TDI.

If exit is true, the first bits have TMS=0 and the final bit has TMS=1, otherwise all bits have TMS=0.

Write bits to TDI and capture output bits from TDO.

If exit is true, the first bits have TMS=0 and the final bit has TMS=1, otherwise all bits have TMS=0.

Return the byte representation of each DAP command to be sent.

Run these sequences, returning all captured TDO bits.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.