Trait serpente::sercom::v2::Sercom

source ·
pub trait Sercom: Sealed + Deref<Target = RegisterBlock> {
    const NUM: usize;

    // Required method
    fn enable_apb_clock(&mut self, ctrl: &PM);
}
Expand description

Type-level enum representing a Serial Communication Interface (SERCOM)

Required Associated Constants§

source

const NUM: usize

SERCOM number

Required Methods§

source

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

Enable the corresponding APB clock

Implementations on Foreign Types§

source§

impl Sercom for SERCOM0

source§

const NUM: usize = 0usize

source§

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

source§

impl Sercom for SERCOM2

source§

const NUM: usize = 2usize

source§

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

source§

impl Sercom for SERCOM3

source§

const NUM: usize = 3usize

source§

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

source§

impl Sercom for SERCOM1

source§

const NUM: usize = 1usize

source§

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

Implementors§