pub struct PeripheralCount {
pub i2c: usize,
pub qspi: usize,
pub spi: usize,
pub uart: usize,
pub mac: usize,
pub mmc: usize,
pub usb: usize,
}Expand description
Represents the number of peripherals in the SVD device description.
Fields§
§i2c: usizeNumber of I2C peripherals
qspi: usizeNumber of QSPI peripherals
spi: usizeNumber of SPI peripherals
uart: usizeNumber of UART peripherals
mac: usizeNumber of Ethernet MAC peripherals
mmc: usizeNumber of MMC peripherals
usb: usizeNumber of USB peripherals
Implementations§
Source§impl PeripheralCount
impl PeripheralCount
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new PeripheralCount.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeripheralCount
impl RefUnwindSafe for PeripheralCount
impl Send for PeripheralCount
impl Sync for PeripheralCount
impl Unpin for PeripheralCount
impl UnwindSafe for PeripheralCount
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