Embassy
embassy-stm32

Crates

git

Versions

stm32g484re

Flavors

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>

source

pub fn new(_channel: C, min_frequency: Hertz, max_frequency: Hertz) -> Self

Create a new variable-frequency resonant converter driver.

source

pub fn set_dead_time(&mut self, value: u16)

Set the dead time as a proportion of the maximum compare value

source

pub fn set_period(&mut self, period: u16)

Set the timer period.

source

pub fn get_min_period(&mut self) -> u16

Get the minimum compare value of a duty cycle

source

pub fn get_max_period(&mut self) -> u16

Get the maximum compare value of a duty cycle

Auto Trait Implementations§

§

impl<T, C> Freeze for ResonantConverter<T, C>

§

impl<T, C> RefUnwindSafe for ResonantConverter<T, C>

§

impl<T, C> Send for ResonantConverter<T, C>
where T: Send, C: Send,

§

impl<T, C> Sync for ResonantConverter<T, C>
where T: Sync, C: Sync,

§

impl<T, C> Unpin for ResonantConverter<T, C>
where T: Unpin, C: Unpin,

§

impl<T, C> UnwindSafe for ResonantConverter<T, C>
where T: UnwindSafe, C: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.