[−][src]Struct alt_stm32f30x_hal::gpio::PD9
Pin
Methods
impl<PT: PullType, PM: PinMode> PD9<PT, PM>
[src]
pub fn downgrade(self) -> PDx<PT, PM>
[src]
Erases the pin number from the type
This is useful when you want to collect the pins into an array where you need all the elements to have the same type
pub fn pull_type<NPT: PullType>(self, pt: NPT) -> PD9<NPT, PM>
[src]
Sets pull type: Floaing, PullUp, PullDown
pub fn input(self) -> PD9<PT, Input>
[src]
Sets io_mode to input
pub fn analog(self) -> PD9<PT, Analog>
[src]
Sets io_mode to analog
pub fn output(self) -> PD9<PT, Output<PushPull, LowSpeed>>
[src]
Set io_mode to output
pub fn alternating<AFN: AltFnNum>(
self,
af: AFN
) -> PD9<PT, AltFn<AFN, PushPull, LowSpeed>>
[src]
self,
af: AFN
) -> PD9<PT, AltFn<AFN, PushPull, LowSpeed>>
Set io_mode to altfn and set alternating function
impl<PT: PullType, OT: OutputType, OS: OutputSpeed> PD9<PT, Output<OT, OS>>
[src]
pub fn output_type<NOT: OutputType>(self, ot: NOT) -> PD9<PT, Output<NOT, OS>>
[src]
Set output type
pub fn push_pull(self) -> PD9<PT, Output<PushPull, OS>>
[src]
Set output type to PushPull
pub fn open_drain(self) -> PD9<PT, Output<OpenDrain, OS>>
[src]
Set output type to OpenDrain
pub fn output_speed<NOS: OutputSpeed>(self, os: NOS) -> PD9<PT, Output<OT, NOS>>
[src]
Set output speed
impl<PT: PullType, AFN: AltFnNum, OT: OutputType, OS: OutputSpeed> PD9<PT, AltFn<AFN, OT, OS>>
[src]
pub fn output_type<NOT: OutputType>(
self,
ot: NOT
) -> PD9<PT, AltFn<AFN, NOT, OS>>
[src]
self,
ot: NOT
) -> PD9<PT, AltFn<AFN, NOT, OS>>
Set output type
pub fn output_speed<NOS: OutputSpeed>(
self,
os: NOS
) -> PD9<PT, AltFn<AFN, OT, NOS>>
[src]
self,
os: NOS
) -> PD9<PT, AltFn<AFN, OT, NOS>>
Set output speed
pub fn alt_fn<NAFN: AltFnNum>(self, af: NAFN) -> PD9<PT, AltFn<NAFN, OT, OS>>
[src]
Set altfn
Trait Implementations
impl<PT: PullType, PM: PinMode> GPIOPin for PD9<PT, PM>
[src]
impl<PT: PullType, PM: PinMode> SerialExt<USART3, PB10<PT, PM>, PD9<PT, PM>, PB10<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART3
[src]
fn serial(
self,
pins: (PB10<PT, PM>, PD9<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART3, (PB10<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PB10<PT, PM>, PD9<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART3, (PB10<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART3, PC10<PT, PM>, PD9<PT, PM>, PC10<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART3
[src]
fn serial(
self,
pins: (PC10<PT, PM>, PD9<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART3, (PC10<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PC10<PT, PM>, PD9<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART3, (PC10<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART3, PD8<PT, PM>, PD9<PT, PM>, PD8<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART3
[src]
fn serial(
self,
pins: (PD8<PT, PM>, PD9<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART3, (PD8<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PD8<PT, PM>, PD9<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART3, (PD8<PT, AltFn<AF7, PushPull, HighSpeed>>, PD9<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, OT: OutputType, OS: OutputSpeed> OutputPin for PD9<PT, Output<OT, OS>>
[src]
impl<PT: PullType, AN: AltFnNum, OT: OutputType, OS: OutputSpeed> OutputPin for PD9<PT, AltFn<AN, OT, OS>>
[src]
impl<PT: PullType, OT: OutputType, OS: OutputSpeed> StatefulOutputPin for PD9<PT, Output<OT, OS>>
[src]
fn is_set_high(&self) -> bool
[src]
fn is_set_low(&self) -> bool
[src]
impl<PT: PullType, OT: OutputType, OS: OutputSpeed> Default for PD9<PT, Output<OT, OS>>
[src]
impl<PT: PullType> InputPin for PD9<PT, Input>
[src]
Auto Trait Implementations
impl<PT, PM> Send for PD9<PT, PM> where
PM: Send,
PT: Send,
PM: Send,
PT: Send,
impl<PT, PM> Sync for PD9<PT, PM> where
PM: Sync,
PT: Sync,
PM: Sync,
PT: Sync,
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self
impl<P> ToggleableOutputPin for P where
P: Default,
P: Default,
fn toggle(&mut self)
Toggle pin output