[−][src]Struct ecpdap::jtag::IDCODE
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
impl RefUnwindSafe for IDCODE
[src]
impl Send for IDCODE
[src]
impl Sync for IDCODE
[src]
impl Unpin for IDCODE
[src]
impl UnwindSafe for IDCODE
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,