#[repr(transparent)]pub struct Portsc1(pub u32);Expand description
Port Status and Control. F70RM 44.6.1.32 (text line 115111). Mixed control/read-only status and W1C CSC, PEC, OCC. Unmasked read-modify-write can acknowledge pending changes. PR and SUSP are read-only in Device mode; PR/FPR self-clear after signaling. PE is always 1 in Device mode; in Host mode software can disable but cannot enable it by writing 1. This chip uses the 16-bit UTMI interface (HWGENERAL reset 0x1015); generic alternative PHY encodings do not establish chip support.
Tuple Fields§
§0: u32Implementations§
Source§impl Portsc1
impl Portsc1
Sourcepub const fn ccs(&self) -> bool
pub const fn ccs(&self) -> bool
Current Connect Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - No device present or attached; 1b - Device present and attached.
Sourcepub const fn set_ccs(&mut self, val: bool)
pub const fn set_ccs(&mut self, val: bool)
Current Connect Status. Read-only status/value; writes do not configure this field. Raw encoding: 0b - No device present or attached; 1b - Device present and attached.
Sourcepub const fn csc(&self) -> bool
pub const fn csc(&self) -> bool
Connect Status Change Flag. Raw encoding: 0b - No change occurred; 1b - Change occurred; 0b - No effect; 1b - Clear the flag.
Sourcepub const fn set_csc(&mut self, val: bool)
pub const fn set_csc(&mut self, val: bool)
Connect Status Change Flag. Raw encoding: 0b - No change occurred; 1b - Change occurred; 0b - No effect; 1b - Clear the flag.
Sourcepub const fn pe(&self) -> bool
pub const fn pe(&self) -> bool
Port Enable and Disable. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_pe(&mut self, val: bool)
pub const fn set_pe(&mut self, val: bool)
Port Enable and Disable. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn pec(&self) -> bool
pub const fn pec(&self) -> bool
Port Enable and Disable Change Flag. Raw encoding: 0b - No change occurred; 1b - Change occurred; 0b - No effect; 1b - Clear the flag.
Sourcepub const fn set_pec(&mut self, val: bool)
pub const fn set_pec(&mut self, val: bool)
Port Enable and Disable Change Flag. Raw encoding: 0b - No change occurred; 1b - Change occurred; 0b - No effect; 1b - Clear the flag.
Sourcepub const fn oca(&self) -> bool
pub const fn oca(&self) -> bool
Overcurrent Active. Read-only status/value; writes do not configure this field. Raw encoding: 0b - No overcurrent condition exists; 1b - Overcurrent condition exists.
Sourcepub const fn set_oca(&mut self, val: bool)
pub const fn set_oca(&mut self, val: bool)
Overcurrent Active. Read-only status/value; writes do not configure this field. Raw encoding: 0b - No overcurrent condition exists; 1b - Overcurrent condition exists.
Sourcepub const fn occ(&self) -> bool
pub const fn occ(&self) -> bool
Overcurrent Change Flag. Raw encoding: 0b - No change occurred; 1b - Change occurred; 0b - No effect; 1b - Clear the flag.
Sourcepub const fn set_occ(&mut self, val: bool)
pub const fn set_occ(&mut self, val: bool)
Overcurrent Change Flag. Raw encoding: 0b - No change occurred; 1b - Change occurred; 0b - No effect; 1b - Clear the flag.
Sourcepub const fn fpr(&self) -> bool
pub const fn fpr(&self) -> bool
Force Port Resume. Raw encoding: 0b - No resume (K-state) detected or driven on port; 1b - Resume detected or driven on port.
Sourcepub const fn set_fpr(&mut self, val: bool)
pub const fn set_fpr(&mut self, val: bool)
Force Port Resume. Raw encoding: 0b - No resume (K-state) detected or driven on port; 1b - Resume detected or driven on port.
Sourcepub const fn susp(&self) -> bool
pub const fn susp(&self) -> bool
Suspend. Raw encoding: 0b - Port not in Suspended state; 1b - Port in Suspended state.
Sourcepub const fn set_susp(&mut self, val: bool)
pub const fn set_susp(&mut self, val: bool)
Suspend. Raw encoding: 0b - Port not in Suspended state; 1b - Port in Suspended state.
Sourcepub const fn pr(&self) -> bool
pub const fn pr(&self) -> bool
Port Reset. Raw encoding: 0b - Port not in reset; 1b - Port in reset.
Sourcepub const fn set_pr(&mut self, val: bool)
pub const fn set_pr(&mut self, val: bool)
Port Reset. Raw encoding: 0b - Port not in reset; 1b - Port in reset.
Sourcepub const fn hsp(&self) -> bool
pub const fn hsp(&self) -> bool
High-Speed Port. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Not in HS mode; 1b - In HS mode.
Sourcepub const fn set_hsp(&mut self, val: bool)
pub const fn set_hsp(&mut self, val: bool)
High-Speed Port. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Not in HS mode; 1b - In HS mode.
Sourcepub const fn ls(&self) -> u8
pub const fn ls(&self) -> u8
Line Status. Read-only status/value; writes do not configure this field. Raw encoding: 00b - SE0; 01b - K-state; 10b - J-state; 11b - Undefined.
Sourcepub const fn set_ls(&mut self, val: u8)
pub const fn set_ls(&mut self, val: u8)
Line Status. Read-only status/value; writes do not configure this field. Raw encoding: 00b - SE0; 01b - K-state; 10b - J-state; 11b - Undefined.
Sourcepub const fn po(&self) -> bool
pub const fn po(&self) -> bool
Port Owner. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_po(&mut self, val: bool)
pub const fn set_po(&mut self, val: bool)
Port Owner. Read-only status/value; writes do not configure this field.
Sourcepub const fn pic(&self) -> u8
pub const fn pic(&self) -> u8
Port Indicator Control. Raw encoding: 00b - Port indicators are off; 01b - Amber; 10b - Green; 11b - Undefined.
Sourcepub const fn set_pic(&mut self, val: u8)
pub const fn set_pic(&mut self, val: u8)
Port Indicator Control. Raw encoding: 00b - Port indicators are off; 01b - Amber; 10b - Green; 11b - Undefined.
Sourcepub const fn ptc(&self) -> u8
pub const fn ptc(&self) -> u8
Port Test Control. Raw encoding: 0000b - TEST_MODE_DISABLE; 0001b - J_STATE; 0010b - K_STATE; 0011b - SE0 (host) or NAK (device); 0100b - Packet; 0101b - FORCE_ENABLE_HS; 0110b - FORCE_ENABLE_FS; 0111b - FORCE_ENABLE_LS; 1000b-1111b - Reserved.
Sourcepub const fn set_ptc(&mut self, val: u8)
pub const fn set_ptc(&mut self, val: u8)
Port Test Control. Raw encoding: 0000b - TEST_MODE_DISABLE; 0001b - J_STATE; 0010b - K_STATE; 0011b - SE0 (host) or NAK (device); 0100b - Packet; 0101b - FORCE_ENABLE_HS; 0110b - FORCE_ENABLE_FS; 0111b - FORCE_ENABLE_LS; 1000b-1111b - Reserved.
Sourcepub const fn wkcn(&self) -> bool
pub const fn wkcn(&self) -> bool
Wake on Connect Enable (WKCNNT_E). Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_wkcn(&mut self, val: bool)
pub const fn set_wkcn(&mut self, val: bool)
Wake on Connect Enable (WKCNNT_E). Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn wkdc(&self) -> bool
pub const fn wkdc(&self) -> bool
Wake on Disconnect Enable (WKDSCNNT_E). Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_wkdc(&mut self, val: bool)
pub const fn set_wkdc(&mut self, val: bool)
Wake on Disconnect Enable (WKDSCNNT_E). Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn phcd(&self) -> bool
pub const fn phcd(&self) -> bool
PHY Low-Power Suspend - Clock Disable (PLPSCD). Raw encoding: 0b - Enables; 1b - Disables.
Sourcepub const fn set_phcd(&mut self, val: bool)
pub const fn set_phcd(&mut self, val: bool)
PHY Low-Power Suspend - Clock Disable (PLPSCD). Raw encoding: 0b - Enables; 1b - Disables.
Sourcepub const fn pfsc(&self) -> bool
pub const fn pfsc(&self) -> bool
Port Force Full Speed Connect. Raw encoding: 0b - Normal operation; 1b - Forced to full speed.
Sourcepub const fn set_pfsc(&mut self, val: bool)
pub const fn set_pfsc(&mut self, val: bool)
Port Force Full Speed Connect. Raw encoding: 0b - Normal operation; 1b - Forced to full speed.
Sourcepub const fn pts_2(&self) -> bool
pub const fn pts_2(&self) -> bool
Parallel Transceiver Select 2. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_pts_2(&mut self, val: bool)
pub const fn set_pts_2(&mut self, val: bool)
Parallel Transceiver Select 2. Read-only status/value; writes do not configure this field.
Sourcepub const fn pspd(&self) -> u8
pub const fn pspd(&self) -> u8
Port Speed. Raw encoding: 00b - FS; 01b - LS; 10b - HS; 11b - Undefined.
Sourcepub const fn set_pspd(&mut self, val: u8)
pub const fn set_pspd(&mut self, val: u8)
Port Speed. Raw encoding: 00b - FS; 01b - LS; 10b - HS; 11b - Undefined.
Sourcepub const fn ptw(&self) -> bool
pub const fn ptw(&self) -> bool
Parallel Transceiver Width. Read-only status/value; writes do not configure this field. Raw encoding: 0b - 8-bit UTMI interface (60 MHz); 1b - 16-bit UTMI interface (30 MHz).
Sourcepub const fn set_ptw(&mut self, val: bool)
pub const fn set_ptw(&mut self, val: bool)
Parallel Transceiver Width. Read-only status/value; writes do not configure this field. Raw encoding: 0b - 8-bit UTMI interface (60 MHz); 1b - 16-bit UTMI interface (30 MHz).
Sourcepub const fn sts(&self) -> bool
pub const fn sts(&self) -> bool
Serial Transceiver Select. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Parallel interface signals; 1b - Serial interface engine.
Sourcepub const fn set_sts(&mut self, val: bool)
pub const fn set_sts(&mut self, val: bool)
Serial Transceiver Select. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Parallel interface signals; 1b - Serial interface engine.