#include <stm32analogindma.h>
Definition at line 20 of file stm32analogindma.h.
◆ ErrorCode
Error codes for this class. Error ID identify a unique error() / onError call (excluding transferring).
Enumerator |
---|
Start_HalError | |
Start_HalBusy | |
Start_HalTimeout | |
Stop_HalError | |
Stop_HalBusy | |
Stop_HalTimeout | |
IsrError_Isr | |
Definition at line 24 of file stm32analogindma.h.
◆ Stm32AnalogInDma() [1/2]
semf::Stm32AnalogInDma::Stm32AnalogInDma |
( |
ADC_HandleTypeDef & |
hwHandle | ) |
|
|
explicit |
◆ Stm32AnalogInDma() [2/2]
◆ ~Stm32AnalogInDma()
virtual semf::Stm32AnalogInDma::~Stm32AnalogInDma |
( |
| ) |
|
|
virtualdefault |
◆ isr()
void semf::Stm32AnalogInDma::isr |
( |
ADC_HandleTypeDef & |
adc | ) |
|
Interrupt service routine for adc conversion finished.
- Parameters
-
Definition at line 97 of file stm32analogindma.cpp.
◆ isrError()
void semf::Stm32AnalogInDma::isrError |
( |
ADC_HandleTypeDef & |
adc | ) |
|
Sending a error
signal.
- Parameters
-
adc | Pointer to adc hardware handler. |
- Exceptions
-
IsrError_Isr | If the AnalogIn-IRQ results in an error. |
Definition at line 106 of file stm32analogindma.cpp.
◆ queue()
Get the list with all analog ins.
- Returns
- The list with all analog ins.
Definition at line 79 of file stm32analogindma.cpp.
◆ start()
void semf::Stm32AnalogInDma::start |
( |
uint8_t |
buffer[], |
|
|
size_t |
bufferSize |
|
) |
| |
|
overridevirtual |
Starts the hardware modules (ADC with DMA) for reading ADC values.
- Parameters
-
buffer | Buffer where the read data should be stored. |
bufferSize | Size of buffer in bytes. |
- Exceptions
-
Start_HalError | If the ST-HAL stumbles upon an error. |
Start_HalBusy | If the ST-HAL is busy. |
Start_HalTimeout | If the ST-HAL times out. |
Implements semf::AnalogInDma.
Definition at line 23 of file stm32analogindma.cpp.
◆ stop()
void semf::Stm32AnalogInDma::stop |
( |
| ) |
|
|
overridevirtual |
Stops the ADC hardware.
- Exceptions
-
Stop_HalError | If the ST-HAL stumbles upon an error. |
Stop_HalBusy | If the ST-HAL is busy. |
Stop_HalTimeout | If the ST-HAL times out. |
Implements semf::AnalogInDma.
Definition at line 54 of file stm32analogindma.cpp.
◆ systemIsr()
void semf::Stm32AnalogInDma::systemIsr |
( |
ADC_HandleTypeDef & |
adc | ) |
|
|
static |
System-wide interrupt service routine for adc conversion finished.
- Parameters
-
Definition at line 85 of file stm32analogindma.cpp.
◆ systemIsrError()
void semf::Stm32AnalogInDma::systemIsrError |
( |
ADC_HandleTypeDef & |
adc | ) |
|
|
static |
System-wide interrupt service routine for adc error.
- Parameters
-
Definition at line 91 of file stm32analogindma.cpp.