|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
32 #define PWM_SYSFS_PATH_LEN 64
47 char *_export,
char *_enable,
48 char *_duty,
char *_period,
char enable_path[PWM_SYSFS_PATH_LEN]
path to enable file
char duty_path[PWM_SYSFS_PATH_LEN]
path to duty file
int pwm_sysfs_init(struct PWM_Sysfs *pwm, char *base_path, char *_export, char *_enable, char *_duty, char *_period, uint8_t channel)
char period_path[PWM_SYSFS_PATH_LEN]
path to period file
void pwm_sysfs_set_duty(struct PWM_Sysfs *pwm, uint32_t duty)
int duty_cycle_fd
file descriptor to write/update duty cycle
bool enabled
true if pwm is enabled
timer subsystem PPM input on SERVO6 pin actuators pwm(if PWM_USE_TIM1) TIM8 radio_control/ppm(if USE_PPM_TIM8)(non-advanced timers using RCC_APB2) TIM2 adc(if USE_AD_TIM2
uint32_t duty_cycle_nsec
current duty cycle (in nsec)
uint32_t period_nsec
current period (in nsec)
void pwm_sysfs_set_period(struct PWM_Sysfs *pwm, uint32_t period)
void pwm_sysfs_enable(struct PWM_Sysfs *pwm, bool enable)
#define PWM_SYSFS_PATH_LEN