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 mcxa_pac as pac;

Modules§

adc
ADC driver
clkout
CLKOUT pseudo-peripheral
clocks
Clock Module
config
crc
Cyclic Redundancy Check (CRC)
dma
DMA driver for MCXA276.
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
interrupt
Interrupt definitions.
lpuart
ostimer
Time Driver.
peripherals
Types for the peripheral singletons.
reset_reason
Reset reason
rtc
RTC DateTime 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