pub struct ShepherdBmsFanPercent(/* private fields */);Implementations§
Source§impl ShepherdBmsFanPercent
impl ShepherdBmsFanPercent
Sourcepub const fn pwm_duty(&self) -> u8
pub const fn pwm_duty(&self) -> u8
Control duty cycle (%) of BMS fan
Units: % (in whole number)
Bits: 0..8
Sourcepub const fn with_pwm_duty_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_pwm_duty_checked(self, value: u8) -> Result<Self, ()>
Control duty cycle (%) of BMS fan
Units: % (in whole number)
Bits: 0..8
Sourcepub const fn with_pwm_duty(self, value: u8) -> Self
pub const fn with_pwm_duty(self, value: u8) -> Self
Control duty cycle (%) of BMS fan
Units: % (in whole number)
Bits: 0..8
Sourcepub const fn set_pwm_duty(&mut self, value: u8)
pub const fn set_pwm_duty(&mut self, value: u8)
Control duty cycle (%) of BMS fan
Units: % (in whole number)
Bits: 0..8
Trait Implementations§
Source§impl Clone for ShepherdBmsFanPercent
impl Clone for ShepherdBmsFanPercent
Source§fn clone(&self) -> ShepherdBmsFanPercent
fn clone(&self) -> ShepherdBmsFanPercent
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 Debug for ShepherdBmsFanPercent
impl Debug for ShepherdBmsFanPercent
Source§impl Default for ShepherdBmsFanPercent
impl Default for ShepherdBmsFanPercent
Source§impl From<ShepherdBmsFanPercent> for u8
impl From<ShepherdBmsFanPercent> for u8
Source§fn from(v: ShepherdBmsFanPercent) -> Self
fn from(v: ShepherdBmsFanPercent) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ShepherdBmsFanPercent
impl From<u8> for ShepherdBmsFanPercent
Source§impl ToCanFrame for ShepherdBmsFanPercent
impl ToCanFrame for ShepherdBmsFanPercent
impl Copy for ShepherdBmsFanPercent
Auto Trait Implementations§
impl Freeze for ShepherdBmsFanPercent
impl RefUnwindSafe for ShepherdBmsFanPercent
impl Send for ShepherdBmsFanPercent
impl Sync for ShepherdBmsFanPercent
impl Unpin for ShepherdBmsFanPercent
impl UnwindSafe for ShepherdBmsFanPercent
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