nrf-pac

Crates

0.1.0

Versions

nrf5340-app

Flavors

Crate nrf_pac

Source
Expand description

§nrf-pac

This is a Peripheral Access Crate for Nordic Semiconductor nRF microcontrollers.

This crate has been automatically generated from the SVD files in nrfx, using chiptool. Fixes are added to the SVD file to make the crate more amenable to writing HALs with, such as converting sets of identical registers/fields to arrays, merging identical registers and enums, etc.

This crate is used for the embassy-nrf Rust Hardware Abstraction Layer (HAL) for the nRF microcontrollers.

§Supported chips

  • nRF51xx
  • nRF52805
  • nRF52810
  • nRF52811
  • nRF52820
  • nRF52832
  • nRF52833
  • nRF52840
  • nRF5340 appplication core
  • nRF5340 network core
  • nRF54L15 appplication core
  • nRF9120 (SoC used in nRF9131, nRF9161 and nRF9151)
  • nRF9160

§License

The contents of this crate are auto-generated and licensed under the same terms as the underlying SVD file, which is licensed by Nordic Semiconductor under a BSD-3-Clause license.

Modules§

cache
cachedata
cacheinfo
clock
common
comp
cryptocell
cti
ctrlapperi
dcnf
dppic
egu
ficr
fpu
gpio
gpiote
i2s
ipc
kmu
lpcomp
mutex
nfct
nvmc
oscillators
pdm
power
pwm
qdec
qspi
regulators
reset
rtc
saadc
shared
spim
spis
spu
tad
timer
twim
twis
uarte
uicr
usbd
usbreg
vmc
wdt

Enums§

Interrupt
interrupt

Constants§

CACHEDATA_S
CACHEDATA
CACHEINFO_S
CACHEINFO
CACHE_S
Cache
CLOCK_NS
Clock management 0
CLOCK_S
Clock management 1
COMP_NS
Comparator 0
COMP_S
Comparator 1
CRYPTOCELL_S
ARM TrustZone CryptoCell register interface
CTI_S
Cross-Trigger Interface control. NOTE: this is not a separate peripheral, but describes CM33 functionality.
CTRLAP_NS
Control access port 0
CTRLAP_S
Control access port 1
DCNF_NS
Domain configuration management 0
DCNF_S
Domain configuration management 1
DPPIC_NS
Distributed programmable peripheral interconnect controller 0
DPPIC_S
Distributed programmable peripheral interconnect controller 1
EGU0_NS
Event generator unit 0
EGU0_S
Event generator unit 1
EGU1_NS
Event generator unit 2
EGU1_S
Event generator unit 3
EGU2_NS
Event generator unit 4
EGU2_S
Event generator unit 5
EGU3_NS
Event generator unit 6
EGU3_S
Event generator unit 7
EGU4_NS
Event generator unit 8
EGU4_S
Event generator unit 9
EGU5_NS
Event generator unit 10
EGU5_S
Event generator unit 11
FICR_S
Factory Information Configuration Registers
FPU_NS
FPU control peripheral 0
FPU_S
FPU control peripheral 1
GPIOTE0_S
GPIO Tasks and Events 0
GPIOTE1_NS
GPIO Tasks and Events 1
I2S0_NS
Inter-IC Sound 0
I2S0_S
Inter-IC Sound 1
IPC_NS
Interprocessor communication 0
IPC_S
Interprocessor communication 1
KMU_NS
Key management unit 0
KMU_S
Key management unit 1
LPCOMP_NS
Low-power comparator 0
LPCOMP_S
Low-power comparator 1
MUTEX_NS
MUTEX 0
MUTEX_S
MUTEX 1
NFCT_NS
NFC-A compatible radio 0
NFCT_S
NFC-A compatible radio 1
NVIC_PRIO_BITS
Number available in the NVIC for configuring priority
NVMC_NS
Non-volatile memory controller 0
NVMC_S
Non-volatile memory controller 1
OSCILLATORS_NS
Oscillator control 0
OSCILLATORS_S
Oscillator control 1
P0_NS
GPIO Port 0
P0_S
GPIO Port 2
P1_NS
GPIO Port 1
P1_S
GPIO Port 3
PDM0_NS
Pulse Density Modulation (Digital Microphone) Interface 0
PDM0_S
Pulse Density Modulation (Digital Microphone) Interface 1
POWER_NS
Power control 0
POWER_S
Power control 1
PWM0_NS
Pulse width modulation unit 0
PWM0_S
Pulse width modulation unit 1
PWM1_NS
Pulse width modulation unit 2
PWM1_S
Pulse width modulation unit 3
PWM2_NS
Pulse width modulation unit 4
PWM2_S
Pulse width modulation unit 5
PWM3_NS
Pulse width modulation unit 6
PWM3_S
Pulse width modulation unit 7
QDEC0_NS
Quadrature Decoder 0
QDEC0_S
Quadrature Decoder 1
QDEC1_NS
Quadrature Decoder 2
QDEC1_S
Quadrature Decoder 3
QSPI_NS
External flash interface 0
QSPI_S
External flash interface 1
REGULATORS_NS
Voltage regulators 0
REGULATORS_S
Voltage regulators 1
RESET_NS
Reset control 0
RESET_S
Reset control 1
RTC0_NS
Real-time counter 0
RTC0_S
Real-time counter 1
RTC1_NS
Real-time counter 2
RTC1_S
Real-time counter 3
SAADC_NS
Analog to Digital Converter 0
SAADC_S
Analog to Digital Converter 1
SPIM0_NS
Serial Peripheral Interface Master with EasyDMA 0
SPIM0_S
Serial Peripheral Interface Master with EasyDMA 1
SPIM1_NS
Serial Peripheral Interface Master with EasyDMA 2
SPIM1_S
Serial Peripheral Interface Master with EasyDMA 3
SPIM2_NS
Serial Peripheral Interface Master with EasyDMA 6
SPIM2_S
Serial Peripheral Interface Master with EasyDMA 7
SPIM3_NS
Serial Peripheral Interface Master with EasyDMA 8
SPIM3_S
Serial Peripheral Interface Master with EasyDMA 9
SPIM4_NS
Serial Peripheral Interface Master with EasyDMA 4
SPIM4_S
Serial Peripheral Interface Master with EasyDMA 5
SPIS0_NS
SPI Slave 0
SPIS0_S
SPI Slave 1
SPIS1_NS
SPI Slave 2
SPIS1_S
SPI Slave 3
SPIS2_NS
SPI Slave 4
SPIS2_S
SPI Slave 5
SPIS3_NS
SPI Slave 6
SPIS3_S
SPI Slave 7
SPU_S
System protection unit
TAD_S
Trace and debug control
TIMER0_NS
Timer/Counter 0
TIMER0_S
Timer/Counter 1
TIMER1_NS
Timer/Counter 2
TIMER1_S
Timer/Counter 3
TIMER2_NS
Timer/Counter 4
TIMER2_S
Timer/Counter 5
TWIM0_NS
I2C compatible Two-Wire Master Interface with EasyDMA 0
TWIM0_S
I2C compatible Two-Wire Master Interface with EasyDMA 1
TWIM1_NS
I2C compatible Two-Wire Master Interface with EasyDMA 2
TWIM1_S
I2C compatible Two-Wire Master Interface with EasyDMA 3
TWIM2_NS
I2C compatible Two-Wire Master Interface with EasyDMA 4
TWIM2_S
I2C compatible Two-Wire Master Interface with EasyDMA 5
TWIM3_NS
I2C compatible Two-Wire Master Interface with EasyDMA 6
TWIM3_S
I2C compatible Two-Wire Master Interface with EasyDMA 7
TWIS0_NS
I2C compatible Two-Wire Slave Interface with EasyDMA 0
TWIS0_S
I2C compatible Two-Wire Slave Interface with EasyDMA 1
TWIS1_NS
I2C compatible Two-Wire Slave Interface with EasyDMA 2
TWIS1_S
I2C compatible Two-Wire Slave Interface with EasyDMA 3
TWIS2_NS
I2C compatible Two-Wire Slave Interface with EasyDMA 4
TWIS2_S
I2C compatible Two-Wire Slave Interface with EasyDMA 5
TWIS3_NS
I2C compatible Two-Wire Slave Interface with EasyDMA 6
TWIS3_S
I2C compatible Two-Wire Slave Interface with EasyDMA 7
UARTE0_NS
UART with EasyDMA 0
UARTE0_S
UART with EasyDMA 1
UARTE1_NS
UART with EasyDMA 2
UARTE1_S
UART with EasyDMA 3
UARTE2_NS
UART with EasyDMA 4
UARTE2_S
UART with EasyDMA 5
UARTE3_NS
UART with EasyDMA 6
UARTE3_S
UART with EasyDMA 7
UICR_S
User Information Configuration Registers User information configuration registers
USBD_NS
Universal serial bus device 0
USBD_S
Universal serial bus device 1
USBREGULATOR_NS
USB Regulator 0
USBREGULATOR_S
USB Regulator 1
VMC_NS
Volatile Memory controller 0
VMC_S
Volatile Memory controller 1
WDT0_NS
Watchdog Timer 0
WDT0_S
Watchdog Timer 1
WDT1_NS
Watchdog Timer 2
WDT1_S
Watchdog Timer 3

Attribute Macros§

interrupt