|
rusEFI
The most advanced open source ECU
|
Port implementation for the STM32 "v2" ADC found on the STM32F4 and STM32F7.
Definition in file stm32_adc_v2.cpp.
Enumerations | |
| enum | slowAdcState_t { convertPrimary , convertMuxed , convertAux } |
Functions | |
| static void | slowAdcEndCB (ADCDriver *adcp) |
| static void | slowAdcErrorCB (ADCDriver *, adcerror_t) |
| float | getMcuTemperature () |
| float | getMcuVrefVoltage () |
| static slowAdcState_t | slowAdcGetNextState (slowAdcState_t state) |
| static bool | readBatch (adcsample_t *convertedSamples, adcsample_t *b) |
| bool | readSlowAnalogInputs (adcsample_t *convertedSamples) |
| static void | slowAdcEnableDisableChannel (adc_channel_e hwChannel, bool en) |
| AdcToken | enableFastAdcChannel (const char *, adc_channel_e hwChannel) |
| adcsample_t | getFastAdc (AdcToken token) |
| static void | knockCompletionCallback (ADCDriver *adcp) |
| static void | knockErrorCallback (ADCDriver *, adcerror_t) |
| const ADCConversionGroup * | getKnockConversionGroup (uint8_t channelIdx) |
| void | portInitAdc () |
Variables | |
| constexpr size_t | adcChannelCount = 16 |
| constexpr size_t | adcAuxChannelCount = 2 |
| static OutputPin | muxControl |
| static const ADCConversionGroup | auxConvGroup |
| static constexpr int | auxSensorOversample = 4 |
| static volatile NO_CACHE adcsample_t | auxSensorSamples [adcAuxChannelCount *auxSensorOversample] |
| static volatile NO_CACHE adcsample_t | slowSampleBuffer [SLOW_ADC_OVERSAMPLE *adcChannelCount] |
| static volatile NO_CACHE adcsample_t | slowSampleBufferMuxed [SLOW_ADC_OVERSAMPLE *adcChannelCount] |
| static ADCConversionGroup | convGroupSlow |
| static slowAdcState_t | slowAdcState = convertPrimary |
| AdcDevice | fastAdc |
| static const uint32_t | smpr1 |
| static const uint32_t | smpr2 |
| static const ADCConversionGroup | adcConvGroupCh1 |
| static const ADCConversionGroup | adcConvGroupCh2 |
| enum slowAdcState_t |
| Enumerator | |
|---|---|
| convertPrimary | |
| convertMuxed | |
| convertAux | |
Definition at line 184 of file stm32_adc_v2.cpp.
| AdcToken enableFastAdcChannel | ( | const char * | msg, |
| adc_channel_e | hwChannel | ||
| ) |
Definition at line 314 of file stm32_adc_v2.cpp.

| adcsample_t getFastAdc | ( | AdcToken | token | ) |
Definition at line 325 of file stm32_adc_v2.cpp.

| const ADCConversionGroup * getKnockConversionGroup | ( | uint8_t | channelIdx | ) |
Definition at line 411 of file stm32_adc_v2.cpp.
| float getMcuTemperature | ( | ) |
Definition at line 76 of file stm32_adc_v2.cpp.
| float getMcuVrefVoltage | ( | ) |
Definition at line 98 of file stm32_adc_v2.cpp.
|
static |
Definition at line 337 of file stm32_adc_v2.cpp.

|
static |
Definition at line 345 of file stm32_adc_v2.cpp.
| void portInitAdc | ( | ) |
Definition at line 425 of file stm32_adc_v2.cpp.

|
static |
Definition at line 246 of file stm32_adc_v2.cpp.
Referenced by readSlowAnalogInputs().

| bool readSlowAnalogInputs | ( | adcsample_t * | convertedSamples | ) |
Definition at line 272 of file stm32_adc_v2.cpp.

|
static |
Definition at line 300 of file stm32_adc_v2.cpp.
Referenced by enableFastAdcChannel().


|
static |
Definition at line 216 of file stm32_adc_v2.cpp.

|
static |
Definition at line 133 of file stm32_adc_v2.cpp.
|
static |
Definition at line 192 of file stm32_adc_v2.cpp.
Referenced by slowAdcEndCB().


|
constexpr |
Definition at line 19 of file stm32_adc_v2.cpp.
Referenced by getMcuTemperature(), and getMcuVrefVoltage().
|
constexpr |
Definition at line 18 of file stm32_adc_v2.cpp.
Referenced by readBatch(), and readSlowAnalogInputs().
|
static |
Definition at line 368 of file stm32_adc_v2.cpp.
Referenced by getKnockConversionGroup().
|
static |
Definition at line 390 of file stm32_adc_v2.cpp.
Referenced by getKnockConversionGroup().
|
static |
Definition at line 41 of file stm32_adc_v2.cpp.
Referenced by getMcuTemperature(), and slowAdcEndCB().
|
staticconstexpr |
Definition at line 73 of file stm32_adc_v2.cpp.
Referenced by getMcuTemperature(), getMcuVrefVoltage(), and slowAdcEndCB().
|
static |
Definition at line 74 of file stm32_adc_v2.cpp.
Referenced by getMcuTemperature(), getMcuVrefVoltage(), and slowAdcEndCB().
|
static |
Definition at line 143 of file stm32_adc_v2.cpp.
Referenced by portInitAdc(), readBatch(), slowAdcEnableDisableChannel(), and slowAdcEndCB().
|
extern |
Referenced by enableFastAdcChannel(), and getFastAdc().
|
static |
Definition at line 30 of file stm32_adc_v2.cpp.
Referenced by portInitAdc(), readSlowAnalogInputs(), and slowAdcEndCB().
|
static |
Definition at line 214 of file stm32_adc_v2.cpp.
Referenced by slowAdcEndCB().
|
static |
Definition at line 128 of file stm32_adc_v2.cpp.
Referenced by portInitAdc(), readSlowAnalogInputs(), and slowAdcEndCB().
|
static |
Definition at line 130 of file stm32_adc_v2.cpp.
Referenced by readSlowAnalogInputs(), and slowAdcEndCB().
|
static |
Definition at line 348 of file stm32_adc_v2.cpp.
|
static |
Definition at line 356 of file stm32_adc_v2.cpp.