pub struct CurrentCellBalancingPwmDutyCycle(/* private fields */);Implementations§
Source§impl CurrentCellBalancingPwmDutyCycle
impl CurrentCellBalancingPwmDutyCycle
Sourcepub const fn balancing_pwm_duty_cycle(&self) -> f32
pub const fn balancing_pwm_duty_cycle(&self) -> f32
Current cell balancing PWM duty cycle
Units: %
Bits: 0..16
Sourcepub const fn with_balancing_pwm_duty_cycle_checked(
self,
value: f32,
) -> Result<Self, ()>
pub const fn with_balancing_pwm_duty_cycle_checked( self, value: f32, ) -> Result<Self, ()>
Current cell balancing PWM duty cycle
Units: %
Bits: 0..16
Sourcepub const fn with_balancing_pwm_duty_cycle(self, value: f32) -> Self
pub const fn with_balancing_pwm_duty_cycle(self, value: f32) -> Self
Current cell balancing PWM duty cycle
Units: %
Bits: 0..16
Sourcepub const fn set_balancing_pwm_duty_cycle(&mut self, value: f32)
pub const fn set_balancing_pwm_duty_cycle(&mut self, value: f32)
Current cell balancing PWM duty cycle
Units: %
Bits: 0..16
Source§impl CurrentCellBalancingPwmDutyCycle
impl CurrentCellBalancingPwmDutyCycle
Sourcepub fn try_with_balancing_pwm_duty_cycle(
self,
v: f32,
) -> Result<Self, OutOfRange>
pub fn try_with_balancing_pwm_duty_cycle( self, v: f32, ) -> Result<Self, OutOfRange>
Like Self::with_balancing_pwm_duty_cycle but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_balancing_pwm_duty_cycle(
&mut self,
v: f32,
) -> Result<(), OutOfRange>
pub fn try_set_balancing_pwm_duty_cycle( &mut self, v: f32, ) -> Result<(), OutOfRange>
Like Self::set_balancing_pwm_duty_cycle but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for CurrentCellBalancingPwmDutyCycle
impl Clone for CurrentCellBalancingPwmDutyCycle
Source§fn clone(&self) -> CurrentCellBalancingPwmDutyCycle
fn clone(&self) -> CurrentCellBalancingPwmDutyCycle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<CurrentCellBalancingPwmDutyCycle> for u16
impl From<CurrentCellBalancingPwmDutyCycle> for u16
Source§fn from(v: CurrentCellBalancingPwmDutyCycle) -> Self
fn from(v: CurrentCellBalancingPwmDutyCycle) -> Self
Converts to this type from the input type.
Source§impl From<u16> for CurrentCellBalancingPwmDutyCycle
impl From<u16> for CurrentCellBalancingPwmDutyCycle
impl Copy for CurrentCellBalancingPwmDutyCycle
Auto Trait Implementations§
impl Freeze for CurrentCellBalancingPwmDutyCycle
impl RefUnwindSafe for CurrentCellBalancingPwmDutyCycle
impl Send for CurrentCellBalancingPwmDutyCycle
impl Sync for CurrentCellBalancingPwmDutyCycle
impl Unpin for CurrentCellBalancingPwmDutyCycle
impl UnwindSafe for CurrentCellBalancingPwmDutyCycle
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