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