embassy-stm32

Crates

git

Versions

stm32l433cb

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.