#[repr(u8)]pub enum OutputDrive {
Standard = 0,
HighDrive0Standard1 = 1,
Standard0HighDrive1 = 2,
HighDrive = 3,
Disconnect0Standard1 = 4,
Disconnect0HighDrive1 = 5,
Standard0Disconnect1 = 6,
HighDrive0Disconnect1 = 7,
}
Expand description
Drive strength settings for an output pin.
Variants§
Standard = 0
Standard ‘0’, standard ‘1’
HighDrive0Standard1 = 1
High drive ‘0’, standard ‘1’
Standard0HighDrive1 = 2
Standard ‘0’, high drive ‘1’
HighDrive = 3
High drive ‘0’, high ’drive ‘1’
Disconnect0Standard1 = 4
Disconnect ‘0’ standard ‘1’ (normally used for wired-or connections)
Disconnect0HighDrive1 = 5
Disconnect ‘0’, high drive ‘1’ (normally used for wired-or connections)
Standard0Disconnect1 = 6
Standard ‘0’. disconnect ‘1’ (also known as “open drain”, normally used for wired-and connections)
HighDrive0Disconnect1 = 7
High drive ‘0’, disconnect ‘1’ (also known as “open drain”, normally used for wired-and connections)
Trait Implementations§
Source§impl Clone for OutputDrive
impl Clone for OutputDrive
Source§fn clone(&self) -> OutputDrive
fn clone(&self) -> OutputDrive
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 OutputDrive
impl Debug for OutputDrive
Source§impl Format for OutputDrive
impl Format for OutputDrive
Source§impl PartialEq for OutputDrive
impl PartialEq for OutputDrive
impl Copy for OutputDrive
impl StructuralPartialEq for OutputDrive
Auto Trait Implementations§
impl Freeze for OutputDrive
impl RefUnwindSafe for OutputDrive
impl Send for OutputDrive
impl Sync for OutputDrive
impl Unpin for OutputDrive
impl UnwindSafe for OutputDrive
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)