Module stm32l4xx_hal::prelude
source · [−]Expand description
Prelude - Include traits for hal
Re-exports
pub use crate::crc::CrcExt as _stm32l4_hal_CrcExt;
pub use crate::datetime::U32Ext as _stm32l4_hal_datetime_U32Ext;
pub use crate::dma::DmaExt as _stm32l4_hal_DmaExt;
pub use crate::flash::FlashExt as _stm32l4_hal_FlashExt;
pub use crate::gpio::ExtiPin as _stm32l4_hal_ExtiPin;
pub use crate::gpio::GpioExt as _stm32l4_hal_GpioExt;
pub use crate::pwm::PwmExt1 as _stm32l4_hal_PwmExt1;
pub use crate::pwm::PwmExt2 as _stm32l4_hal_PwmExt2;
pub use crate::pwr::PwrExt as _stm32l4_hal_PwrExt;
pub use crate::rcc::RccExt as _stm32l4_hal_RccExt;
pub use crate::rng::RngExt as _stm32l4_hal_RngExt;
pub use crate::time::U32Ext as _stm32l4_hal_time_U32Ext;
pub use fugit::ExtU32 as _;
pub use fugit::RateExtU32 as _;
Modules
If you can read and write the output state, a pin is toggleable by software.
Enums
Digital output pin state
Traits
Single digital input pin
Single pin that can switch from input to output mode, and vice-versa.
Single digital push-pull output pin
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.