[][src]Struct xc2bit::XC2BitstreamFB

pub struct XC2BitstreamFB {
    pub or_terms: [XC2PLAOrTerm; 16],
    pub mcs: [XC2Macrocell; 16],
    // some fields omitted
}

Represents a collection of all the parts that make up one function block

Fields

or_terms: [XC2PLAOrTerm; 16]

The OR terms of the PLA part of the function block

mcs: [XC2Macrocell; 16]

The macrocells of the function block

Methods

impl XC2BitstreamFB[src]

pub fn get_andterm(&self, i: usize) -> &XC2PLAAndTerm[src]

pub fn get_mut_andterm(&mut self, i: usize) -> &mut XC2PLAAndTerm[src]

pub fn get_zia(&self, i: usize) -> &XC2ZIAInput[src]

pub fn get_mut_zia(&mut self, i: usize) -> &mut XC2ZIAInput[src]

impl XC2BitstreamFB[src]

pub fn dump_human_readable<W: Write>(
    &self,
    device: XC2Device,
    fb: u32,
    writer: W
) -> Result<(), Error>
[src]

Dump a human-readable explanation of the settings for this FB to the given writer object. device must be the device type this FB was extracted from and is needed to decode I/O pin numbers. fb must be the index of this function block.

pub fn to_crbit(&self, device: XC2Device, fb: u32, fuse_array: &mut FuseArray)[src]

Write the crbit representation of the settings for this FB to the given fuse_array. device must be the device type this FB was extracted from. fb must be the index of this function block.

pub fn from_crbit(
    device: XC2Device,
    fb: u32,
    fuse_array: &FuseArray
) -> Result<Self, XC2BitError>
[src]

Reads the crbit representation of the settings for this FB from the given fuse_array. device must be the device type this FB was extracted from. fb must be the index of this function block.

pub fn to_jed(
    &self,
    device: XC2Device,
    fuse_base: usize,
    jed: &mut JEDECFile,
    linebreaks: &mut LinebreakSet
)
[src]

Write the .JED representation of the settings for this FB to the given jed object. device must be the device type this FB was extracted from and is needed to encode the ZIA. fuse_base must be the starting fuse number of this function block.

pub fn from_jed(
    device: XC2Device,
    fuses: &[bool],
    fb: u32,
    fuse_base: usize
) -> Result<XC2BitstreamFB, XC2BitError>
[src]

Internal function that reads a function block

Trait Implementations

impl Clone for XC2BitstreamFB[src]

impl Copy for XC2BitstreamFB[src]

impl Debug for XC2BitstreamFB[src]

impl Default for XC2BitstreamFB[src]

impl<'de> Deserialize<'de> for XC2BitstreamFB[src]

impl Eq for XC2BitstreamFB[src]

impl Hash for XC2BitstreamFB[src]

impl PartialEq<XC2BitstreamFB> for XC2BitstreamFB[src]

impl Serialize for XC2BitstreamFB[src]

impl StructuralEq for XC2BitstreamFB[src]

impl StructuralPartialEq for XC2BitstreamFB[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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

type Owned = T

The resulting type after obtaining ownership.

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.