#[repr(C)]
pub struct RegisterBlock { pub acr: Reg<ACR_SPEC>, pub pecr: Reg<PECR_SPEC>, pub pdkeyr: Reg<PDKEYR_SPEC>, pub pekeyr: Reg<PEKEYR_SPEC>, pub prgkeyr: Reg<PRGKEYR_SPEC>, pub optkeyr: Reg<OPTKEYR_SPEC>, pub sr: Reg<SR_SPEC>, pub optr: Reg<OPTR_SPEC>, pub wrprot1: Reg<WRPROT1_SPEC>, pub wrprot2: Reg<WRPROT2_SPEC>, /* private fields */ }
Expand description

Register block

Fields

acr: Reg<ACR_SPEC>

0x00 - Access control register

pecr: Reg<PECR_SPEC>

0x04 - Program/erase control register

pdkeyr: Reg<PDKEYR_SPEC>

0x08 - Power down key register

pekeyr: Reg<PEKEYR_SPEC>

0x0c - Program/erase key register

prgkeyr: Reg<PRGKEYR_SPEC>

0x10 - Program memory key register

optkeyr: Reg<OPTKEYR_SPEC>

0x14 - Option byte key register

sr: Reg<SR_SPEC>

0x18 - Status register

optr: Reg<OPTR_SPEC>

0x1c - Option byte register

wrprot1: Reg<WRPROT1_SPEC>

0x20 - Write Protection Register 1

wrprot2: Reg<WRPROT2_SPEC>

0x80 - Write Protection Register 2

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.