embassy-stm32

Crates

git

Versions

stm32l4p5re

Flavors

Skip to main content

Module dfsdm

Module dfsdm 

Source
Expand description

Digital Filter and Sigma-Delta Modulator (DFSDM)

Re-exports§

pub use detector::*;
pub use dma::*;
pub use filter::*;
pub use splits::*;
pub use transceiver::*;
pub use types::*;

Modules§

config
Config value types used across the driver: filter parameters, data packing and shift modes, clock/output sources, and trigger/edge configuration.
detector
Instance-level and filter-level detectors: the analog watchdog, extremes, short-circuit and clock-absence detectors.
dma
DMA support: the ring-buffered regular-conversion filter that reads converted samples via DMA.
filter
Filter and its interrupt handling: filter configuration, the filter driver type, the interrupt handler, and per-filter interrupt/event state.
splits
Split-build traits: the interface between configure_pins’ closure tuple and the shape-dependent split structs. The split structs, selectors and ChannelCfgTuple impls are generated by build.rs (see src/dfsdm/codegen.rs) and glob-re-exported from crate::_generated::dfsdm.
transceiver
Transceiver driver, its pin reference-counting storage, single-use pin selectors, and the pin-trait associations.
types
Type-system: sealed and capability markers, channel markers, pin-presence (PinSet) and channel-config tokens, indexed channel types and trigger types.

Structs§

ChannelSelectors2
The pin selectors handed to the crate::dfsdm::Dfsdm::configure_pins closure. Declare each transceiver’s pins with crate::dfsdm::Sel::datin, crate::dfsdm::Sel::datin_ckin or crate::dfsdm::Sel::none.
ChannelSelectors4
The pin selectors handed to the crate::dfsdm::Dfsdm::configure_pins closure. Declare each transceiver’s pins with crate::dfsdm::Sel::datin, crate::dfsdm::Sel::datin_ckin or crate::dfsdm::Sel::none.
ChannelSelectors8
The pin selectors handed to the crate::dfsdm::Dfsdm::configure_pins closure. Declare each transceiver’s pins with crate::dfsdm::Sel::datin, crate::dfsdm::Sel::datin_ckin or crate::dfsdm::Sel::none.
Dfsdm
DFSDM driver entry point.
DfsdmCommon
Holds references to the peripheral and the optional clock-output. Disables the RCC of the peripheral when dropped.
DfsdmSplit2Ch1Flt
One crate::dfsdm::TransceiverBuilder per transceiver, one crate::dfsdm::FilterBuilder per filter, and the shared crate::dfsdm::DetectorsBuilder.
DfsdmSplit4Ch2Flt
One crate::dfsdm::TransceiverBuilder per transceiver, one crate::dfsdm::FilterBuilder per filter, and the shared crate::dfsdm::DetectorsBuilder.
DfsdmSplit4Ch4Flt
One crate::dfsdm::TransceiverBuilder per transceiver, one crate::dfsdm::FilterBuilder per filter, and the shared crate::dfsdm::DetectorsBuilder.
DfsdmSplit8Ch4Flt
One crate::dfsdm::TransceiverBuilder per transceiver, one crate::dfsdm::FilterBuilder per filter, and the shared crate::dfsdm::DetectorsBuilder.
DfsdmSplit8Ch6Flt
One crate::dfsdm::TransceiverBuilder per transceiver, one crate::dfsdm::FilterBuilder per filter, and the shared crate::dfsdm::DetectorsBuilder.
DfsdmSplit8Ch8Flt
One crate::dfsdm::TransceiverBuilder per transceiver, one crate::dfsdm::FilterBuilder per filter, and the shared crate::dfsdm::DetectorsBuilder.

Enums§

Error
DFSDM error.