pub struct USIC0_CH0 { /* private fields */ }
Expand description
Universal Serial Interface Controller 0
Implementations§
source§impl USIC0_CH0
impl USIC0_CH0
sourcepub const PTR: *const RegisterBlock = {0x40030000 as *const usic0_ch0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40030000 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) -> &PCR_IISMODE
pub fn pcr_iismode(&self) -> &PCR_IISMODE
0x3c - Protocol Control Register [IIS Mode]
sourcepub fn pcr_iicmode(&self) -> &PCR_IICMODE
pub fn pcr_iicmode(&self) -> &PCR_IICMODE
0x3c - Protocol Control Register [IIC Mode]
sourcepub fn pcr_sscmode(&self) -> &PCR_SSCMODE
pub fn pcr_sscmode(&self) -> &PCR_SSCMODE
0x3c - Protocol Control Register [SSC Mode]
sourcepub fn pcr_ascmode(&self) -> &PCR_ASCMODE
pub fn pcr_ascmode(&self) -> &PCR_ASCMODE
0x3c - Protocol Control Register [ASC Mode]
sourcepub fn psr_iismode(&self) -> &PSR_IISMODE
pub fn psr_iismode(&self) -> &PSR_IISMODE
0x48 - Protocol Status Register [IIS Mode]
sourcepub fn psr_iicmode(&self) -> &PSR_IICMODE
pub fn psr_iicmode(&self) -> &PSR_IICMODE
0x48 - Protocol Status Register [IIC Mode]
sourcepub fn psr_sscmode(&self) -> &PSR_SSCMODE
pub fn psr_sscmode(&self) -> &PSR_SSCMODE
0x48 - Protocol Status Register [SSC Mode]
sourcepub fn psr_ascmode(&self) -> &PSR_ASCMODE
pub fn psr_ascmode(&self) -> &PSR_ASCMODE
0x48 - Protocol Status Register [ASC Mode]