# Gpiohs0 in k210_hal::gpiohs - Rust
API documentation for the Rust `Gpiohs0` struct in crate `k210_hal`.
Keywords: rust, rustlang, rust-lang, Gpiohs0

# Struct k210_hal::gpiohs::Gpiohs0

source · [−]

    pub struct Gpiohs0<MODE> { /* private fields */ }

## Implementations

source

### impl<MODE> Gpiohs0<MODE>

source

#### pub fn into_pull_up_input(self) -> Gpiohs0<Input<PullUp>>

source

### impl<MODE> Gpiohs0<MODE>

source

#### pub fn trigger_on_edge(&mut self, edge: Edge)

source

#### pub fn check_edges(&self) -> Edge

source

#### pub fn clear_interrupt_pending_bits(&mut self)

## Trait Implementations

source

### impl<MODE> InputPin for Gpiohs0<Input<MODE>>

#### type Error = Infallible

Error type

source

#### fn try_is_high(&self) -> Result<bool, Self::Error>

Is the input pin high?

source

#### fn try_is_low(&self) -> Result<bool, Self::Error>

Is the input pin low?

source

### impl<MODE> OutputPin for Gpiohs0<Output<MODE>>

#### type Error = Infallible

Error type

source

#### fn try_set_high(&mut self) -> Result<(), Self::Error>

Drives the pin high Read more

source

#### fn try_set_low(&mut self) -> Result<(), Self::Error>

Drives the pin low Read more

## Auto Trait Implementations

### impl<MODE> RefUnwindSafe for Gpiohs0<MODE> where
MODE: RefUnwindSafe,

### impl<MODE> Send for Gpiohs0<MODE> where
MODE: Send,

### impl<MODE> Sync for Gpiohs0<MODE> where
MODE: Sync,

### impl<MODE> Unpin for Gpiohs0<MODE> where
MODE: Unpin,

### impl<MODE> UnwindSafe for Gpiohs0<MODE> where
MODE: UnwindSafe,

## Blanket Implementations

source

### impl<T> Any for T where
T: 'static + ?Sized,

source

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more

source

### impl<T> Borrow<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

### impl<T> BorrowMut<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

### impl<T, U> Into<U> for T where
U: From<T>,

const: unstable · source

#### fn into(self) -> U

Calls `U::from(self)`.

That is, this conversion is whatever the implementation of `From<T> for U` chooses to do.

source

### impl<T, U> TryFrom<U> for T where
U: Into<T>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.

source

### impl<T, U> TryInto<U> for T where
U: TryFrom<T>,

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.