Changed logic
This commit is contained in:
31
firmware/src/bsp/pwm.h
Normal file
31
firmware/src/bsp/pwm.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef PWM_H_
|
||||
#define PWM_H_
|
||||
|
||||
/**** Includes ****/
|
||||
#include <stdint.h>
|
||||
|
||||
namespace bsp {
|
||||
|
||||
/**** Public definitions ****/
|
||||
class PWMout
|
||||
{
|
||||
protected:
|
||||
uint8_t pwm_ch;
|
||||
uint8_t last_duty;
|
||||
|
||||
public:
|
||||
PWMout(uint8_t pwm_ch);
|
||||
~PWMout(void);
|
||||
|
||||
void write(uint8_t duty);
|
||||
uint8_t get_set_duty(void);
|
||||
};
|
||||
|
||||
/**** Public function declarations ****/
|
||||
|
||||
#ifdef TESTING
|
||||
#endif
|
||||
|
||||
} //namespace
|
||||
|
||||
#endif /* PWM_H_ */
|
||||
Reference in New Issue
Block a user