pub enum PinMode {
Input,
Output,
LedMode,
}Expand description
Pin mode/direction configuration.
Defines how a pin should be configured when using Aw9523::pin_mode.
Variants§
Input
Configure pin as a digital input
Output
Configure pin as a digital output
LedMode
Configure pin as an LED driver with constant-current control
Trait Implementations§
impl Copy for PinMode
impl Eq for PinMode
impl StructuralPartialEq for PinMode
Auto Trait Implementations§
impl Freeze for PinMode
impl RefUnwindSafe for PinMode
impl Send for PinMode
impl Sync for PinMode
impl Unpin for PinMode
impl UnwindSafe for PinMode
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