Struct embassy_stm32::hrtim::ResonantConverter
source · pub struct ResonantConverter<T: Instance, C: AdvancedChannel<T>> { /* private fields */ }
Expand description
Variable-frequency resonant converter driver.
This implementation of a resonsant converter is appropriate for a half or full bridge, but does not include secondary rectification, which is appropriate for applications with a low-voltage on the secondary side.
Implementations§
source§impl<T: Instance, C: AdvancedChannel<T>> ResonantConverter<T, C>
impl<T: Instance, C: AdvancedChannel<T>> ResonantConverter<T, C>
sourcepub fn new(_channel: C, min_frequency: Hertz, max_frequency: Hertz) -> Self
pub fn new(_channel: C, min_frequency: Hertz, max_frequency: Hertz) -> Self
Create a new variable-frequency resonant converter driver.
sourcepub fn set_dead_time(&mut self, value: u16)
pub fn set_dead_time(&mut self, value: u16)
Set the dead time as a proportion of the maximum compare value
sourcepub fn set_period(&mut self, period: u16)
pub fn set_period(&mut self, period: u16)
Set the timer period.
sourcepub fn get_min_period(&mut self) -> u16
pub fn get_min_period(&mut self) -> u16
Get the minimum compare value of a duty cycle
sourcepub fn get_max_period(&mut self) -> u16
pub fn get_max_period(&mut self) -> u16
Get the maximum compare value of a duty cycle
Auto Trait Implementations§
impl<T, C> RefUnwindSafe for ResonantConverter<T, C>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for ResonantConverter<T, C>
impl<T, C> Sync for ResonantConverter<T, C>
impl<T, C> Unpin for ResonantConverter<T, C>
impl<T, C> UnwindSafe for ResonantConverter<T, C>where
C: UnwindSafe,
T: UnwindSafe,
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