tutrc_harurobo_lib
読み取り中…
検索中…
一致する文字列を見つけられません
pwm.hpp
[詳解]
1#pragma once
2
3#include "main.h"
4
5#include <cstdint>
6
7namespace tutrc_harurobo_lib {
8
9class PWM {
10public:
18 bool init(TIM_HandleTypeDef *htim, uint32_t channel);
19
23 uint32_t get_compare();
24
28 void set_compare(uint32_t compare);
29
30private:
31 TIM_HandleTypeDef *htim_;
32 uint32_t channel_;
33};
34
35} // namespace tutrc_harurobo_lib
Definition pwm.hpp:9
bool init(TIM_HandleTypeDef *htim, uint32_t channel)
void set_compare(uint32_t compare)
Definition bno055.hpp:10