embassy-stm32

Crates

git

Versions

stm32h573mi

Flavors

embassy_stm32::adc

Function resolution_to_max_count

Source
pub const fn resolution_to_max_count(res: Resolution) -> u32
Expand description

Get the maximum reading value for this resolution.

This is 2**n - 1.