Source lists for AD converter is explained on "Interface" No.10, CQ publishing Co.,Ltd, 2014. Source lists for DA converter is explained on "Interface" No.11, CQ publishing Co.,Ltd, 2014. 本ライブラリのADコンバータ用のソースリストについては,CQ出版社のインターフェース 2014年10月号に載っています. DAコンバータ用のソースリストについての説明は,CQ出版社のインターフェース 2014年11月号に載っています.
Dependents: FFT_Sampling FIR_LPF_Direct FIR_LPF_Symmetry IIR_LPF ... more
Fork of SignalProcessingIO by
AdcInternal.hpp
00001 //------------------------------------------------------ 00002 // Class for internal ADC for signal processing 00003 // 00004 // Copyright (c) 2014 MIKAMI, Naoki, 2014/06/17 00005 //------------------------------------------------------ 00006 00007 #ifndef ADC_INTERNAL_HPP 00008 #define ADC_INTERNAL_HPP 00009 00010 #include "mbed.h" 00011 00012 namespace Mikami 00013 { 00014 class Adc 00015 { 00016 public: 00017 explicit Adc(PinName pin = A0) 00018 : adc_(pin) {} 00019 float Read() 00020 { return 2*(adc_.read() - 0.5f); } 00021 private: 00022 Adc(const Adc&); 00023 Adc& operator=(const Adc&); 00024 AnalogIn adc_; 00025 }; 00026 } 00027 #endif // ADC_INTERNAL_HPP
Generated on Tue Jul 12 2022 16:21:17 by 1.7.2