Analog to Digital Converter Peripheral Driver.
More...
#include <adc.h>
|
|
| HW (const Conf &conf) |
| | create Driver with given Conf
|
| |
|
void | measure () |
| | start measuring all registered channels/pins
|
| |
| void | init () |
| | initialize driver.
|
| |
|
Channel | get (ChannelConf conf) |
| | register/create pin/channel for analog measurement
|
| |
Analog to Digital Converter Peripheral Driver.
◆ ADC::HW::ChannelConf
| struct ADC::HW::ChannelConf |
| Class Members |
|
uint32_t |
channel |
ADC Channel number [i.e. Pin]. |
|
uint32_t |
samplingTime |
sampling time |
|
double |
lsb |
Least Significant Bit value factor. |
|
DIO |
pin |
Analog configured pin. |
◆ ADC::HW::Conf
| Class Members |
|
ADC_TypeDef * |
adc |
ADC Peripheral. |
|
uint32_t |
prescaler |
Peripheral clock prescaler. |
|
DMA_Stream_TypeDef * |
dmaStream |
DMA Stream for reading out raw values. |
|
uint32_t |
dmaChannel |
DMA Channel. |
◆ init()
initialize driver.
call after registering/creating all the needed Channels
The documentation for this struct was generated from the following file: