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 adc::Adc1 as Adc1Token;pub use gpio::AnyPin;pub use gpio::Flex;pub use gpio::Gpio as GpioToken;pub use gpio::Input;pub use gpio::Level;pub use gpio::Output;pub use interrupt::InterruptExt;pub use mcxa_pac as pac;
Modules§
- adc
- ADC driver
- clkout
- CLKOUT pseudo-peripheral
- clocks
- Clock Module
- config
- crc
- Cyclic Redundancy Check (CRC)
- 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
- interrupt
- Minimal interrupt helpers mirroring embassy-imxrt style for OS_EVENT and LPUART2.
Type-level interrupt traits and bindings are provided by the
embassy_hal_internal::interrupt_mod!macro via the generated module below. - lpuart
- ostimer
- OSTIMER Driver with Robustness Features
- peripherals
- Types for the peripheral singletons.
- pins
- Pin configuration helpers (separate from peripheral drivers).
- rtc
- RTC DateTime driver.
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).