Struct OutputBuilder
pub struct OutputBuilder<P>where
P: Peripheral,
<P as Peripheral>::P: OutputPin,{ /* private fields */ }
Expand description
Builder type for Output
, can be obtained with Output::builder()
.
Implementations§
§impl<P> OutputBuilder<P>where
P: Peripheral + 'static,
<P as Peripheral>::P: OutputPin,
impl<P> OutputBuilder<P>where
P: Peripheral + 'static,
<P as Peripheral>::P: OutputPin,
pub fn drive_strength(
self,
drive_strength: DriveStrength<DriveStrength>,
) -> OutputBuilder<P>
pub fn drive_strength( self, drive_strength: DriveStrength<DriveStrength>, ) -> OutputBuilder<P>
Configures the output’s drive strength.
§Note
Fails to compile if the HALs does not support configuring drive strength of outputs.
pub fn speed(self, speed: Speed<Speed>) -> OutputBuilder<P>
pub fn speed(self, speed: Speed<Speed>) -> OutputBuilder<P>
Configures the output’s speed.
§Note
Fails to compile if the HAL does not support configuring speed of outputs.
§impl<P> OutputBuilder<P>where
P: Peripheral + 'static,
<P as Peripheral>::P: OutputPin,
impl<P> OutputBuilder<P>where
P: Peripheral + 'static,
<P as Peripheral>::P: OutputPin,
Auto Trait Implementations§
impl<P> Freeze for OutputBuilder<P>where
P: Freeze,
impl<P> RefUnwindSafe for OutputBuilder<P>where
P: RefUnwindSafe,
impl<P> Send for OutputBuilder<P>where
P: Send,
impl<P> Sync for OutputBuilder<P>where
P: Sync,
impl<P> Unpin for OutputBuilder<P>where
P: Unpin,
impl<P> UnwindSafe for OutputBuilder<P>where
P: UnwindSafe,
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