Module stm32g0xx_hal::prelude

source ·

Re-exports

pub use hal::adc::OneShot as _;
pub use hal::watchdog::Watchdog as _;
pub use hal::watchdog::WatchdogEnable as _;
pub use crate::analog::adc::AdcExt as _;
pub use crate::analog::comparator::ComparatorExt as _;
pub use crate::analog::comparator::ComparatorSplit as _;
pub use crate::analog::comparator::WindowComparatorExt as _;
pub use crate::analog::dac::DacExt as _;
pub use crate::analog::dac::DacOut as _;
pub use crate::crc::CrcExt as _;
pub use crate::timer::delay::DelayExt as _;
pub use crate::dma::DmaExt as _;
pub use crate::exti::ExtiExt as _;
pub use crate::flash::FlashExt as _;
pub use crate::gpio::GpioExt as _;
pub use crate::i2c::blocking::I2cSlave;
pub use crate::i2c::I2cExt as _;
pub use crate::power::PowerExt as _;
pub use crate::rcc::RccExt as _;
pub use crate::rng::RngCore as _;
pub use crate::rng::RngExt as _;
pub use crate::rtc::RtcExt as _;
pub use crate::serial::SerialExt as _;
pub use crate::spi::SpiExt as _;
pub use crate::time::U32Ext as _;
pub use crate::timer::opm::OpmExt as _;
pub use crate::timer::pwm::PwmExt as _;
pub use crate::timer::pwm::PwmQExt as _;
pub use crate::timer::qei::QeiExt as _;
pub use crate::timer::stopwatch::StopwatchExt as _;
pub use crate::timer::TimerExt as _;
pub use crate::watchdog::IWDGExt as _;
pub use crate::watchdog::WWDGExt as _;
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
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.
Write half of a serial interface (blocking variant)
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)
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.