Struct hal_sim::gpio::Pin

source ·
pub struct Pin<MODE> { /* private fields */ }

Implementations§

Trait Implementations§

Channel ID type Read more
Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8. Read more
Executes the destructor for this type. Read more
Error type
Is the input pin high?
Is the input pin low?
Error type returned by ADC methods
Request that the ADC begin a conversion on the specified pin Read more
Error type
Drives the pin low Read more
Drives the pin high Read more
Drives the pin high or low depending on the provided value Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Casts the value.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.

Returns the argument unchanged.

Calls U::from(self).

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

Convert self to a value of a Properties struct.
Convert self to a value of a Properties struct.
Casts the value.
Casts the value.
Casts the value.
Casts the value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.