dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_internal_adc_cfg Struct Reference

#include <pios_internal_adc_priv.h>

Data Fields

ADC_TypeDef * adc_dev_master
 
ADC_TypeDef * adc_dev_slave
 
struct stm32_dma dma
 
uint32_t half_flag
 
uint32_t full_flag
 
uint32_t oversampling
 
uint8_t adc_pin_count
 
struct adc_pin adc_pins []
 

Detailed Description

A structure that defines an internal ADC configuration

Definition at line 54 of file pios_internal_adc_priv.h.

Field Documentation

ADC_TypeDef* pios_internal_adc_cfg::adc_dev_master

ADC master ex:ADC1

Definition at line 55 of file pios_internal_adc_priv.h.

ADC_TypeDef* pios_internal_adc_cfg::adc_dev_slave

ADC slave to use in ADC dual mode leave unset or NULL for single mode

Definition at line 57 of file pios_internal_adc_priv.h.

uint8_t pios_internal_adc_cfg::adc_pin_count

Number of ADC pins to use

Definition at line 63 of file pios_internal_adc_priv.h.

struct adc_pin pios_internal_adc_cfg::adc_pins[]

Array of pins to use

Definition at line 64 of file pios_internal_adc_priv.h.

struct stm32_dma pios_internal_adc_cfg::dma

DMA configuration structure

Definition at line 59 of file pios_internal_adc_priv.h.

uint32_t pios_internal_adc_cfg::full_flag

DMA buffer full flag ex:DMA1_IT_TC1

Definition at line 61 of file pios_internal_adc_priv.h.

uint32_t pios_internal_adc_cfg::half_flag

DMA half buffer flag ex:DMA1_IT_HT1

Definition at line 60 of file pios_internal_adc_priv.h.

uint32_t pios_internal_adc_cfg::oversampling

oversampling

Definition at line 62 of file pios_internal_adc_priv.h.


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