APM:Libraries
|
Go to the source code of this file.
Functions | |
void | adc_foreach (void(*fn)(const adc_dev *)) |
Call a function on all ADC devices. More... | |
void | adc_init (const adc_dev *dev) |
Initialize an ADC peripheral. More... | |
Variables | |
const adc_dev | _adc1 |
const adc_dev *const | _ADC1 = &_adc1 |
const adc_dev | _adc2 |
const adc_dev *const | _ADC2 = &_adc2 |
const adc_dev const | _adc3 |
const adc_dev *const | _ADC3 = &_adc3 |
__IO uint16_t | ADC_ConvertedValue |
__IO bool | adc_data_ready |
void adc_foreach | ( | void(*)(const adc_dev *) | fn | ) |
Call a function on all ADC devices.
fn | Function to call on each ADC device. |
Definition at line 41 of file adc.c.
Referenced by adc_disable_all().
void adc_init | ( | const adc_dev * | dev | ) |
Initialize an ADC peripheral.
Initializes the RCC clock line for the given peripheral. Resets ADC device registers.
dev | ADC peripheral to initialize |
Definition at line 56 of file adc.c.
Referenced by F4Light::AnalogSource::set_pin().
ADC1 device.
Definition at line 20 of file adc.c.
Referenced by F4Light::AnalogSource::_find_device().
__IO bool adc_data_ready |
Definition at line 35 of file adc.c.
Referenced by adc_init().