embassy-rp

Crates

0.1.0

Versions

rp2040

Flavors

Trait Channel

Source
pub trait Channel:
    Peripheral<P = Self>
    + Channel
    + Sized
    + 'static {
    // Required method
    fn number(&self) -> u8;

    // Provided method
    fn regs(&self) -> Channel { ... }
}
Expand description

PWM Channel.

Required Methods§

Source

fn number(&self) -> u8

Channel number.

Provided Methods§

Source

fn regs(&self) -> Channel

Channel register block.

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§