|
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 , convertAux2 } |
Functions | |
| static void | slowAdcEndCB (ADCDriver *adcp) |
| static void | slowAdcErrorCB (ADCDriver *, adcerror_t) |
| float | getMcuTemperature () |
| float | getMcuVrefVoltage () |
| float | getMcuVbatVoltage () |
| 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 | adcAux1ChannelCount = 2 |
| constexpr size_t | adcAux2ChannelCount = 1 |
| static OutputPin | muxControl |
| static const ADCConversionGroup | aux1ConvGroup |
| static const ADCConversionGroup | aux2ConvGroup |
| static constexpr int | auxSensorOversample = 4 |
| static volatile NO_CACHE adcsample_t | aux1SensorSamples [adcAux1ChannelCount *auxSensorOversample] |
| static volatile NO_CACHE adcsample_t | aux2SensorSamples [adcAux2ChannelCount *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 | |
| convertAux2 | |
Definition at line 226 of file stm32_adc_v2.cpp.
| AdcToken enableFastAdcChannel | ( | const char * | msg, |
| adc_channel_e | hwChannel | ||
| ) |
Definition at line 372 of file stm32_adc_v2.cpp.

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

| const ADCConversionGroup * getKnockConversionGroup | ( | uint8_t | channelIdx | ) |
Definition at line 469 of file stm32_adc_v2.cpp.
| float getMcuTemperature | ( | ) |
Definition at line 100 of file stm32_adc_v2.cpp.
| float getMcuVbatVoltage | ( | ) |
Definition at line 132 of file stm32_adc_v2.cpp.

| float getMcuVrefVoltage | ( | ) |
Definition at line 117 of file stm32_adc_v2.cpp.
|
static |
Definition at line 395 of file stm32_adc_v2.cpp.

|
static |
Definition at line 403 of file stm32_adc_v2.cpp.
| void portInitAdc | ( | ) |
Definition at line 483 of file stm32_adc_v2.cpp.

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

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

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


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

|
static |
Definition at line 175 of file stm32_adc_v2.cpp.
|
static |
Definition at line 235 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 20 of file stm32_adc_v2.cpp.
Referenced by getMcuVbatVoltage().
|
constexpr |
Definition at line 18 of file stm32_adc_v2.cpp.
Referenced by readBatch(), and readSlowAnalogInputs().
|
static |
Definition at line 426 of file stm32_adc_v2.cpp.
Referenced by getKnockConversionGroup().
|
static |
Definition at line 448 of file stm32_adc_v2.cpp.
Referenced by getKnockConversionGroup().
|
static |
Definition at line 42 of file stm32_adc_v2.cpp.
Referenced by slowAdcEndCB().
|
static |
Definition at line 97 of file stm32_adc_v2.cpp.
Referenced by getMcuTemperature(), getMcuVrefVoltage(), and slowAdcEndCB().
|
static |
Definition at line 73 of file stm32_adc_v2.cpp.
Referenced by readBatch(), and slowAdcEndCB().
|
static |
Definition at line 98 of file stm32_adc_v2.cpp.
Referenced by getMcuVbatVoltage(), readBatch(), and slowAdcEndCB().
|
staticconstexpr |
Definition at line 96 of file stm32_adc_v2.cpp.
Referenced by getMcuTemperature(), getMcuVbatVoltage(), getMcuVrefVoltage(), readBatch(), and slowAdcEndCB().
|
static |
Definition at line 185 of file stm32_adc_v2.cpp.
Referenced by portInitAdc(), readBatch(), slowAdcEnableDisableChannel(), and slowAdcEndCB().
|
extern |
Referenced by enableFastAdcChannel(), and getFastAdc().
|
static |
Definition at line 31 of file stm32_adc_v2.cpp.
Referenced by portInitAdc(), readSlowAnalogInputs(), and slowAdcEndCB().
|
static |
Definition at line 259 of file stm32_adc_v2.cpp.
Referenced by slowAdcEndCB().
|
static |
Definition at line 170 of file stm32_adc_v2.cpp.
Referenced by portInitAdc(), readSlowAnalogInputs(), and slowAdcEndCB().
|
static |
Definition at line 172 of file stm32_adc_v2.cpp.
Referenced by readSlowAnalogInputs(), and slowAdcEndCB().
|
static |
Definition at line 406 of file stm32_adc_v2.cpp.
|
static |
Definition at line 414 of file stm32_adc_v2.cpp.