Daiki Kato / PwmOutResetSync

Dependents:   Motor_Control_using_lib Motor_Control_API

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pwmout_rst_sync_api.h Source File

pwmout_rst_sync_api.h

00001 #ifndef PWMOUT_RST_SYNC_API_H
00002 #define PWMOUT_RST_SYNC_API_H
00003 
00004 #include "device.h"
00005 
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009 
00010 typedef struct pwmout_rst_sync_s {
00011     int pwm_type;
00012     int pwm_neg_ph;
00013 } pwmout_rst_sync_t;
00014 
00015 void pwmout_rst_sync_init         (pwmout_rst_sync_t* obj, PinName pin);
00016 void pwmout_rst_sync_free         (pwmout_rst_sync_t* obj);
00017 
00018 void  pwmout_rst_sync_write       (pwmout_rst_sync_t* obj, float percent);
00019 float pwmout_rst_sync_read        (pwmout_rst_sync_t* obj);
00020 
00021 void pwmout_rst_sync_period       (float seconds);
00022 void pwmout_rst_sync_period_ms    (int ms);
00023 void pwmout_rst_sync_period_us    (int us);
00024 
00025 void pwmout_rst_sync_pulsewidth   (pwmout_rst_sync_t* obj, float seconds);
00026 void pwmout_rst_sync_pulsewidth_ms(pwmout_rst_sync_t* obj, int ms);
00027 void pwmout_rst_sync_pulsewidth_us(pwmout_rst_sync_t* obj, int us);
00028 
00029 #ifdef __cplusplus
00030 }
00031 #endif
00032 
00033 #endif
00034 
00035