embassy-nrf

Crates

git

Versions

nrf52832

Flavors

Instance

Trait Instance 

Source
pub trait Instance:
    SealedInstance
    + PeripheralType
    + 'static
    + Send {
    type Interrupt: Interrupt;

    // Required method
    unsafe fn steal() -> Peri<'static, Self>;
}
Expand description

Basic RTC instance.

Required Associated Types§

Source

type Interrupt: Interrupt

Interrupt for this peripheral.

Required Methods§

Source

unsafe fn steal() -> Peri<'static, Self>

Unsafely create a peripheral instance.

§Safety

Potentially allows to create multiple instances of the driver for the same peripheral which can lead to undefined behavior.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§