|
mirs_esp_pio
|
単一MD10Cチャンネルのデバイス抽象。duty出力のみ。 [詳解]
#include <MotorDriver.hpp>
公開メンバ関数 | |
| MotorDriver (uint8_t pin_pwm, uint8_t pin_dir) | |
| void | begin (uint32_t pwm_freq=20000, uint8_t pwm_resolution=8) |
| void | setDuty (int duty) |
| void | stop () |
静的公開変数類 | |
| static constexpr int | DUTY_MAX = 255 |
単一MD10Cチャンネルのデバイス抽象。duty出力のみ。
正逆の意味づけは持たない(ペア層の仕事)。非常停止の判断も持たない(制御層の仕事)。
MotorDriver.hpp の 6 行目に定義があります。
| MotorDriver::MotorDriver | ( | uint8_t | pin_pwm, |
| uint8_t | pin_dir ) |
MotorDriver.cpp の 4 行目に定義があります。
| void MotorDriver::begin | ( | uint32_t | pwm_freq = 20000, |
| uint8_t | pwm_resolution = 8 ) |
MotorDriver.cpp の 10 行目に定義があります。
| void MotorDriver::setDuty | ( | int | duty | ) |
MotorDriver.cpp の 16 行目に定義があります。
| void MotorDriver::stop | ( | ) |
MotorDriver.cpp の 26 行目に定義があります。
|
staticconstexpr |
MotorDriver.hpp の 8 行目に定義があります。