[][src]Struct xc2bit::XC2Bitstream

pub struct XC2Bitstream {
    pub speed_grade: XC2Speed,
    pub package: XC2Package,
    pub bits: XC2BitstreamBits,
}

Toplevel struct representing an entire Coolrunner-II bitstream

Fields

speed_grade: XC2Speedpackage: XC2Packagebits: XC2BitstreamBits

Methods

impl XC2Bitstream[src]

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

Dump a human-readable explanation of the bitstream to the given writer object.

pub fn to_jed<W: Write>(&self, writer: W) -> Result<(), Error>[src]

Write a .jed representation of the bitstream to the given writer object.

pub fn to_crbit(&self) -> FuseArray[src]

Converts the bitstream into a FuseArray object so that it can be written to the native "crbit" format

pub fn from_jed(jed: &JEDECFile) -> Result<Self, XC2BitError>[src]

Processes a fuse array into a bitstream object

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

Processes a fuse array (in physical addressing) into a bitstream object

pub fn blank_bitstream(part_combination: XC2DeviceSpeedPackage) -> Self[src]

Construct a new blank bitstream of the given part

Trait Implementations

impl Serialize for XC2Bitstream[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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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.