pub struct Config<CS> {
pub duty: Duty,
pub clock_source: CS,
pub frequency: Rate,
}
Available on crate feature
unstable
only.Expand description
Timer configuration
Fields§
§duty: Duty
The duty cycle resolution.
clock_source: CS
The clock source for the timer.
frequency: Rate
The frequency of the PWM signal in Hertz.
Trait Implementations§
Auto Trait Implementations§
impl<CS> Freeze for Config<CS>where
CS: Freeze,
impl<CS> RefUnwindSafe for Config<CS>where
CS: RefUnwindSafe,
impl<CS> Send for Config<CS>where
CS: Send,
impl<CS> Sync for Config<CS>where
CS: Sync,
impl<CS> Unpin for Config<CS>where
CS: Unpin,
impl<CS> UnwindSafe for Config<CS>where
CS: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)