Struct attiny_hal::pac::cpu::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock {
pub gpior0: Reg<GPIOR0_SPEC>,
pub gpior1: Reg<GPIOR1_SPEC>,
pub gpior2: Reg<GPIOR2_SPEC>,
pub prr: Reg<PRR_SPEC>,
pub dwdr: Reg<DWDR_SPEC>,
pub clkpr: Reg<CLKPR_SPEC>,
pub pllcsr: Reg<PLLCSR_SPEC>,
pub osccal: Reg<OSCCAL_SPEC>,
pub mcusr: Reg<MCUSR_SPEC>,
pub mcucr: Reg<MCUCR_SPEC>,
/* private fields */
}
Expand description
Register block
Fields§
§gpior0: Reg<GPIOR0_SPEC>
0x00 - General purpose register 0
gpior1: Reg<GPIOR1_SPEC>
0x01 - General Purpose register 1
gpior2: Reg<GPIOR2_SPEC>
0x02 - General Purpose IO register 2
prr: Reg<PRR_SPEC>
0x0f - Power Reduction Register
dwdr: Reg<DWDR_SPEC>
0x11 - debugWire data register
clkpr: Reg<CLKPR_SPEC>
0x15 - Clock Prescale Register
pllcsr: Reg<PLLCSR_SPEC>
0x16 - PLL Control and status register
osccal: Reg<OSCCAL_SPEC>
0x20 - Oscillator Calibration Register
mcusr: Reg<MCUSR_SPEC>
0x23 - MCU Status register
mcucr: Reg<MCUCR_SPEC>
0x24 - MCU Control Register
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§
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