Module esp32c2_hal::prelude
source · Expand description
The prelude
Re-exports all traits required for interacting with the various peripheral drivers implemented in this crate.
Modules
- Minimal and reusable non-blocking I/O layer
Macros
- Create an enum for erased GPIO pins, using the enum-dispatch pattern
Traits
- Trait for buffers that can be given to DMA for reading.
- Trait for
Deref
targets used by the blanketDmaReadBuffer
impl. - Trait for DMA word types used by the blanket DMA buffer impls.
- Trait for buffers that can be given to DMA for writing.
- Trait for
DerefMut
targets used by the blanketDmaWriteBuffer
impl. - Input capture
- Pulse Width Modulation
- A single PWM channel / pin
- Quadrature encoder interface
- ADCs that sample on single channels per request, and do so at the time of the request.
- Millisecond delay
- Microsecond delay
- Blocking read
- Blocking write
- Blocking write + read
- Blocking read
- Write half of a serial interface (blocking variant)
- Blocking transfer
- Blocking write
- _embedded_hal_digital_InputPinDeprecatedSingle digital input pin
- _embedded_hal_digital_OutputPinDeprecatedSingle digital push-pull output pin
- Output pin that can be toggled
- Single digital input pin
- Single digital push-pull output pin
- Push-pull output pin that can read its output state
- Output pin that can be toggled
- Read half of a serial interface
- Write half of a serial interface
- Full duplex (master mode)
- A count down timer
- Feeds an existing watchdog to ensure the processor isn’t reset. Sometimes commonly referred to as “kicking” or “refreshing”.
- Disables a running watchdog timer so the processor won’t be reset.
- Enables A watchdog timer to reset the processor if software is frozen or stalled.
- Extension trait to split a SENS peripheral in independent parts
- Trait to be implemented for an in progress dma transfer.
- Trait to be implemented for an in progress dma transfer.
- I2C Peripheral Instance
- Channel HW interface
- Channel interface
- Interface for HW configuration of timer
- Interface for Timers
- Extension trait to split a SYSTEM/DPORT peripheral in independent logical parts
- Timer peripheral instance
- UART peripheral instance
- Pins used by the UART interface
- Extension trait for simple short-hands for u32 Durations
- Extension trait for simple short-hands for u64 Durations
- Extension trait for simple short-hands for u32 Rate
- Extension trait for simple short-hands for u64 Rate
Attribute Macros
- Attribute to declare the entry point of the program
- Marks a function as an interrupt handler
- This attribute allows placing statics and functions into ram.