Trait embassy_stm32::gpio::low_level::Pin

source ·
pub trait Pin {
    // Required method
    fn pin_port(&self) -> u8;

    // Provided methods
    fn _pin(&self) -> u8 { ... }
    fn _port(&self) -> u8 { ... }
    fn block(&self) -> Gpio { ... }
    fn set_high(&self) { ... }
    fn set_low(&self) { ... }
    fn set_as_af(&self, af_num: u8, af_type: AFType) { ... }
    fn set_as_af_pull(&self, _af_num: u8, af_type: AFType, pull: Pull) { ... }
    fn set_as_analog(&self) { ... }
    fn set_as_disconnected(&self) { ... }
    fn set_speed(&self, speed: Speed) { ... }
}

Required Methods§

source

fn pin_port(&self) -> u8

Provided Methods§

source

fn _pin(&self) -> u8

source

fn _port(&self) -> u8

source

fn block(&self) -> Gpio

source

fn set_high(&self)

Set the output as high.

source

fn set_low(&self)

Set the output as low.

source

fn set_as_af(&self, af_num: u8, af_type: AFType)

source

fn set_as_af_pull(&self, _af_num: u8, af_type: AFType, pull: Pull)

source

fn set_as_analog(&self)

source

fn set_as_disconnected(&self)

Set the pin as “disconnected”, ie doing nothing and consuming the lowest amount of power possible.

This is currently the same as set_as_analog but is semantically different really. Drivers should set_as_disconnected pins when dropped.

source

fn set_speed(&self, speed: Speed)

Implementors§

source§

impl Pin for PA0

source§

impl Pin for PA1

source§

impl Pin for PA2

source§

impl Pin for PA3

source§

impl Pin for PA4

source§

impl Pin for PA5

source§

impl Pin for PA6

source§

impl Pin for PA7

source§

impl Pin for PA8

source§

impl Pin for PA9

source§

impl Pin for PA10

source§

impl Pin for PA11

source§

impl Pin for PA12

source§

impl Pin for PA13

source§

impl Pin for PA14

source§

impl Pin for PA15

source§

impl Pin for PB0

source§

impl Pin for PB1

source§

impl Pin for PB2

source§

impl Pin for PB3

source§

impl Pin for PB4

source§

impl Pin for PB5

source§

impl Pin for PB6

source§

impl Pin for PB7

source§

impl Pin for PB8

source§

impl Pin for PB9

source§

impl Pin for PB10

source§

impl Pin for PB11

source§

impl Pin for PB12

source§

impl Pin for PB13

source§

impl Pin for PB14

source§

impl Pin for PB15

source§

impl Pin for PC0

source§

impl Pin for PC1

source§

impl Pin for PC2

source§

impl Pin for PC3

source§

impl Pin for PC4

source§

impl Pin for PC5

source§

impl Pin for PC6

source§

impl Pin for PC7

source§

impl Pin for PC8

source§

impl Pin for PC9

source§

impl Pin for PC10

source§

impl Pin for PC11

source§

impl Pin for PC12

source§

impl Pin for PC13

source§

impl Pin for PC14

source§

impl Pin for PC15

source§

impl Pin for PD0

source§

impl Pin for PD1

source§

impl Pin for PD2

source§

impl Pin for PD3

source§

impl Pin for PD4

source§

impl Pin for PD5

source§

impl Pin for PD6

source§

impl Pin for PD7

source§

impl Pin for PD8

source§

impl Pin for PD9

source§

impl Pin for PD10

source§

impl Pin for PD11

source§

impl Pin for PD12

source§

impl Pin for PD13

source§

impl Pin for PD14

source§

impl Pin for PD15

source§

impl Pin for PE0

source§

impl Pin for PE1

source§

impl Pin for PE2

source§

impl Pin for PE3

source§

impl Pin for PE4

source§

impl Pin for PE5

source§

impl Pin for PE6

source§

impl Pin for PE7

source§

impl Pin for PE8

source§

impl Pin for PE9

source§

impl Pin for PE10

source§

impl Pin for PE11

source§

impl Pin for PE12

source§

impl Pin for PE13

source§

impl Pin for PE14

source§

impl Pin for PE15

source§

impl Pin for AnyPin