[−][src]Struct dart6ul_gpio::OutPin
Methods
impl OutPin
[src]
pub fn force_new(port: u8, index: u8) -> Result<Self, Error>
[src]
Resets the pins by unexporting the pins from userspace through its file interface, to reset its state, then configures a new pin. This should make sure that the pin is usable.
Note: It does not take into account if other applications are using the pins or anything like that.
pub fn new(port: u8, index: u8) -> Result<Self, Error>
[src]
Tries to export and configure a new output pin, this can error out due to the pin already configured, usually with a device or resource busy
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OutPin
impl Send for OutPin
impl Sync for OutPin
impl Unpin for OutPin
impl UnwindSafe for OutPin
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
fn set_low(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
fn set_high(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,