Skip to main content

Bcctrl2

Type Alias Bcctrl2 

Source
pub type Bcctrl2 = RegValueT<Bcctrl2_SPEC>;
Expand description

Battery Charging Control Register 2

Aliased Type§

pub struct Bcctrl2 { /* private fields */ }

Implementations§

Source§

impl Bcctrl2

Source

pub fn dcpmode( self, ) -> RegisterField<6, 0x1, 1, 0, Dcpmode, Dcpmode, Bcctrl2_SPEC, RW>

Dedicated Charging Port (DCP) Mode Control

Source

pub fn batchge( self, ) -> RegisterField<7, 0x1, 1, 0, Batchge, Batchge, Bcctrl2_SPEC, RW>

Battery Charging Enable

Source

pub fn phydet(self) -> RegisterField<12, 0x3, 1, 0, u8, u8, Bcctrl2_SPEC, RW>

Detect Sensitivity Adjustment

Trait Implementations§

Source§

impl Default for Bcctrl2

Source§

fn default() -> Bcctrl2

Returns the “default value” for a type. Read more