#[repr(u8)]pub enum PeripheryTag {
Uart = 1,
I2CSlave = 2,
SPISlave = 4,
Can = 8,
UsbHid = 16,
UsbCdc = 32,
UsbDfu = 64,
Lin = 128,
}Expand description
Enumeration of peripheral interface types supported by the bootloader.
These represent the different communication interfaces that can be used to communicate with the bootloader.
Variants§
Uart = 1
UART serial interface
I2CSlave = 2
I2C slave interface
SPISlave = 4
SPI slave interface
Can = 8
CAN bus interface
UsbHid = 16
USB Human Interface Device (HID) class interface
UsbCdc = 32
USB Communication Device Class (CDC) interface
UsbDfu = 64
USB Device Firmware Upgrade (DFU) class interface
Lin = 128
Local Interconnect Network (LIN) interface
Trait Implementations§
Source§impl Clone for PeripheryTag
impl Clone for PeripheryTag
Source§fn clone(&self) -> PeripheryTag
fn clone(&self) -> PeripheryTag
Returns a duplicate 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 PeripheryTag
impl Debug for PeripheryTag
Source§impl Display for PeripheryTag
impl Display for PeripheryTag
Source§impl From<PeripheryTag> for u8
impl From<PeripheryTag> for u8
Source§fn from(value: PeripheryTag) -> Self
fn from(value: PeripheryTag) -> Self
Convert periphery tag to its numeric representation.
Source§impl IntoEnumIterator for PeripheryTag
impl IntoEnumIterator for PeripheryTag
type Iterator = PeripheryTagIter
fn iter() -> PeripheryTagIter ⓘ
impl Copy for PeripheryTag
Auto Trait Implementations§
impl Freeze for PeripheryTag
impl RefUnwindSafe for PeripheryTag
impl Send for PeripheryTag
impl Sync for PeripheryTag
impl Unpin for PeripheryTag
impl UnwindSafe for PeripheryTag
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