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

Ratio that input clock is divided by

Whether the "delay" feature is enabled

Whether the clock divider is enabled (other settings are ignored if not)

Methods

impl XC2ClockDiv
[src]

[src]

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

impl XC2ClockDiv
[src]

[src]

Internal function to read the clock divider configuration from a 128-macrocell part

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for XC2ClockDiv
[src]

impl PartialEq for XC2ClockDiv
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for XC2ClockDiv
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for XC2ClockDiv
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for XC2ClockDiv
[src]

[src]

Returns a "default" clock divider configuration, which is one that is not used

Auto Trait Implementations

impl Send for XC2ClockDiv

impl Sync for XC2ClockDiv