Expand description
§Embassy NXP MCX-A MCUs HAL
A Hardware Abstraction Layer (HAL) for the NXP MCX-A family of microcontrollers using the Embassy async framework. This HAL provides safe, idiomatic Rust interfaces for GPIO, UART, and OSTIMER peripherals.
Re-exports§
pub use nxp_pac as pac;
Modules§
- cdog
- Code Watchdog (CDOG) driver for MCXA microcontrollers.
- clocks
- Clock Module
- config
- crc
- Cyclic Redundancy Check (CRC)
- ctimer
- CTimer driver.
- dma
- DMA driver.
- gpio
- GPIO driver built around a type-erased
Flexpin, similar to other Embassy HALs. The exportedOutput/Inputdrivers own aFlexso they no longer depend on the concrete pin type. - i2c
- I2C Support
- inputmux
- Input Mux driver.
- interrupt
- Interrupt definitions.
- ostimer
- Time Driver.
- perf_
counters - Performance counters
- peripherals
- Types for the peripheral singletons.
- reset_
reason - Reset reason
- spi
- LPSPI driver
- trng
- True Random Number Generator
- wwdt
- Windowed Watchdog Timer (WWDT) driver for MCXA microcontrollers.
Macros§
- bind_
interrupts - Macro to bind interrupts to handlers, similar to embassy-imxrt.
Structs§
- Peri
- An exclusive reference to a peripheral.
- Peripherals
- Struct containing all the peripheral singletons.
Traits§
- Peripheral
Type - Marker trait for peripheral types.
Functions§
- init
- Initialize HAL with configuration (mirrors embassy-imxrt style). Minimal: just take peripherals. Also applies configurable NVIC priority for the OSTIMER OS_EVENT interrupt (no enabling).