pub struct AfType { /* private fields */ }Expand description
Bundle of mode/cnf/pull settings for an alternate-function pin.
Mirrors embassy-stm32’s gpio_v1::AfType. Drivers pass a single
AfType per pin to Pin::set_as_af() (via the new_pin! /
set_as_af! macros) instead of juggling separate set_as_af_output /
set_as_input calls. On qingke V0/V3 GPIO the AF concept is the same
regardless of direction: input pins set MODE=Input + CNF=Floating/Pull,
output pins set MODE=2/10/50MHz + CNF=AF_PushPull/AF_OpenDrain.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AfType
impl RefUnwindSafe for AfType
impl Send for AfType
impl Sync for AfType
impl Unpin for AfType
impl UnsafeUnpin for AfType
impl UnwindSafe for AfType
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)