Struct Adpctl
#[repr(transparent)]pub struct Adpctl(pub u32);Expand description
ADP (Attach Detection Protocol) Control Register
Tuple Fields§
§0: u32Implementations§
§impl Adpctl
impl Adpctl
pub const fn prb_dschg(&self) -> u8
pub const fn prb_dschg(&self) -> u8
Probe discharge time (TADP_DSCHG): 0: 4 ms, 1: 8 ms, 2: 16 ms, 3: 32 ms
pub const fn set_prb_dschg(&mut self, val: u8)
pub const fn set_prb_dschg(&mut self, val: u8)
Probe discharge time (TADP_DSCHG): 0: 4 ms, 1: 8 ms, 2: 16 ms, 3: 32 ms
pub const fn prb_delta(&self) -> u8
pub const fn prb_delta(&self) -> u8
Probe delta (RTIM resolution): 0: 1 cycle, 1: 2 cycles, 2: 3 cycles, 3: 4 cycles of 32 kHz
pub const fn set_prb_delta(&mut self, val: u8)
pub const fn set_prb_delta(&mut self, val: u8)
Probe delta (RTIM resolution): 0: 1 cycle, 1: 2 cycles, 2: 3 cycles, 3: 4 cycles of 32 kHz
pub const fn prb_per(&self) -> u8
pub const fn prb_per(&self) -> u8
Probe period (TADP_PRD): 0: 0.625-0.925 s, 1: 1.25-1.85 s, 2: 1.9-2.6 s
pub const fn set_prb_per(&mut self, val: u8)
pub const fn set_prb_per(&mut self, val: u8)
Probe period (TADP_PRD): 0: 0.625-0.925 s, 1: 1.25-1.85 s, 2: 1.9-2.6 s
pub const fn set_enaprb(&mut self, val: bool)
pub const fn set_enaprb(&mut self, val: bool)
Enable Probe
pub const fn set_enasns(&mut self, val: bool)
pub const fn set_enasns(&mut self, val: bool)
Enable Sense
pub const fn set_adpres(&mut self, val: bool)
pub const fn set_adpres(&mut self, val: bool)
ADP Reset
pub const fn adp_prb_int(&self) -> bool
pub const fn adp_prb_int(&self) -> bool
ADP probe interrupt flag
pub const fn set_adp_prb_int(&mut self, val: bool)
pub const fn set_adp_prb_int(&mut self, val: bool)
ADP probe interrupt flag
pub const fn adp_sns_int(&self) -> bool
pub const fn adp_sns_int(&self) -> bool
ADP sense interrupt flag
pub const fn set_adp_sns_int(&mut self, val: bool)
pub const fn set_adp_sns_int(&mut self, val: bool)
ADP sense interrupt flag
pub const fn adp_tmout_int(&self) -> bool
pub const fn adp_tmout_int(&self) -> bool
ADP timeout interrupt flag
pub const fn set_adp_tmout_int(&mut self, val: bool)
pub const fn set_adp_tmout_int(&mut self, val: bool)
ADP timeout interrupt flag
pub const fn adp_prb_msk(&self) -> bool
pub const fn adp_prb_msk(&self) -> bool
ADP Probe Interrupt Mask
pub const fn set_adp_prb_msk(&mut self, val: bool)
pub const fn set_adp_prb_msk(&mut self, val: bool)
ADP Probe Interrupt Mask
pub const fn adp_sns_msk(&self) -> bool
pub const fn adp_sns_msk(&self) -> bool
ADP sense interrupt mask
pub const fn set_adp_sns_msk(&mut self, val: bool)
pub const fn set_adp_sns_msk(&mut self, val: bool)
ADP sense interrupt mask
pub const fn adp_tmout_msk(&self) -> bool
pub const fn adp_tmout_msk(&self) -> bool
ADP Timeout Interrupt Mask
pub const fn set_adp_tmout_msk(&mut self, val: bool)
pub const fn set_adp_tmout_msk(&mut self, val: bool)
ADP Timeout Interrupt Mask