Library for build-in ADC and DAC in STM32F446 mounted on Nucleo F446RE. Nucleo F446RE に搭載されている STM32F446 の内蔵 ADC, DAC 用のライブラリ.
Dependents: Demo_F446_AD_DA F446_MySoundMachine F446_ADF_Nlms F446_Spectrogram
Diff: F446_ADC_Interrupt.hpp
- Revision:
- 4:16667bdb8227
- Parent:
- 1:6b9f2af6613d
- Child:
- 6:bbc26cf86b70
diff -r d1da91aec62f -r 16667bdb8227 F446_ADC_Interrupt.hpp --- a/F446_ADC_Interrupt.hpp Mon Jan 30 08:12:44 2017 +0000 +++ b/F446_ADC_Interrupt.hpp Sat Feb 18 05:37:31 2017 +0000 @@ -6,7 +6,7 @@ // 割り込みによりアナログ信号を入力するクラス(ヘッダ) // AdcDual クラスの派生クラス // -// 2016/11/12, Copyright (c) 2016 MIKAMI, Naoki +// 2017/02/16, Copyright (c) 2017 MIKAMI, Naoki //---------------------------------------------------------- #ifndef F446_ADC_DUAL_INTERRUPT_HPP @@ -21,6 +21,8 @@ public: AdcDual_Intr(int frequency) : AdcDual(frequency) { ADC2->CR1 |= ADC_CR1_EOCIE; } + + virtual ~AdcDual_Intr(); // -1.0f <= ad1, ad2 <= 1.0f virtual void Read(float &ad1, float &ad2)