Struct xc2bit::XC2ClockDiv
[−]
[src]
pub struct XC2ClockDiv { pub div_ratio: XC2ClockDivRatio, pub delay: bool, pub enabled: bool, }
Represents the configuration of the programmable clock divider in devices with 128 macrocells or more. This is hard-wired onto the GCK2 clock pin.
Fields
div_ratio: XC2ClockDivRatio
Ratio that input clock is divided by
delay: bool
Whether the "delay" feature is enabled
enabled: bool
Whether the clock divider is enabled (other settings are ignored if not)
Methods
impl XC2ClockDiv
[src]
pub fn dump_human_readable<W: Write>(&self, writer: W) -> Result<(), Error>
[src]
Dump a human-readable explanation of the clock divider to the given writer
object.
impl XC2ClockDiv
[src]
pub fn from_jed(device: XC2Device, fuses: &[bool]) -> Self
[src]
Internal function to read the clock divider configuration from a 128-macrocell part
pub fn from_crbit(device: XC2Device, fuse_array: &FuseArray) -> Self
[src]
Internal function to read the clock divider configuration from a 128-macrocell part
Trait Implementations
impl Copy for XC2ClockDiv
[src]
impl Clone for XC2ClockDiv
[src]
fn clone(&self) -> XC2ClockDiv
[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 XC2ClockDiv
[src]
impl PartialEq for XC2ClockDiv
[src]
fn eq(&self, __arg_0: &XC2ClockDiv) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2ClockDiv) -> bool
[src]
This method tests for !=
.
impl Hash for XC2ClockDiv
[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 XC2ClockDiv
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more