[][src]Struct ecpdap::jtag::IDCODE

pub struct IDCODE(pub u32);

Implementations

impl IDCODE[src]

pub fn valid(&self) -> bool[src]

pub fn manufacturer(&self) -> u16[src]

Extract the manufacturer ID, which is an 11-bit field in bits 1-11.

pub fn manufacturer_name(&self) -> Option<&'static str>[src]

Return the manufacturer name, if available.

pub fn part_number(&self) -> u16[src]

Extract the part number, which is a 16-bit field in bits 12-27.

pub fn version(&self) -> u8[src]

Extract the IDCODE version, which is a 4-bit field in bits 28-31.

pub fn try_to_ecp5(&self) -> Option<ECP5IDCODE>[src]

Convert to an ECP5IDCODE if this IDCODE belongs to an ECP5.

Trait Implementations

impl Clone for IDCODE[src]

impl Copy for IDCODE[src]

impl Debug for IDCODE[src]

impl Display for IDCODE[src]

impl PartialEq<IDCODE> for IDCODE[src]

impl StructuralPartialEq for IDCODE[src]

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> 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, 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.