pub struct MaxDcBrakeCurrentCommand(/* private fields */);Implementations§
Source§impl MaxDcBrakeCurrentCommand
impl MaxDcBrakeCurrentCommand
Sourcepub const fn max_dc_brake_current_target(&self) -> f32
pub const fn max_dc_brake_current_target(&self) -> f32
This value determines the maximum allowable brake current on the DC side
With this command the BMS can limit the maximum allowable battery charge current. The value has to be multiplied by 10 before sending. Only negative currents are accepted
Units: A
Bits: 0..16
Sourcepub const fn with_max_dc_brake_current_target_checked(
self,
value: f32,
) -> Result<Self, ()>
pub const fn with_max_dc_brake_current_target_checked( self, value: f32, ) -> Result<Self, ()>
This value determines the maximum allowable brake current on the DC side
With this command the BMS can limit the maximum allowable battery charge current. The value has to be multiplied by 10 before sending. Only negative currents are accepted
Units: A
Bits: 0..16
Sourcepub const fn with_max_dc_brake_current_target(self, value: f32) -> Self
pub const fn with_max_dc_brake_current_target(self, value: f32) -> Self
This value determines the maximum allowable brake current on the DC side
With this command the BMS can limit the maximum allowable battery charge current. The value has to be multiplied by 10 before sending. Only negative currents are accepted
Units: A
Bits: 0..16
Sourcepub const fn set_max_dc_brake_current_target(&mut self, value: f32)
pub const fn set_max_dc_brake_current_target(&mut self, value: f32)
This value determines the maximum allowable brake current on the DC side
With this command the BMS can limit the maximum allowable battery charge current. The value has to be multiplied by 10 before sending. Only negative currents are accepted
Units: A
Bits: 0..16
Sourcepub const fn set_max_dc_brake_current_target_checked(
&mut self,
value: f32,
) -> Result<(), ()>
pub const fn set_max_dc_brake_current_target_checked( &mut self, value: f32, ) -> Result<(), ()>
This value determines the maximum allowable brake current on the DC side
With this command the BMS can limit the maximum allowable battery charge current. The value has to be multiplied by 10 before sending. Only negative currents are accepted
Units: A
Bits: 0..16
Source§impl MaxDcBrakeCurrentCommand
impl MaxDcBrakeCurrentCommand
Sourcepub fn try_with_max_dc_brake_current_target(
self,
v: f32,
) -> Result<Self, OutOfRange>
pub fn try_with_max_dc_brake_current_target( self, v: f32, ) -> Result<Self, OutOfRange>
Like Self::with_max_dc_brake_current_target but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_max_dc_brake_current_target(
&mut self,
v: f32,
) -> Result<(), OutOfRange>
pub fn try_set_max_dc_brake_current_target( &mut self, v: f32, ) -> Result<(), OutOfRange>
Like Self::set_max_dc_brake_current_target but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for MaxDcBrakeCurrentCommand
impl Clone for MaxDcBrakeCurrentCommand
Source§fn clone(&self) -> MaxDcBrakeCurrentCommand
fn clone(&self) -> MaxDcBrakeCurrentCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more