pub struct ClockOutputSetting(pub ClockDutyCycle, pub ClockFrequency);Expand description
Clock output duty cycle and frequency.
If GP1 is configured for clock output (see Gp1Mode::ClockOutput), this
setting determines the characteristics of the clock signal.
§Datasheet
See register 1-2 for details. In the USB command section the datasheet is worded as if this is just a 5-bit divider, but really it is a 2-bit duty cycle selection, and a 3-bit frequency selection.
Tuple Fields§
§0: ClockDutyCycleThe duty cycle (period high) of the clock output signal.
1: ClockFrequencyThe frequency of the clock output signal.
Trait Implementations§
Source§impl Clone for ClockOutputSetting
impl Clone for ClockOutputSetting
Source§fn clone(&self) -> ClockOutputSetting
fn clone(&self) -> ClockOutputSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClockOutputSetting
Source§impl Debug for ClockOutputSetting
impl Debug for ClockOutputSetting
Source§impl Default for ClockOutputSetting
impl Default for ClockOutputSetting
Source§fn default() -> ClockOutputSetting
fn default() -> ClockOutputSetting
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClockOutputSetting
impl RefUnwindSafe for ClockOutputSetting
impl Send for ClockOutputSetting
impl Sync for ClockOutputSetting
impl Unpin for ClockOutputSetting
impl UnsafeUnpin for ClockOutputSetting
impl UnwindSafe for ClockOutputSetting
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more