pub struct IoPeriphPin { /* private fields */ }Expand description
IO peripheral pin structure.
Can be used to configure pins as IO peripheral pins.
Implementations§
Source§impl IoPeriphPin
impl IoPeriphPin
pub fn new_with_pin<I: PinId>( _pin: Pin<I>, fun_sel: FunctionSelect, pull: Option<Pull>, ) -> Self
pub fn new( pin_id: DynPinId, fun_sel: FunctionSelect, pull: Option<Pull>, ) -> Self
pub fn port(&self) -> Port
pub fn offset(&self) -> usize
pub fn fun_sel(&self) -> FunctionSelect
Auto Trait Implementations§
impl Freeze for IoPeriphPin
impl RefUnwindSafe for IoPeriphPin
impl Send for IoPeriphPin
impl !Sync for IoPeriphPin
impl Unpin for IoPeriphPin
impl UnwindSafe for IoPeriphPin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more