Module adc

Module adc 

Source
Expand description

Basic ADC support for STM32F7 using direct PAC register access.

Thin wrapper around ADC1/ADC2/ADC3 with blocking single-channel reads.

Example:

let adc1 = Adc::adc1(dp.ADC1, &rcc);
let value = adc1.read(3);

Structs§

Adc
Generic ADC wrapper over a PAC ADCx peripheral.

Traits§

AdcRead
Trait for reading a single channel from an ADC peripheral.

Functions§

volts_from_adc
Convert raw ADC value to voltage, assuming 12-bit resolution.