pub struct R(_);
Expand description
Register PORTSC1
reader
Implementations
sourceimpl R
impl R
sourcepub fn ccs(&self) -> CCS_R
pub fn ccs(&self) -> CCS_R
Bit 0 - Current Connect Status: Logic 1 indicates a device is present on the port.
sourcepub fn csc(&self) -> CSC_R
pub fn csc(&self) -> CSC_R
Bit 1 - Connect Status Change: Logic 1 means that the value of CCS has changed.
sourcepub fn pedc(&self) -> PEDC_R
pub fn pedc(&self) -> PEDC_R
Bit 3 - Port Enabled/Disabled Change: Logic 1 means that the value of PED has changed.
sourcepub fn oca(&self) -> OCA_R
pub fn oca(&self) -> OCA_R
Bit 4 - Over-current active: Logic 1 means that this port has an over-current condition.
sourcepub fn occ(&self) -> OCC_R
pub fn occ(&self) -> OCC_R
Bit 5 - Over-current change: Logic 1 means that the value of OCA has changed.
sourcepub fn fpr(&self) -> FPR_R
pub fn fpr(&self) -> FPR_R
Bit 6 - Force Port Resume: Logic 1 means resume (K-state) detected or driven on the port.
sourcepub fn ls(&self) -> LS_R
pub fn ls(&self) -> LS_R
Bits 10:11 - Line Status: This field reflects the current logical levels of the DP (bit 11) and DM (bit 10) signal lines.
sourcepub fn pp(&self) -> PP_R
pub fn pp(&self) -> PP_R
Bit 12 - Port Power: The function of this bit depends on the value of the Port Power Control (PPC) bit in the HCSPARAMS register.
sourcepub fn pic(&self) -> PIC_R
pub fn pic(&self) -> PIC_R
Bits 14:15 - Port Indicator Control : Writing to this field has no effect if the P_INDICATOR bit in the HCSPARAMS register is logic 0.
sourcepub fn ptc(&self) -> PTC_R
pub fn ptc(&self) -> PTC_R
Bits 16:19 - Port Test Control: A non-zero value indicates that the port is operating in the test mode as indicated by the value.
Methods from Deref<Target = R<PORTSC1_SPEC>>
Trait Implementations
sourceimpl From<R<PORTSC1_SPEC>> for R
impl From<R<PORTSC1_SPEC>> for R
sourcefn from(reader: R<PORTSC1_SPEC>) -> Self
fn from(reader: R<PORTSC1_SPEC>) -> Self
Performs the conversion.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more