pub type Sercom6 = Sercom6;
Expand description
Type alias for the corresponding SERCOM instance
Aliased Type§
struct Sercom6 { /* private fields */ }
Implementations
Source§impl Sercom6
impl Sercom6
Sourcepub const PTR: *const RegisterBlock = {0x43000800 as *const atsamd51p::sercom0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x43000800 as *const atsamd51p::sercom0::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Sercom6
pub unsafe fn steal() -> Sercom6
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Trait Implementations§
Source§impl Sercom for Sercom6
impl Sercom for Sercom6
Source§const DMA_RX_TRIGGER: TriggerSource = TriggerSource::Sercom6Rx
const DMA_RX_TRIGGER: TriggerSource = TriggerSource::Sercom6Rx
RX Trigger source for DMA transactions
Source§const DMA_TX_TRIGGER: TriggerSource = TriggerSource::Sercom6Tx
const DMA_TX_TRIGGER: TriggerSource = TriggerSource::Sercom6Tx
TX trigger source for DMA transactions
type Interrupt = SERCOM6
Source§fn enable_apb_clock(&mut self, ctrl: &ApbClkCtrl)
fn enable_apb_clock(&mut self, ctrl: &ApbClkCtrl)
Enable the corresponding APB clock
Source§fn reg_block(peripherals: &mut Peripherals) -> &RegisterBlock
fn reg_block(peripherals: &mut Peripherals) -> &RegisterBlock
Get a reference to the sercom from a
Peripherals
blockSource§fn rx_waker() -> &'static AtomicWaker
fn rx_waker() -> &'static AtomicWaker
Get a reference to this
Sercom
’s associated RX WakerSource§fn tx_waker() -> &'static AtomicWaker
fn tx_waker() -> &'static AtomicWaker
Get a reference to this
Sercom
’s associated TX Waker