pub struct Pin<F>where
F: PinIO,{ /* private fields */ }Implementations§
Source§impl Pin<Output>
impl Pin<Output>
pub fn get(_p: &Board, i: PinID) -> Pin<Output>
pub fn low(&self)
pub fn high(&self)
pub fn toggle(&self)
pub fn set_on(&self, en: bool)
pub fn get_state(&self) -> bool
pub fn is_enabled(&self) -> bool
pub fn is_set_low(&self) -> bool
pub fn is_set_high(&self) -> bool
pub fn set_state(&self, en: bool)
pub fn into_input(self) -> Pin<Input>
pub fn into_pwm(self) -> PwmPin<Output>
pub fn output_high(self) -> Pin<Output>
pub fn output(self, high: bool) -> Pin<Output>
Source§impl<F> Pin<F>where
F: PinIO,
impl<F> Pin<F>where
F: PinIO,
pub fn id(&self) -> &PinID
pub fn get_schmitt(&self) -> bool
pub fn get_slew(&self) -> PinSlew
pub fn set_slew(&self, s: PinSlew)
pub fn pull_type(&self) -> PinPull
pub fn set_schmitt(&self, en: bool)
pub fn is_sync_bypass(&self) -> bool
pub fn is_pwm_avaliable(&self) -> bool
pub fn pull(self, p: PinPull) -> Pin<F>
pub fn set_pull_type(&self, p: PinPull)
pub fn set_drive(&self, s: PinStrength)
pub fn get_strength(&self) -> PinStrength
pub fn set_function(&self, f: PinFunction)
pub fn interrupt_clear(&self, i: PinInterrupt)
pub fn interrupt_set(&self, i: PinInterrupt, en: bool)
pub fn interrupt_status(&self, i: PinInterrupt) -> bool
pub fn interrupt_enabled(&self, i: PinInterrupt) -> bool
pub fn dormant_wake_set(&self, i: PinInterrupt, en: bool)
pub fn dormant_wake_status(&self, i: PinInterrupt) -> bool
pub fn dormant_wake_enabled(&self, i: PinInterrupt) -> bool
pub unsafe fn set_sync_bypass(&self, en: bool)
Trait Implementations§
Source§impl<F> Acknowledge for Pin<F>where
F: PinIO,
impl<F> Acknowledge for Pin<F>where
F: PinIO,
fn ack_interrupt(&mut self) -> bool
Auto Trait Implementations§
impl<F> Freeze for Pin<F>
impl<F> !RefUnwindSafe for Pin<F>
impl<F> Send for Pin<F>where
F: Send,
impl<F> !Sync for Pin<F>
impl<F> Unpin for Pin<F>where
F: Unpin,
impl<F> UnwindSafe for Pin<F>where
F: UnwindSafe,
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