pub struct BridgeConverter<T: Instance, C: AdvancedChannel<T>> { /* private fields */ }
Expand description
Fixed-frequency bridge converter driver.
Our implementation of the bridge converter uses a single channel and three compare registers, allowing implementation of a synchronous buck or boost converter in continuous or discontinuous conduction mode.
It is important to remember that in synchronous topologies, energy can flow in reverse during light loading conditions, and that the low-side switch must be active for a short time to drive a bootstrapped high-side switch.
Implementations§
Source§impl<T: Instance, C: AdvancedChannel<T>> BridgeConverter<T, C>
impl<T: Instance, C: AdvancedChannel<T>> BridgeConverter<T, C>
Sourcepub fn enable_burst_mode(&mut self)
pub fn enable_burst_mode(&mut self)
Enable burst mode.
Sourcepub fn disable_burst_mode(&mut self)
pub fn disable_burst_mode(&mut self)
Disable burst mode.
Sourcepub fn set_dead_time(&mut self, dead_time: u16)
pub fn set_dead_time(&mut self, dead_time: u16)
Set the dead time as a proportion of the maximum compare value
Sourcepub fn get_max_compare_value(&mut self) -> u16
pub fn get_max_compare_value(&mut self) -> u16
Get the maximum compare value of a duty cycle
Sourcepub fn set_primary_duty(&mut self, primary_duty: u16)
pub fn set_primary_duty(&mut self, primary_duty: u16)
The primary duty is the period in which the primary switch is active
In the case of a buck converter, this is the high-side switch In the case of a boost converter, this is the low-side switch
Sourcepub fn set_secondary_duty(&mut self, secondary_duty: u16)
pub fn set_secondary_duty(&mut self, secondary_duty: u16)
The secondary duty is the period in any switch is active
If less than or equal to the primary duty, the secondary switch will be active for one tick If a fully complementary output is desired, the secondary duty can be set to the max compare