pub struct ChargerInterrupts { /* private fields */ }
Expand description
The charger interrupt flags
Implementations§
Source§impl ChargerInterrupts
impl ChargerInterrupts
Sourcepub const fn into_bytes(self) -> [u8; 1]
pub const fn into_bytes(self) -> [u8; 1]
Sourcepub const fn from_bytes(bytes: [u8; 1]) -> Self
pub const fn from_bytes(bytes: [u8; 1]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl ChargerInterrupts
impl ChargerInterrupts
Sourcepub fn bypass_node(&self) -> <bool as Specifier>::InOut
pub fn bypass_node(&self) -> <bool as Specifier>::InOut
Returns the value of bypass_node.
Sourcepub fn bypass_node_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn bypass_node_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of bypass_node.
#Errors
If the returned value contains an invalid bit pattern for bypass_node.
Sourcepub fn with_bypass_node(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_bypass_node(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of bypass_node set to the given value.
#Panics
If the given value is out of bounds for bypass_node.
Sourcepub fn with_bypass_node_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_bypass_node_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of bypass_node set to the given value.
#Errors
If the given value is out of bounds for bypass_node.
Sourcepub fn set_bypass_node(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_bypass_node(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of bypass_node to the given value.
#Panics
If the given value is out of bounds for bypass_node.
Sourcepub fn set_bypass_node_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_bypass_node_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of bypass_node to the given value.
#Errors
If the given value is out of bounds for bypass_node.
Sourcepub fn disqbat_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn disqbat_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of disqbat.
#Errors
If the returned value contains an invalid bit pattern for disqbat.
Sourcepub fn with_disqbat(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_disqbat(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of disqbat set to the given value.
#Panics
If the given value is out of bounds for disqbat.
Sourcepub fn with_disqbat_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_disqbat_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of disqbat set to the given value.
#Errors
If the given value is out of bounds for disqbat.
Sourcepub fn set_disqbat(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_disqbat(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of disqbat to the given value.
#Panics
If the given value is out of bounds for disqbat.
Sourcepub fn set_disqbat_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_disqbat_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of disqbat to the given value.
#Errors
If the given value is out of bounds for disqbat.
Sourcepub fn battery_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn battery_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of battery.
#Errors
If the returned value contains an invalid bit pattern for battery.
Sourcepub fn with_battery(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_battery(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of battery set to the given value.
#Panics
If the given value is out of bounds for battery.
Sourcepub fn with_battery_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_battery_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of battery set to the given value.
#Errors
If the given value is out of bounds for battery.
Sourcepub fn set_battery(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_battery(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of battery to the given value.
#Panics
If the given value is out of bounds for battery.
Sourcepub fn set_battery_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_battery_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of battery to the given value.
#Errors
If the given value is out of bounds for battery.
Sourcepub fn charger_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn charger_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of charger.
#Errors
If the returned value contains an invalid bit pattern for charger.
Sourcepub fn with_charger(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_charger(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of charger set to the given value.
#Panics
If the given value is out of bounds for charger.
Sourcepub fn with_charger_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_charger_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of charger set to the given value.
#Errors
If the given value is out of bounds for charger.
Sourcepub fn set_charger(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_charger(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of charger to the given value.
#Panics
If the given value is out of bounds for charger.
Sourcepub fn set_charger_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_charger_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of charger to the given value.
#Errors
If the given value is out of bounds for charger.
Sourcepub fn input_current_limit(&self) -> <bool as Specifier>::InOut
pub fn input_current_limit(&self) -> <bool as Specifier>::InOut
Returns the value of input_current_limit.
Sourcepub fn input_current_limit_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn input_current_limit_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of input_current_limit.
#Errors
If the returned value contains an invalid bit pattern for input_current_limit.
Sourcepub fn with_input_current_limit(
self,
new_val: <bool as Specifier>::InOut,
) -> Self
pub fn with_input_current_limit( self, new_val: <bool as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of input_current_limit set to the given value.
#Panics
If the given value is out of bounds for input_current_limit.
Sourcepub fn with_input_current_limit_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_input_current_limit_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of input_current_limit set to the given value.
#Errors
If the given value is out of bounds for input_current_limit.
Sourcepub fn set_input_current_limit(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_input_current_limit(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of input_current_limit to the given value.
#Panics
If the given value is out of bounds for input_current_limit.
Sourcepub fn set_input_current_limit_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_input_current_limit_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of input_current_limit to the given value.
#Errors
If the given value is out of bounds for input_current_limit.
Sourcepub fn chgin_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn chgin_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of chgin.
#Errors
If the returned value contains an invalid bit pattern for chgin.
Sourcepub fn with_chgin(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_chgin(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of chgin set to the given value.
#Panics
If the given value is out of bounds for chgin.
Sourcepub fn with_chgin_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_chgin_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of chgin set to the given value.
#Errors
If the given value is out of bounds for chgin.
Sourcepub fn set_chgin(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_chgin(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of chgin to the given value.
#Panics
If the given value is out of bounds for chgin.
Sourcepub fn set_chgin_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_chgin_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of chgin to the given value.
#Errors
If the given value is out of bounds for chgin.
Sourcepub fn adaptive_input_current_loop(&self) -> <bool as Specifier>::InOut
pub fn adaptive_input_current_loop(&self) -> <bool as Specifier>::InOut
Returns the value of adaptive_input_current_loop.
Sourcepub fn adaptive_input_current_loop_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn adaptive_input_current_loop_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of adaptive_input_current_loop.
#Errors
If the returned value contains an invalid bit pattern for adaptive_input_current_loop.
Sourcepub fn with_adaptive_input_current_loop(
self,
new_val: <bool as Specifier>::InOut,
) -> Self
pub fn with_adaptive_input_current_loop( self, new_val: <bool as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of adaptive_input_current_loop set to the given value.
#Panics
If the given value is out of bounds for adaptive_input_current_loop.
Sourcepub fn with_adaptive_input_current_loop_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_adaptive_input_current_loop_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of adaptive_input_current_loop set to the given value.
#Errors
If the given value is out of bounds for adaptive_input_current_loop.
Sourcepub fn set_adaptive_input_current_loop(
&mut self,
new_val: <bool as Specifier>::InOut,
)
pub fn set_adaptive_input_current_loop( &mut self, new_val: <bool as Specifier>::InOut, )
Sets the value of adaptive_input_current_loop to the given value.
#Panics
If the given value is out of bounds for adaptive_input_current_loop.
Sourcepub fn set_adaptive_input_current_loop_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_adaptive_input_current_loop_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of adaptive_input_current_loop to the given value.
#Errors
If the given value is out of bounds for adaptive_input_current_loop.
Trait Implementations§
Source§impl Clone for ChargerInterrupts
impl Clone for ChargerInterrupts
Source§fn clone(&self) -> ChargerInterrupts
fn clone(&self) -> ChargerInterrupts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more