GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_adc.c File Reference

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...
 

Detailed Description

Source file for stm32f103cb ADC.

Author
Stuart Ianna
Version
0.1
Date
June 2018
Warning
None
Bug:
Compilers
  • arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)

Definition in file stm32f103cb_adc.c.