Skip to main content

LpPin

Trait LpPin 

Source
pub trait LpPin: Pin {
    // Required method
    fn lp_number(&self) -> u8;
}
Available on crate feature unstable only.
Expand description

Trait implemented by the pins that the low-power domain can reach.

The low-power domain has its own numbers for these pads, and the low-power registers take such a number. Only some chips give a pad the same number in both domains, so do not mix the two numbers. Give Self::lp_number to the low-power registers, and Pin::number to the digital registers.

§Stability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.

Required Methods§

Source

fn lp_number(&self) -> u8

LP number of the pin

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl LpPin for GPIO0<'_>

Source§

impl LpPin for GPIO1<'_>

Source§

impl LpPin for GPIO2<'_>

Source§

impl LpPin for GPIO3<'_>

Source§

impl LpPin for GPIO4<'_>

Source§

impl LpPin for GPIO5<'_>

Source§

impl LpPin for GPIO6<'_>