embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

Crate embassy_mcxa

Crate embassy_mcxa 

Source
Expand description

§Embassy MCXA256 HAL

A Hardware Abstraction Layer (HAL) for the NXP MCXA256 microcontroller 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§

adc
ADC driver
cdog
Code Watchdog (CDOG) driver for MCXA microcontrollers.
clkout
CLKOUT pseudo-peripheral
clocks
Clock Module
config
crc
Cyclic Redundancy Check (CRC)
ctimer
CTimer driver.
dma
DMA driver for MCXA276.
flash
Flash driver for MCXA276 using ROM API.
gpio
GPIO driver built around a type-erased Flex pin, similar to other Embassy HALs. The exported Output/Input drivers own a Flex so they no longer depend on the concrete pin type.
i2c
I2C Support
i3c
I3C Support
inputmux
Input Mux driver.
interrupt
Interrupt definitions.
lpuart
ostimer
Time Driver.
perf_counters
Performance counters
peripherals
Types for the peripheral singletons.
reset_reason
Reset reason
rtc
RTC DateTime driver.
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§

Peripherals
Struct containing all the peripheral singletons.

Constants§

NVIC_PRIO_BITS
Number available in the NVIC for configuring priority

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).

Attribute Macros§

interrupt