pub struct Usic1Ch1 { /* private fields */ }
Expand description
Universal Serial Interface Controller 1
Implementations§
source§impl Usic1Ch1
impl Usic1Ch1
sourcepub const PTR: *const RegisterBlock = {0x48020200 as *const usic0_ch0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x48020200 as *const usic0_ch0::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn pcr_iismode(&self) -> &PcrIismode
pub fn pcr_iismode(&self) -> &PcrIismode
0x3c - Protocol Control Register [IIS Mode]
sourcepub fn pcr_iicmode(&self) -> &PcrIicmode
pub fn pcr_iicmode(&self) -> &PcrIicmode
0x3c - Protocol Control Register [IIC Mode]
sourcepub fn pcr_sscmode(&self) -> &PcrSscmode
pub fn pcr_sscmode(&self) -> &PcrSscmode
0x3c - Protocol Control Register [SSC Mode]
sourcepub fn pcr_ascmode(&self) -> &PcrAscmode
pub fn pcr_ascmode(&self) -> &PcrAscmode
0x3c - Protocol Control Register [ASC Mode]
sourcepub fn psr_iismode(&self) -> &PsrIismode
pub fn psr_iismode(&self) -> &PsrIismode
0x48 - Protocol Status Register [IIS Mode]
sourcepub fn psr_iicmode(&self) -> &PsrIicmode
pub fn psr_iicmode(&self) -> &PsrIicmode
0x48 - Protocol Status Register [IIC Mode]
sourcepub fn psr_sscmode(&self) -> &PsrSscmode
pub fn psr_sscmode(&self) -> &PsrSscmode
0x48 - Protocol Status Register [SSC Mode]
sourcepub fn psr_ascmode(&self) -> &PsrAscmode
pub fn psr_ascmode(&self) -> &PsrAscmode
0x48 - Protocol Status Register [ASC Mode]