Struct Battchrg
#[repr(transparent)]pub struct Battchrg(pub u32);Expand description
Battery Charging Configuration.
Tuple Fields§
§0: u32Implementations§
§impl Battchrg
impl Battchrg
pub const fn set_chrgsel0(&mut self, val: Chrgsel0)
pub const fn set_chrgsel0(&mut self, val: Chrgsel0)
Battery charging source select.
pub const fn set_vdatenb0(&mut self, val: bool)
pub const fn set_vdatenb0(&mut self, val: bool)
Attach/Connect Detection Enable.
pub const fn vdatsrcenb0(&self) -> bool
pub const fn vdatsrcenb0(&self) -> bool
Battery Charging Source Select.
pub const fn set_vdatsrcenb0(&mut self, val: bool)
pub const fn set_vdatsrcenb0(&mut self, val: bool)
Battery Charging Source Select.
Trait Implementations§
impl Copy for Battchrg
impl Eq for Battchrg
impl StructuralPartialEq for Battchrg
Auto Trait Implementations§
impl Forget for Battchrg
impl Freeze for Battchrg
impl Move for Battchrg
impl RefUnwindSafe for Battchrg
impl Send for Battchrg
impl Sync for Battchrg
impl Unpin for Battchrg
impl UnsafeUnpin for Battchrg
impl UnwindSafe for Battchrg
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