pub struct FullBridgeConverter<'d, T: Instance> { /* private fields */ }Expand description
Fixed-frequency full-bridge converter driver.
Implementations§
Source§impl<'d, T: Instance> FullBridgeConverter<'d, T>
impl<'d, T: Instance> FullBridgeConverter<'d, T>
Sourcepub fn new(
ch1: TimingUnit<'d, T>,
ch2: TimingUnit<'d, T>,
frequency: Hertz,
) -> Self
pub fn new( ch1: TimingUnit<'d, T>, ch2: TimingUnit<'d, T>, frequency: Hertz, ) -> Self
Create a new HRTIM bridge converter driver.
Sourcepub fn get_max_compare_value_master(&mut self) -> u16
pub fn get_max_compare_value_master(&mut self) -> u16
Get the maximum compare value of a duty cycle
Sourcepub fn get_max_compare_value_ch1(&mut self) -> u16
pub fn get_max_compare_value_ch1(&mut self) -> u16
Get the maximum compare value of a duty cycle
Sourcepub fn get_max_compare_value_ch2(&mut self) -> u16
pub fn get_max_compare_value_ch2(&mut self) -> u16
Get the maximum compare value of a duty cycle
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_duty(&mut self, requested_duty: u16)
pub fn set_duty(&mut self, requested_duty: u16)
The duty is the period in which the primary switch is active
Sourcepub fn enable_outputs(&mut self)
pub fn enable_outputs(&mut self)
The duty is the period in which the primary switch is active
Sourcepub fn disable_outputs(&mut self)
pub fn disable_outputs(&mut self)
The duty is the period in which the primary switch is active
Sourcepub fn set_minimum_duty(&mut self, duty: u16)
pub fn set_minimum_duty(&mut self, duty: u16)
Set minimum FET pulse width in counts
Auto Trait Implementations§
impl<'d, T> !UnwindSafe for FullBridgeConverter<'d, T>
impl<'d, T> Forget for FullBridgeConverter<'d, T>
impl<'d, T> Freeze for FullBridgeConverter<'d, T>where
TimingUnit<'d, T>: Freeze,
impl<'d, T> Move for FullBridgeConverter<'d, T>
impl<'d, T> RefUnwindSafe for FullBridgeConverter<'d, T>where
TimingUnit<'d, T>: RefUnwindSafe,
impl<'d, T> Send for FullBridgeConverter<'d, T>where
TimingUnit<'d, T>: Send,
impl<'d, T> Sync for FullBridgeConverter<'d, T>where
TimingUnit<'d, T>: Sync,
impl<'d, T> Unpin for FullBridgeConverter<'d, T>where
TimingUnit<'d, T>: Unpin,
impl<'d, T> UnsafeUnpin for FullBridgeConverter<'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