pub struct DeadtimeConfig { /* private fields */ }
Implementations§
Source§impl DeadtimeConfig
impl DeadtimeConfig
Sourcepub fn prescaler(self, value: DeadtimePrescaler) -> Self
pub fn prescaler(self, value: DeadtimePrescaler) -> Self
See RM0440 Table 221 ‘Deadtime resolution and max absolute values’
Sourcepub fn deadtime_rising_value(self, value: u16) -> Self
pub fn deadtime_rising_value(self, value: u16) -> Self
Panic if value can not fit in 9 bits
pub fn deadtime_rising_sign(self, is_negative: bool) -> Self
Sourcepub fn deadtime_falling_value(self, value: u16) -> Self
pub fn deadtime_falling_value(self, value: u16) -> Self
Panic if value can not fit in 9 bits
pub fn deadtime_falling_sign(self, is_negative: bool) -> Self
Trait Implementations§
Source§impl Clone for DeadtimeConfig
impl Clone for DeadtimeConfig
Source§fn clone(&self) -> DeadtimeConfig
fn clone(&self) -> DeadtimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeadtimeConfig
impl Debug for DeadtimeConfig
Source§impl Default for DeadtimeConfig
impl Default for DeadtimeConfig
impl Copy for DeadtimeConfig
Auto Trait Implementations§
impl Freeze for DeadtimeConfig
impl RefUnwindSafe for DeadtimeConfig
impl Send for DeadtimeConfig
impl Sync for DeadtimeConfig
impl Unpin for DeadtimeConfig
impl UnwindSafe for DeadtimeConfig
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