Expand description
§nxp-pac
This is a Peripheral Access Crate for NXP microcontrollers.
MCXA MetaPAC devices are generated at build time from the curated YAML and chip
metadata packaged in data/, using Git-pinned
chiptool. Only the selected chip’s required
peripherals are rendered into Cargo’s OUT_DIR; generated Rust is not maintained
in the source tree. Curated YAML is authoritative and maintained directly.
Legacy PAC devices retain their checked-in generated sources, originally derived from NXP’s mcux-soc-svd repo.
This crate will (hopefully) be used for embassy-nxp Rust Hardware Abstraction Layer (HAL) for the NXP microcontrollers.
§Cloning
Select exactly one existing chip feature, for example mcxa266 or mcxa287.
The pac feature is enabled by default; metadata, rt, and defmt retain their
existing roles. Metadata-only host builds are supported with default features
disabled. Building a MetaPAC does not require a vendor SVD checkout, external
formatter, or generator executable.
Only explicit SVD import and legacy source regeneration require a recursive clone. Import is an onboarding tool, not an automatic update of curated models.
If you forgot this, you can use git submodule update --checkout --init to fetch the submodules.
§License
The contents of this crate are auto-generated and licensed under the same terms as the underlying SVD file, which is licensed by NXP under a BSD-3-Clause license.
Modules§
- adc
- adc_etc
- aipstz
- aoi
- ccm
- ccm_
analog - cm7_mcm
- common
- csu
- dcdc
- dcp
- dma
- dmamux
- ewm
- flexio
- flexram
- flexspi
- gpc
- gpio
- gpt
- iomuxc
- iomuxc_
gpr - iomuxc_
snvs - iomuxc_
snvs_ gpr - kpp
- lpi2c
- lpspi
- lpuart
- ocotp
- otfad
- pgc
- pit
- pmu
- pwm
- rtwdog
- sai
- snvs
- spdif
- src
- tempmon
- trng
- usb
- usb_
analog - usbnc
- usbphy
- wdog
- xbara
- xtalosc24m
Enums§
Constants§
- ADC1
- Analog-to-Digital Converter
- ADC_ETC
- ADC_ETC
- AIPSTZ1
- AIPSTZ Control Registers
- AIPSTZ2
- AIPSTZ Control Registers
- AOI
- AND/OR/INVERT module
- CCM
- CCM
- CCM_
ANALOG - CCM_ANALOG
- CM7_MCM
- CM7_MCM
- CSU
- CSU registers
- DCDC
- DCDC
- DCP
- DCP register reference index
- DMA0
- DMA
- DMAMUX
- DMAMUX
- EWM
- EWM
- FLEXIO1
- FLEXIO
- FLEXRAM
- FLEXRAM
- FLEXSPI
- FlexSPI
- GPC
- GPC
- GPIO1
- GPIO
- GPIO2
- GPIO
- GPIO5
- GPIO
- GPT1
- GPT
- GPT2
- GPT
- IOMUXC
- IOMUXC
- IOMUXC_
GPR - IOMUXC_GPR
- IOMUXC_
SNVS - IOMUXC_SNVS
- IOMUXC_
SNVS_ GPR - IOMUXC
- KPP
- KPP Registers
- LPI2C1
- LPI2C
- LPI2C2
- LPI2C
- LPSPI1
- LPSPI
- LPSPI2
- LPSPI
- LPUART1
- LPUART
- LPUART2
- LPUART
- LPUART3
- LPUART
- LPUART4
- LPUART
- NVIC_
PRIO_ BITS - Number available in the NVIC for configuring priority
- OCOTP
- no description available
- OTFAD
- OTFAD
- PGC
- PGC
- PIT
- PIT
- PMU
- PMU
- PWM1
- PWM
- RTWDOG
- WDOG
- SAI1
- SAI
- SAI3
- SAI
- SNVS
- SNVS
- SPDIF
- SPDIF
- SRC
- SRC
- TEMPMON
- Temperature Monitor
- TRNG
- TRNG
- USB
- USB
- USBNC
- USB
- USBPHY
- USBPHY Register Reference Index
- USB_
ANALOG - USB Analog
- WDOG1
- WDOG
- WDOG2
- WDOG
- XBARA
- Crossbar Switch
- XTALOS
C24M - XTALOSC24M