#[repr(u8)]pub enum LineLevel {
Low = 0,
High = 1,
Input = 2,
}Expand description
Used to represent the SWDIO line state on clock operations.
Variants§
Implementations§
Source§impl LineLevel
impl LineLevel
Sourcepub fn levels_from_byte(value: u8) -> Result<(Self, Self), ProtocolError>
pub fn levels_from_byte(value: u8) -> Result<(Self, Self), ProtocolError>
Convert from a byte value to a LineLevel
Arguments:
value: The byte value to convert.
Returns:
Ok((LineLevel, LineLevel): the leve and post level.Err(ProtocolError::Arg): If the byte value is not recognized.
Trait Implementations§
impl Eq for LineLevel
impl StructuralPartialEq for LineLevel
Auto Trait Implementations§
impl Freeze for LineLevel
impl RefUnwindSafe for LineLevel
impl Send for LineLevel
impl Sync for LineLevel
impl Unpin for LineLevel
impl UnsafeUnpin for LineLevel
impl UnwindSafe for LineLevel
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