pub struct DeadtimeConfig { /* private fields */ }Implementations§
Source§impl DeadtimeConfig
impl DeadtimeConfig
Sourcepub fn prescaler(self, value: DeadtimePrescaler) -> DeadtimeConfig
pub fn prescaler(self, value: DeadtimePrescaler) -> DeadtimeConfig
See RM0440 Table 221 ‘Deadtime resolution and max absolute values’
Sourcepub fn deadtime_rising_value(self, value: u16) -> DeadtimeConfig
pub fn deadtime_rising_value(self, value: u16) -> DeadtimeConfig
Panic if value can not fit in 9 bits
pub fn deadtime_rising_sign(self, is_negative: bool) -> DeadtimeConfig
Sourcepub fn deadtime_falling_value(self, value: u16) -> DeadtimeConfig
pub fn deadtime_falling_value(self, value: u16) -> DeadtimeConfig
Panic if value can not fit in 9 bits
pub fn deadtime_falling_sign(self, is_negative: bool) -> DeadtimeConfig
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§fn clone_from(&mut self, source: &Self)
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
Source§fn default() -> DeadtimeConfig
fn default() -> DeadtimeConfig
Returns the “default value” for a type. Read more
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