pub struct ResonantConverter<'d, T: Instance> { /* 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<'d, T: Instance> ResonantConverter<'d, T>
impl<'d, T: Instance> ResonantConverter<'d, T>
Sourcepub fn new(
ch: TimingUnit<'d, T>,
min_frequency: Hertz,
max_frequency: Hertz,
) -> Self
pub fn new( ch: TimingUnit<'d, T>, 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<'d, T> !UnwindSafe for ResonantConverter<'d, T>
impl<'d, T> Forget for ResonantConverter<'d, T>
impl<'d, T> Freeze for ResonantConverter<'d, T>where
TimingUnit<'d, T>: Freeze,
impl<'d, T> Move for ResonantConverter<'d, T>
impl<'d, T> RefUnwindSafe for ResonantConverter<'d, T>where
TimingUnit<'d, T>: RefUnwindSafe,
impl<'d, T> Send for ResonantConverter<'d, T>where
TimingUnit<'d, T>: Send,
impl<'d, T> Sync for ResonantConverter<'d, T>where
TimingUnit<'d, T>: Sync,
impl<'d, T> Unpin for ResonantConverter<'d, T>where
TimingUnit<'d, T>: Unpin,
impl<'d, T> UnsafeUnpin for ResonantConverter<'d, T>where
TimingUnit<'d, T>: UnsafeUnpin,
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