|
GlobLib
HAL and API libraries for MCUs and hardware.
|
Source file for stm32f103cb ADC. More...
#include "stm32f103cb_adc.h"Go to the source code of this file.
Functions | |
| mcu_error | ADC_setup (gpio_port port, gpio_pin pin) |
| Initialize ADC for a given port and pin. More... | |
| uint16_t | ADC_addChannel (gpio_port port, gpio_pin pin) |
| Add an aditional channel to the ADC. More... | |
| uint16_t | ADC_sample (gpio_port port, gpio_pin pin) |
| Get a sample from the ADC. More... | |
| float | ADC_volts (gpio_port port, gpio_pin pin) |
| Get a sample from the ADC and convert it to volts. More... | |
Source file for stm32f103cb ADC.
Definition in file stm32f103cb_adc.c.