Struct svf::Pattern[][src]

pub struct Pattern {
    pub length: u32,
    pub tdi: Option<Vec<u8>>,
    pub tdo: Option<Vec<u8>>,
    pub mask: Option<Vec<u8>>,
    pub smask: Option<Vec<u8>>,
}

Data pattern used for HDR, HIR, SDR, SIR, TDR, and TIR commands.

Fields

length: u32

Number of bits to be scanned.

tdi: Option<Vec<u8>>

Value to be scanned into the target. If not specified, the previously specified TDI for this command is used. Bits are packed into bytes least-significant-bit and least-significant-byte first, and the vector is automatically zero-padded to contain enough bits for the length.

tdo: Option<Vec<u8>>

Value to compare against actual values scanned out of the target. If not specified, no comparison is performed. Bits are packed into bytes least-significant-bit and least-significant-byte first, and the vector is automatically zero-padded to contain enough bits for the length.

mask: Option<Vec<u8>>

Mask used when comparing TDO values against actual values. 1 indicates care, 0 indicates don’t-care. If not specified, the previously specified MASK for this command is used. Bits are packed into bytes least-significant-bit and least-significant-byte first, and the vector is automatically zero-padded to contain enough bits for the length.

smask: Option<Vec<u8>>

Mask TDI data. 1 indicates care, 0 indicates don’t-care. If not specified, the previously specified SMASK for this command is used. Bits are packed into bytes least-significant-bit and least-significant-byte first, and the vector is automatically zero-padded to contain enough bits for the length.

Trait Implementations

impl Clone for Pattern[src]

impl Debug for Pattern[src]

impl Display for Pattern[src]

impl PartialEq<Pattern> for Pattern[src]

impl StructuralPartialEq for Pattern[src]

Auto Trait Implementations

impl RefUnwindSafe for Pattern

impl Send for Pattern

impl Sync for Pattern

impl Unpin for Pattern

impl UnwindSafe for Pattern

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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

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.