[−][src]Struct xc2bit::XC2BitstreamFB
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]
&self,
device: XC2Device,
fb: u32,
writer: W
) -> Result<(), Error>
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]
device: XC2Device,
fb: u32,
fuse_array: &FuseArray
) -> Result<Self, XC2BitError>
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]
&self,
device: XC2Device,
fuse_base: usize,
jed: &mut JEDECFile,
linebreaks: &mut LinebreakSet
)
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]
device: XC2Device,
fuses: &[bool],
fb: u32,
fuse_base: usize
) -> Result<XC2BitstreamFB, XC2BitError>
Internal function that reads a function block
Trait Implementations
impl Clone for XC2BitstreamFB
[src]
fn clone(&self) -> XC2BitstreamFB
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for XC2BitstreamFB
[src]
impl Debug for XC2BitstreamFB
[src]
impl Default for XC2BitstreamFB
[src]
impl<'de> Deserialize<'de> for XC2BitstreamFB
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for XC2BitstreamFB
[src]
impl Hash for XC2BitstreamFB
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<XC2BitstreamFB> for XC2BitstreamFB
[src]
fn eq(&self, other: &XC2BitstreamFB) -> bool
[src]
fn ne(&self, other: &XC2BitstreamFB) -> bool
[src]
impl Serialize for XC2BitstreamFB
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for XC2BitstreamFB
[src]
impl StructuralPartialEq for XC2BitstreamFB
[src]
Auto Trait Implementations
impl RefUnwindSafe for XC2BitstreamFB
impl Send for XC2BitstreamFB
impl Sync for XC2BitstreamFB
impl Unpin for XC2BitstreamFB
impl UnwindSafe for XC2BitstreamFB
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,