Struct stm32_metapac::metadata::Peripheral
pub struct Peripheral {
pub name: &'static str,
pub address: u64,
pub registers: Option<PeripheralRegisters>,
pub rcc: Option<PeripheralRcc>,
pub pins: &'static [PeripheralPin],
pub dma_channels: &'static [PeripheralDmaChannel],
pub interrupts: &'static [PeripheralInterrupt],
}
Fields§
§name: &'static str
§address: u64
§registers: Option<PeripheralRegisters>
§rcc: Option<PeripheralRcc>
§pins: &'static [PeripheralPin]
§dma_channels: &'static [PeripheralDmaChannel]
§interrupts: &'static [PeripheralInterrupt]
Trait Implementations§
§impl Clone for Peripheral
impl Clone for Peripheral
§fn clone(&self) -> Peripheral
fn clone(&self) -> Peripheral
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 more§impl Debug for Peripheral
impl Debug for Peripheral
§impl PartialEq for Peripheral
impl PartialEq for Peripheral
impl Eq for Peripheral
impl StructuralPartialEq for Peripheral
Auto Trait Implementations§
impl Freeze for Peripheral
impl RefUnwindSafe for Peripheral
impl Send for Peripheral
impl Sync for Peripheral
impl Unpin for Peripheral
impl UnwindSafe for Peripheral
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
)