nrf52840 0.2.0

Peripheral access API for nrf52840 microcontrollers
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
    #[doc = "0x00 - Unspecified"]
    pub unused0: UNUSED0,
    #[doc = "0x04 - Unspecified"]
    pub unused1: UNUSED1,
    #[doc = "0x08 - Unspecified"]
    pub unused2: UNUSED2,
    _reserved3: [u8; 4usize],
    #[doc = "0x10 - Unspecified"]
    pub unused3: UNUSED3,
    #[doc = "0x14 - Description collection[n]: Reserved for Nordic firmware design"]
    pub nrffw: [NRFFW; 15],
    #[doc = "0x50 - Description collection[n]: Reserved for Nordic hardware design"]
    pub nrfhw: [NRFHW; 12],
    #[doc = "0x80 - Description collection[n]: Reserved for customer"]
    pub customer: [CUSTOMER; 32],
    _reserved7: [u8; 256usize],
    #[doc = "0x200 - Description collection[n]: Mapping of the nRESET function"]
    pub pselreset: [PSELRESET; 2],
    #[doc = "0x208 - Access port protection"]
    pub approtect: APPROTECT,
    #[doc = "0x20c - Setting of pins dedicated to NFC functionality: NFC antenna or GPIO"]
    pub nfcpins: NFCPINS,
    #[doc = "0x210 - Processor debug control"]
    pub debugctrl: DEBUGCTRL,
    _reserved11: [u8; 240usize],
    #[doc = "0x304 - GPIO reference voltage / external output supply voltage in high voltage mode"]
    pub regout0: REGOUT0,
}
#[doc = "Unspecified"]
pub struct UNUSED0 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Unspecified"]
pub mod unused0;
#[doc = "Unspecified"]
pub struct UNUSED1 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Unspecified"]
pub mod unused1;
#[doc = "Unspecified"]
pub struct UNUSED2 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Unspecified"]
pub mod unused2;
#[doc = "Unspecified"]
pub struct UNUSED3 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Unspecified"]
pub mod unused3;
#[doc = "Description collection[n]: Reserved for Nordic firmware design"]
pub struct NRFFW {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Description collection[n]: Reserved for Nordic firmware design"]
pub mod nrffw;
#[doc = "Description collection[n]: Reserved for Nordic hardware design"]
pub struct NRFHW {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Description collection[n]: Reserved for Nordic hardware design"]
pub mod nrfhw;
#[doc = "Description collection[n]: Reserved for customer"]
pub struct CUSTOMER {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Description collection[n]: Reserved for customer"]
pub mod customer;
#[doc = "Description collection[n]: Mapping of the nRESET function"]
pub struct PSELRESET {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Description collection[n]: Mapping of the nRESET function"]
pub mod pselreset;
#[doc = "Access port protection"]
pub struct APPROTECT {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Access port protection"]
pub mod approtect;
#[doc = "Setting of pins dedicated to NFC functionality: NFC antenna or GPIO"]
pub struct NFCPINS {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Setting of pins dedicated to NFC functionality: NFC antenna or GPIO"]
pub mod nfcpins;
#[doc = "Processor debug control"]
pub struct DEBUGCTRL {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "Processor debug control"]
pub mod debugctrl;
#[doc = "GPIO reference voltage / external output supply voltage in high voltage mode"]
pub struct REGOUT0 {
    register: ::vcell::VolatileCell<u32>,
}
#[doc = "GPIO reference voltage / external output supply voltage in high voltage mode"]
pub mod regout0;