[−][src]Struct xc2bit::XC2MCSmallIOB
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 Clone for XC2MCSmallIOB
[src]
fn clone(&self) -> XC2MCSmallIOB
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for XC2MCSmallIOB
[src]
impl Debug for XC2MCSmallIOB
[src]
impl Default for XC2MCSmallIOB
[src]
fn default() -> Self
[src]
Returns a "default" I/O pin configuration. The default state is for the output and the input into the ZIA to be disabled.
impl<'de> Deserialize<'de> for XC2MCSmallIOB
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for XC2MCSmallIOB
[src]
impl Hash for XC2MCSmallIOB
[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<XC2MCSmallIOB> for XC2MCSmallIOB
[src]
fn eq(&self, other: &XC2MCSmallIOB) -> bool
[src]
fn ne(&self, other: &XC2MCSmallIOB) -> bool
[src]
impl Serialize for XC2MCSmallIOB
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for XC2MCSmallIOB
[src]
impl StructuralPartialEq for XC2MCSmallIOB
[src]
Auto Trait Implementations
impl RefUnwindSafe for XC2MCSmallIOB
impl Send for XC2MCSmallIOB
impl Sync for XC2MCSmallIOB
impl Unpin for XC2MCSmallIOB
impl UnwindSafe for XC2MCSmallIOB
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>,