動作確認済み
GMD.hpp
- Committer:
- inst
- Date:
- 2016-07-01
- Revision:
- 0:010c6f6ac7c0
File content as of revision 0:010c6f6ac7c0:
#ifndef INCLUDED_GMD_H #define INCLUDED_GMD_H #include "mbed.h" #include "FastPWM.h" class GMD { public: GMD(PinName p0, PinName p1, PinName shut_down); void set_frequency_kHz(float f_kHz); float operator=(float p); float set(float p); void release(); private: static const float _frequency_to_tick_coeff; static const uint32_t _default_frequency_kHz; static const float _duty_upper_limit; static const float _duty_lower_limit; FastPWM* _pwm[2]; DigitalOut _shut_down; }; #endif