pub struct FastPin<R, N, MODE> { /* private fields */ }
Implementations§
Source§impl<R: FastPinReg, N: FastPinNum, MODE> FastPin<R, N, MODE>
impl<R: FastPinReg, N: FastPinNum, MODE> FastPin<R, N, MODE>
Sourcepub fn into_input(&self, mode: FastPinModeInput) -> FastPin<R, N, InputFastPin>
pub fn into_input(&self, mode: FastPinModeInput) -> FastPin<R, N, InputFastPin>
Configure the pin as an input pin and return a new FastPin
instance.
Sourcepub fn into_output(
&self,
mode: FastPinModeOutput,
) -> FastPin<R, N, OutputFastPin>
pub fn into_output( &self, mode: FastPinModeOutput, ) -> FastPin<R, N, OutputFastPin>
Configure the pin as an output pin and return a new FastPin
instance.
Source§impl<R: FastPinReg, N: FastPinNum> FastPin<R, N, InputFastPin>
impl<R: FastPinReg, N: FastPinNum> FastPin<R, N, InputFastPin>
Sourcepub fn is_input_high(&self) -> bool
pub fn is_input_high(&self) -> bool
Check if the input pin is high.
Sourcepub fn is_input_low(&self) -> bool
pub fn is_input_low(&self) -> bool
Check if the input pin is low.
Source§impl<R: FastPinReg, N: FastPinNum> FastPin<R, N, OutputFastPin>
impl<R: FastPinReg, N: FastPinNum> FastPin<R, N, OutputFastPin>
Sourcepub fn output_high(&self)
pub fn output_high(&self)
Set the output pin high.
Sourcepub fn output_low(&self)
pub fn output_low(&self)
Set the output pin low.
Sourcepub fn is_output_high(&self) -> bool
pub fn is_output_high(&self) -> bool
Check if the output pin is high.
Sourcepub fn is_output_low(&self) -> bool
pub fn is_output_low(&self) -> bool
Check if the output pin is low.
Sourcepub fn is_input_high(&self) -> bool
pub fn is_input_high(&self) -> bool
Check if the open drain pin is high.
Sourcepub fn is_input_low(&self) -> bool
pub fn is_input_low(&self) -> bool
Check if the open drain pin is low.
Trait Implementations§
Source§impl<R: FastPinReg, N: FastPinNum, MODE> ErrorType for FastPin<R, N, MODE>
impl<R: FastPinReg, N: FastPinNum, MODE> ErrorType for FastPin<R, N, MODE>
Source§type Error = Infallible
type Error = Infallible
Error type
Source§impl<R: FastPinReg, N: FastPinNum> InputPin for FastPin<R, N, InputFastPin>
impl<R: FastPinReg, N: FastPinNum> InputPin for FastPin<R, N, InputFastPin>
Source§impl<R: FastPinReg, N: FastPinNum> InputPin for FastPin<R, N, OutputFastPin>
impl<R: FastPinReg, N: FastPinNum> InputPin for FastPin<R, N, OutputFastPin>
Source§impl<R: FastPinReg, N: FastPinNum> OutputPin for FastPin<R, N, OutputFastPin>
impl<R: FastPinReg, N: FastPinNum> OutputPin for FastPin<R, N, OutputFastPin>
Source§impl<R: FastPinReg, N: FastPinNum> StatefulOutputPin for FastPin<R, N, OutputFastPin>
impl<R: FastPinReg, N: FastPinNum> StatefulOutputPin for FastPin<R, N, OutputFastPin>
impl<R: Copy, N: Copy, MODE: Copy> Copy for FastPin<R, N, MODE>
Auto Trait Implementations§
impl<R, N, MODE> Freeze for FastPin<R, N, MODE>
impl<R, N, MODE> RefUnwindSafe for FastPin<R, N, MODE>
impl<R, N, MODE> Send for FastPin<R, N, MODE>
impl<R, N, MODE> Sync for FastPin<R, N, MODE>
impl<R, N, MODE> Unpin for FastPin<R, N, MODE>
impl<R, N, MODE> UnwindSafe for FastPin<R, N, MODE>
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