pub enum GclkDiv16 {
Div(u16),
Div2Pow16,
Div2Pow17,
}
Expand description
Enum for the clock division factor of Gclk1
only
Choosing the Gclk1
division factor can be complicated, because the set
of valid values is not contiguous. For Gclk1
, the division factor can be
1-65536 or 131072. GclkDiv16
provides an enum interface to enforce
validity of the division factor. See the datasheet for more details.
Variants
Div(u16)
Use a literal division factor
All values in the range [1-65535]
are valid. Zero is also valid, but
it is interpreted as 1
.
Div2Pow16
Use a division factor of 2^16 = 65536
Div2Pow17
Use a division factor of 2^17 = 131072
Trait Implementations
sourceimpl GclkDivider for GclkDiv16
impl GclkDivider for GclkDiv16
impl Copy for GclkDiv16
Auto Trait Implementations
impl RefUnwindSafe for GclkDiv16
impl Send for GclkDiv16
impl Sync for GclkDiv16
impl Unpin for GclkDiv16
impl UnwindSafe for GclkDiv16
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