pub struct I2S0<'a>(/* private fields */);Implementations§
Source§impl I2S0<'_>
impl I2S0<'_>
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Sourcepub unsafe fn reborrow(&mut self) -> I2S0<'_>
pub unsafe fn reborrow(&mut self) -> I2S0<'_>
Creates a new peripheral reference with a shorter lifetime.
Use this method if you would like to keep working with the peripheral after you dropped the driver that consumes this.
§Safety
You must ensure that you are not using reborrowed peripherals in drivers which are
forgotten via core::mem::forget.
Trait Implementations§
Source§impl I2s for I2S0<'_>
impl I2s for I2S0<'_>
Source§fn port() -> i2s_port_t
fn port() -> i2s_port_t
Return the port number for the peripheral.