pub struct LvBoxFanPwm(/* private fields */);Implementations§
Source§impl LvBoxFanPwm
impl LvBoxFanPwm
Sourcepub const fn fan_pwm_percentage(&self) -> u8
pub const fn fan_pwm_percentage(&self) -> u8
LV Box Fan PWM Percentage
Range from 0 to 100. This is the commanded fan PWM duty cycle in percent.(0% at 20°C and 100% at 40°C).
Units: %
Bits: 0..8
Sourcepub const fn with_fan_pwm_percentage_checked(
self,
value: u8,
) -> Result<Self, ()>
pub const fn with_fan_pwm_percentage_checked( self, value: u8, ) -> Result<Self, ()>
LV Box Fan PWM Percentage
Range from 0 to 100. This is the commanded fan PWM duty cycle in percent.(0% at 20°C and 100% at 40°C).
Units: %
Bits: 0..8
Sourcepub const fn with_fan_pwm_percentage(self, value: u8) -> Self
pub const fn with_fan_pwm_percentage(self, value: u8) -> Self
LV Box Fan PWM Percentage
Range from 0 to 100. This is the commanded fan PWM duty cycle in percent.(0% at 20°C and 100% at 40°C).
Units: %
Bits: 0..8
Sourcepub const fn set_fan_pwm_percentage(&mut self, value: u8)
pub const fn set_fan_pwm_percentage(&mut self, value: u8)
LV Box Fan PWM Percentage
Range from 0 to 100. This is the commanded fan PWM duty cycle in percent.(0% at 20°C and 100% at 40°C).
Units: %
Bits: 0..8
Trait Implementations§
Source§impl Clone for LvBoxFanPwm
impl Clone for LvBoxFanPwm
Source§fn clone(&self) -> LvBoxFanPwm
fn clone(&self) -> LvBoxFanPwm
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 LvBoxFanPwm
impl Debug for LvBoxFanPwm
Source§impl Default for LvBoxFanPwm
impl Default for LvBoxFanPwm
Source§impl From<LvBoxFanPwm> for u8
impl From<LvBoxFanPwm> for u8
Source§fn from(v: LvBoxFanPwm) -> Self
fn from(v: LvBoxFanPwm) -> Self
Converts to this type from the input type.
Source§impl From<u8> for LvBoxFanPwm
impl From<u8> for LvBoxFanPwm
Source§impl ToCanFrame for LvBoxFanPwm
impl ToCanFrame for LvBoxFanPwm
impl Copy for LvBoxFanPwm
Auto Trait Implementations§
impl Freeze for LvBoxFanPwm
impl RefUnwindSafe for LvBoxFanPwm
impl Send for LvBoxFanPwm
impl Sync for LvBoxFanPwm
impl Unpin for LvBoxFanPwm
impl UnwindSafe for LvBoxFanPwm
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