MATSU-bed(LPC1549)でPWMを4つ以上出すプログラム
Dependents: servo_controller_1549
Diff: pwm_all_api.h
- Revision:
- 2:322ad3eef278
- Parent:
- 1:aefedd6b2a6f
- Child:
- 4:49ee58dc8e4d
--- a/pwm_all_api.h Wed Nov 01 16:20:31 2017 +0000 +++ b/pwm_all_api.h Tue Jan 09 10:08:34 2018 +0000 @@ -25,19 +25,19 @@ typedef struct pwmout_s pwmout_t; -void pwmout_all_init (pwmout_t* obj, PinName pin); -void pwmout_all_free (pwmout_t* obj); +void pwmout_init (pwmout_t* obj, PinName pin); +void pwmout_free (pwmout_t* obj); -void pwmout_all_write (pwmout_t* obj, float percent); -float pwmout_all_read (pwmout_t* obj); +void pwmout_write (pwmout_t* obj, float percent); +float pwmout_read (pwmout_t* obj); -void pwmout_all_period (pwmout_t* obj, float seconds); -void pwmout_all_period_ms (pwmout_t* obj, int ms); -void pwmout_all_period_us (pwmout_t* obj, int us); +void pwmout_period (pwmout_t* obj, float seconds); +void pwmout_period_ms (pwmout_t* obj, int ms); +void pwmout_period_us (pwmout_t* obj, int us); -void pwmout_all_pulsewidth (pwmout_t* obj, float seconds); -void pwmout_all_pulsewidth_ms(pwmout_t* obj, int ms); -void pwmout_all_pulsewidth_us(pwmout_t* obj, int us); +void pwmout_pulsewidth (pwmout_t* obj, float seconds); +void pwmout_pulsewidth_ms(pwmout_t* obj, int ms); +void pwmout_pulsewidth_us(pwmout_t* obj, int us); #ifdef __cplusplus }