[][src]Struct nrf51::ficr::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub codepagesize: CODEPAGESIZE,
    pub codesize: CODESIZE,
    pub clenr0: CLENR0,
    pub ppfc: PPFC,
    pub numramblock: NUMRAMBLOCK,
    pub configid: CONFIGID,
    pub deviceid: [DEVICEID; 2],
    pub er: [ER; 4],
    pub ir: [IR; 4],
    pub deviceaddrtype: DEVICEADDRTYPE,
    pub deviceaddr: [DEVICEADDR; 2],
    pub overrideen: OVERRIDEEN,
    pub nrf_1mbit: [NRF_1MBIT; 5],
    pub ble_1mbit: [BLE_1MBIT; 5],
    // some fields omitted
}

Register block

Fields

codepagesize: CODEPAGESIZE

0x10 - Code memory page size in bytes.

codesize: CODESIZE

0x14 - Code memory size in pages.

clenr0: CLENR0

0x28 - Length of code region 0 in bytes.

ppfc: PPFC

0x2c - Pre-programmed factory code present.

numramblock: NUMRAMBLOCK

0x34 - Number of individualy controllable RAM blocks.

configid: CONFIGID

0x5c - Configuration identifier.

deviceid: [DEVICEID; 2]

0x60 - Device identifier.

er: [ER; 4]

0x80 - Encryption root.

ir: [IR; 4]

0x90 - Identity root.

deviceaddrtype: DEVICEADDRTYPE

0xa0 - Device address type.

deviceaddr: [DEVICEADDR; 2]

0xa4 - Device address.

overrideen: OVERRIDEEN

0xac - Radio calibration override enable.

nrf_1mbit: [NRF_1MBIT; 5]

0xb0 - Override values for the OVERRIDEn registers in RADIO for NRF_1Mbit mode.

ble_1mbit: [BLE_1MBIT; 5]

0xec - Override values for the OVERRIDEn registers in RADIO for BLE_1Mbit mode.

Methods

impl RegisterBlock[src]

pub fn sizeramblock(&self) -> &[SIZERAMBLOCK; 4][src]

0x38 - Deprecated array of size of RAM block in bytes. This name is kept for backward compatinility purposes. Use SIZERAMBLOCKS instead.

pub fn sizeramblock_mut(&self) -> &mut [SIZERAMBLOCK; 4][src]

0x38 - Deprecated array of size of RAM block in bytes. This name is kept for backward compatinility purposes. Use SIZERAMBLOCKS instead.

pub fn sizeramblocks(&self) -> &SIZERAMBLOCKS[src]

0x38 - Size of RAM blocks in bytes.

pub fn sizeramblocks_mut(&self) -> &mut SIZERAMBLOCKS[src]

0x38 - Size of RAM blocks in bytes.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.