Struct stm32wlxx_hal::gpio::OutputArgs
source · pub struct OutputArgs {
pub speed: Speed,
pub level: PinState,
pub ot: OutputType,
pub pull: Pull,
}
Expand description
Output pin arguments.
Argument of Output::new
.
Fields§
§speed: Speed
Output speed.
level: PinState
Initial output level.
ot: OutputType
Output type.
pull: Pull
IO pull configuration.
This is only used if the output type is OutputType::OpenDrain
.
Implementations§
Trait Implementations§
source§impl Clone for OutputArgs
impl Clone for OutputArgs
source§fn clone(&self) -> OutputArgs
fn clone(&self) -> OutputArgs
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OutputArgs
impl Debug for OutputArgs
source§impl Default for OutputArgs
impl Default for OutputArgs
source§impl PartialEq for OutputArgs
impl PartialEq for OutputArgs
source§fn eq(&self, other: &OutputArgs) -> bool
fn eq(&self, other: &OutputArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OutputArgs
impl Eq for OutputArgs
impl StructuralEq for OutputArgs
impl StructuralPartialEq for OutputArgs
Auto Trait Implementations§
impl RefUnwindSafe for OutputArgs
impl Send for OutputArgs
impl Sync for OutputArgs
impl Unpin for OutputArgs
impl UnwindSafe for OutputArgs
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