Struct xc2bit::XC2MCSmallIOB
[−]
[src]
pub struct XC2MCSmallIOB { pub zia_mode: XC2IOBZIAMode, pub schmitt_trigger: bool, pub obuf_uses_ff: bool, pub obuf_mode: XC2IOBOBufMode, pub termination_enabled: bool, pub slew_is_fast: bool, }
Represents an I/O pin on "small" (32 and 64 macrocell) devices.
Fields
zia_mode: XC2IOBZIAMode
Mux selection for the ZIA input for this pin
schmitt_trigger: bool
Whether the Schmitt trigger is being used on this pin's input
obuf_uses_ff: bool
Selects the source used to drive this pin's output (if the output is enabled).
false
selects the XOR gate in the macrocell (combinatorial output), and true
selects the register output
(registered output).
obuf_mode: XC2IOBOBufMode
Selects the output mode for this pin
termination_enabled: bool
Selects if the global termination (bus hold or pull-up) is enabled on this pin
slew_is_fast: bool
Selects if fast slew rate is used on this pin
Methods
impl XC2MCSmallIOB
[src]
pub fn encode_jed_internal<T: ?Sized>(&self, fuses: &mut T, start_coord: usize) where
T: IndexMut<usize, Output = bool>,
[src]
T: IndexMut<usize, Output = bool>,
impl XC2MCSmallIOB
[src]
pub fn decode_jed_internal<T: ?Sized>(
fuses: &T,
start_coord: usize
) -> Result<Self, XC2BitError> where
T: Index<usize, Output = bool>,
[src]
fuses: &T,
start_coord: usize
) -> Result<Self, XC2BitError> where
T: Index<usize, Output = bool>,
impl XC2MCSmallIOB
[src]
pub fn dump_human_readable<W: Write>(
&self,
device: XC2Device,
my_idx: u32,
writer: W
) -> Result<(), Error>
[src]
&self,
device: XC2Device,
my_idx: u32,
writer: W
) -> Result<(), Error>
Dump a human-readable explanation of the settings for this pin to the given writer
object.
my_idx
must be the index of this I/O pin in the internal numbering scheme.
pub fn to_crbit(&self, device: XC2Device, iob: u32, fuse_array: &mut FuseArray)
[src]
Write the crbit representation of the settings for this IO pin to the given fuse_array
.
device
must be the device type this FB was extracted from.
iob
must be the index of this IO pin.
pub fn from_crbit(
device: XC2Device,
iob: u32,
fuse_array: &FuseArray
) -> Result<Self, XC2BitError>
[src]
device: XC2Device,
iob: u32,
fuse_array: &FuseArray
) -> Result<Self, XC2BitError>
Read the crbit representation of the settings for this IO pin from the given fuse_array
.
device
must be the device type this FB was extracted from.
iob
must be the index of this IO pin.
pub fn from_jed(fuses: &[bool], fuse_idx: usize) -> Result<Self, XC2BitError>
[src]
Internal function that reads only the IO-related bits from the macrocell configuration
pub fn to_jed(
&self,
jed: &mut JEDECFile,
device: XC2Device,
fuse_base: usize,
i: usize
)
[src]
&self,
jed: &mut JEDECFile,
device: XC2Device,
fuse_base: usize,
i: usize
)
Helper that prints the IOB and macrocell configuration on the "small" parts
Trait Implementations
impl Copy for XC2MCSmallIOB
[src]
impl Clone for XC2MCSmallIOB
[src]
fn clone(&self) -> XC2MCSmallIOB
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for XC2MCSmallIOB
[src]
impl PartialEq for XC2MCSmallIOB
[src]
fn eq(&self, __arg_0: &XC2MCSmallIOB) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2MCSmallIOB) -> bool
[src]
This method tests for !=
.
impl Hash for XC2MCSmallIOB
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for XC2MCSmallIOB
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more