Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
ADC::HW Struct Reference

Analog to Digital Converter Peripheral Driver. More...

#include <adc.h>

Classes

struct  ChannelConf
 channel configuration More...
 
struct  Conf
 driver configuration More...
 

Public Member Functions

 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
 

Detailed Description

Analog to Digital Converter Peripheral Driver.


Class Documentation

◆ ADC::HW::ChannelConf

struct ADC::HW::ChannelConf

channel configuration

Collaboration diagram for ADC::HW::ChannelConf:
[legend]
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

struct ADC::HW::Conf

driver configuration

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.

Member Function Documentation

◆ init()

void ADC::HW::init ( )
inline

initialize driver.

call after registering/creating all the needed Channel‍s


The documentation for this struct was generated from the following file: