pub struct PB15<MODE> { /* private fields */ }
Expand description
Pin
Implementations§
Source§impl<MODE> PB15<MODE>
impl<MODE> PB15<MODE>
Sourcepub fn into_alternate_af0(self, _cs: &CriticalSection) -> PB15<Alternate<AF0>>
pub fn into_alternate_af0(self, _cs: &CriticalSection) -> PB15<Alternate<AF0>>
Configures the pin to operate in AF0 mode
Sourcepub fn into_alternate_af1(self, _cs: &CriticalSection) -> PB15<Alternate<AF1>>
pub fn into_alternate_af1(self, _cs: &CriticalSection) -> PB15<Alternate<AF1>>
Configures the pin to operate in AF1 mode
Sourcepub fn into_alternate_af2(self, _cs: &CriticalSection) -> PB15<Alternate<AF2>>
pub fn into_alternate_af2(self, _cs: &CriticalSection) -> PB15<Alternate<AF2>>
Configures the pin to operate in AF2 mode
Sourcepub fn into_alternate_af3(self, _cs: &CriticalSection) -> PB15<Alternate<AF3>>
pub fn into_alternate_af3(self, _cs: &CriticalSection) -> PB15<Alternate<AF3>>
Configures the pin to operate in AF3 mode
Sourcepub fn into_alternate_af4(self, _cs: &CriticalSection) -> PB15<Alternate<AF4>>
pub fn into_alternate_af4(self, _cs: &CriticalSection) -> PB15<Alternate<AF4>>
Configures the pin to operate in AF4 mode
Sourcepub fn into_alternate_af5(self, _cs: &CriticalSection) -> PB15<Alternate<AF5>>
pub fn into_alternate_af5(self, _cs: &CriticalSection) -> PB15<Alternate<AF5>>
Configures the pin to operate in AF5 mode
Sourcepub fn into_alternate_af6(self, _cs: &CriticalSection) -> PB15<Alternate<AF6>>
pub fn into_alternate_af6(self, _cs: &CriticalSection) -> PB15<Alternate<AF6>>
Configures the pin to operate in AF6 mode
Sourcepub fn into_alternate_af7(self, _cs: &CriticalSection) -> PB15<Alternate<AF7>>
pub fn into_alternate_af7(self, _cs: &CriticalSection) -> PB15<Alternate<AF7>>
Configures the pin to operate in AF7 mode
Sourcepub fn into_floating_input(self, _cs: &CriticalSection) -> PB15<Input<Floating>>
pub fn into_floating_input(self, _cs: &CriticalSection) -> PB15<Input<Floating>>
Configures the pin to operate as a floating input pin
Sourcepub fn into_pull_down_input(
self,
_cs: &CriticalSection,
) -> PB15<Input<PullDown>>
pub fn into_pull_down_input( self, _cs: &CriticalSection, ) -> PB15<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
Sourcepub fn into_pull_up_input(self, _cs: &CriticalSection) -> PB15<Input<PullUp>>
pub fn into_pull_up_input(self, _cs: &CriticalSection) -> PB15<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
Sourcepub fn into_analog(self, _cs: &CriticalSection) -> PB15<Analog>
pub fn into_analog(self, _cs: &CriticalSection) -> PB15<Analog>
Configures the pin to operate as an analog pin
Sourcepub fn into_open_drain_output(
self,
_cs: &CriticalSection,
) -> PB15<Output<OpenDrain>>
pub fn into_open_drain_output( self, _cs: &CriticalSection, ) -> PB15<Output<OpenDrain>>
Configures the pin to operate as an open drain output pin
Sourcepub fn into_push_pull_output(
self,
_cs: &CriticalSection,
) -> PB15<Output<PushPull>>
pub fn into_push_pull_output( self, _cs: &CriticalSection, ) -> PB15<Output<PushPull>>
Configures the pin to operate as an push pull output pin
Sourcepub fn into_push_pull_output_hs(
self,
_cs: &CriticalSection,
) -> PB15<Output<PushPull>>
pub fn into_push_pull_output_hs( self, _cs: &CriticalSection, ) -> PB15<Output<PushPull>>
Configures the pin to operate as an push pull output pin with quick fall and rise times
Source§impl PB15<Output<OpenDrain>>
impl PB15<Output<OpenDrain>>
Sourcepub fn internal_pull_up(&mut self, _cs: &CriticalSection, on: bool)
pub fn internal_pull_up(&mut self, _cs: &CriticalSection, on: bool)
Enables / disables the internal pull up
Source§impl<MODE> PB15<Alternate<MODE>>
impl<MODE> PB15<Alternate<MODE>>
Sourcepub fn internal_pull_up(
self,
_cs: &CriticalSection,
on: bool,
) -> PB15<Alternate<MODE>>
pub fn internal_pull_up( self, _cs: &CriticalSection, on: bool, ) -> PB15<Alternate<MODE>>
Enables / disables the internal pull up
Source§impl<MODE> PB15<Alternate<MODE>>
impl<MODE> PB15<Alternate<MODE>>
Sourcepub fn set_open_drain(self, _cs: &CriticalSection) -> PB15<Alternate<MODE>>
pub fn set_open_drain(self, _cs: &CriticalSection) -> PB15<Alternate<MODE>>
Turns pin alternate configuration pin into open drain