atsamd_hal::sercom

Type Alias Sercom6

Source
pub type Sercom6 = Sercom6;
Expand description

Type alias for the corresponding SERCOM instance

Aliased Type§

struct Sercom6 { /* private fields */ }

Implementations

Source§

impl Sercom6

Source

pub const PTR: *const RegisterBlock = {0x43000800 as *const atsamd51p::sercom0::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

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 ApbId for Sercom6

Source§

const DYN: DynApbId = DynApbId::Sercom6

Corresponding variant of DynApbId
Source§

impl PclkId for Sercom6

Source§

const DYN: DynPclkId = DynPclkId::Sercom6

Corresponding variant of DynPclkId
Source§

impl Sercom for Sercom6

Source§

const NUM: usize = 6usize

SERCOM number
Source§

const DMA_RX_TRIGGER: TriggerSource = TriggerSource::Sercom6Rx

RX Trigger source for DMA transactions
Source§

const DMA_TX_TRIGGER: TriggerSource = TriggerSource::Sercom6Tx

TX trigger source for DMA transactions
Source§

type Interrupt = SERCOM6

Source§

fn enable_apb_clock(&mut self, ctrl: &ApbClkCtrl)

Enable the corresponding APB clock
Source§

fn reg_block(peripherals: &mut Peripherals) -> &RegisterBlock

Get a reference to the sercom from a Peripherals block
Source§

fn rx_waker() -> &'static AtomicWaker

Get a reference to this Sercom’s associated RX Waker
Source§

fn tx_waker() -> &'static AtomicWaker

Get a reference to this Sercom’s associated TX Waker
Source§

impl Debug for Sercom6

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deref for Sercom6

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<Sercom6 as Deref>::Target

Dereferences the value.
Source§

impl Send for Sercom6