Module stm32l0xx_hal::prelude
source · [−]Re-exports
pub use embedded_hal::adc::OneShot as _;
pub use embedded_hal::timer::Cancel as _;
pub use embedded_hal::watchdog::Watchdog as _;
pub use embedded_hal::watchdog::WatchdogEnable as _;
pub use crate::adc::AdcExt as _;
pub use crate::crc::CrcExt as _stm32l0_hal_CrcExt;
pub use crate::delay::DelayExt as _;
pub use crate::encoder::EncoderExt;
pub use crate::encoder::PinCh1;
pub use crate::encoder::PinCh2;
pub use crate::encoder::Pins;
pub use crate::gpio::GpioExt as _;
pub use crate::pwr::PowerMode as _;
pub use crate::rcc::RccExt as _;
pub use crate::spi::SpiExt as _;
pub use crate::timer::TimerExt as _;
pub use crate::watchdog::IndependedWatchdogExt as _;
pub use crate::watchdog::WindowWatchdogExt as _;
pub use crate::i2c::I2cExt as _;
pub use crate::serial::Serial1Ext as _;
pub use crate::serial::Serial1LpExt as _;
pub use crate::serial::Serial1LpExt as _;
pub use crate::serial::Serial2Ext as _;
pub use crate::serial::Serial4Ext as _;
pub use crate::serial::Serial5Ext as _;
Modules
If you can read and write the output state, a pin is toggleable by software.
Enums
Digital output pin state
Traits
Create duration-based extensions from primitive numeric types.
Single digital input pin
Single pin that can switch from input to output mode, and vice-versa.
Single digital push-pull output pin
Create rate-based extensions from primitive numeric types.
Push-pull output pin that can read its output state
Output pin that can be toggled
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.