Module esp32_hal::prelude [−][src]
Expand description
The prelude.
To use the esp32_hal effectively, a lot of traits and types need to be imported. Instead of importing them one by one manually, the prelude contains the most commonly used imports that are used around application runtime management.
This can be imported as use esp32_hal::prelude::*
.
Re-exports
pub use crate::analog::SensExt;
pub use crate::dport;
pub use crate::dport::Peripheral;
pub use crate::gpio::GpioExt;
pub use crate::interrupt;
pub use crate::units::*;
pub use embedded_hal::digital::v2::InputPin as _;
pub use embedded_hal::digital::v2::OutputPin as _;
pub use embedded_hal::digital::v2::StatefulOutputPin as _;
pub use embedded_hal::digital::v2::ToggleableOutputPin as _;
Modules
Exception handling
Structs
A spinlock and critical section section based mutex.
Traits
Trait for cancelable countdowns.
A count down timer
Any object implementing this trait guarantees exclusive access to the data contained within the mutex for the duration of the lock.
Marker trait that indicates that a timer is periodic
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
Auto-generated tuple implementation, see Mutex
for details.
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
Single digital input pin
Single digital push-pull output pin
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.