pub enum GclkDiv8 {
Div(u8),
Div2Pow8,
Div2Pow9,
}
Expand description
Enum for the clock division factor of all Gclk
s other than Gclk1
Choosing a Gclk
division factor can be complicated, because the set of
valid values is not contiguous. For clocks other than Gclk1
, the
division factor can be 1-256 or 512. GclkDiv8
provides an enum interface
to enforce validity of the division factor. See the datasheet for more
details.
Variants
Div(u8)
Use a literal division factor
All values in the range [1-255]
are valid. Zero is also valid, but it
is interpreted as 1
.
Div2Pow8
Use a division factor of 2^8 = 256
Div2Pow9
Use a division factor of 2^9 = 512
Trait Implementations
sourceimpl GclkDivider for GclkDiv8
impl GclkDivider for GclkDiv8
impl Copy for GclkDiv8
Auto Trait Implementations
impl RefUnwindSafe for GclkDiv8
impl Send for GclkDiv8
impl Sync for GclkDiv8
impl Unpin for GclkDiv8
impl UnwindSafe for GclkDiv8
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more