Struct atsamd21g::pm::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 14 fields
pub ctrl: Reg<CTRL_SPEC>,
pub sleep: Reg<SLEEP_SPEC>,
pub cpusel: Reg<CPUSEL_SPEC>,
pub apbasel: Reg<APBASEL_SPEC>,
pub apbbsel: Reg<APBBSEL_SPEC>,
pub apbcsel: Reg<APBCSEL_SPEC>,
pub ahbmask: Reg<AHBMASK_SPEC>,
pub apbamask: Reg<APBAMASK_SPEC>,
pub apbbmask: Reg<APBBMASK_SPEC>,
pub apbcmask: Reg<APBCMASK_SPEC>,
pub intenclr: Reg<INTENCLR_SPEC>,
pub intenset: Reg<INTENSET_SPEC>,
pub intflag: Reg<INTFLAG_SPEC>,
pub rcause: Reg<RCAUSE_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
ctrl: Reg<CTRL_SPEC>
0x00 - Control
sleep: Reg<SLEEP_SPEC>
0x01 - Sleep Mode
cpusel: Reg<CPUSEL_SPEC>
0x08 - CPU Clock Select
apbasel: Reg<APBASEL_SPEC>
0x09 - APBA Clock Select
apbbsel: Reg<APBBSEL_SPEC>
0x0a - APBB Clock Select
apbcsel: Reg<APBCSEL_SPEC>
0x0b - APBC Clock Select
ahbmask: Reg<AHBMASK_SPEC>
0x14 - AHB Mask
apbamask: Reg<APBAMASK_SPEC>
0x18 - APBA Mask
apbbmask: Reg<APBBMASK_SPEC>
0x1c - APBB Mask
apbcmask: Reg<APBCMASK_SPEC>
0x20 - APBC Mask
intenclr: Reg<INTENCLR_SPEC>
0x34 - Interrupt Enable Clear
intenset: Reg<INTENSET_SPEC>
0x35 - Interrupt Enable Set
intflag: Reg<INTFLAG_SPEC>
0x36 - Interrupt Flag Status and Clear
rcause: Reg<RCAUSE_SPEC>
0x38 - Reset Cause
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more