|
mikroSDK Reference Manual
|
Pin and port name type definitions.
pwm_err_t
Definition: drv_pwm.h:56
err_t pwm_open(pwm_t *obj, pwm_config_t *config)
Open the PWM driver object on selected pin.
void pwm_configure_default(pwm_config_t *config)
Configure PWM config structure.
This file contains all the functions prototypes for the PWM library.
PWM driver config structure, consisted of the following fields:
Definition: drv_pwm.h:82
err_t pwm_set_duty(pwm_t *obj, float duty_ratio)
Set PWM duty cycle in percentages.
err_t pwm_set_freq(pwm_t *obj, uint32_t freq_hz)
Set PWM frequency in Hertz.
err_t pwm_close(pwm_t *obj)
Close PWM driver context object.
hal_pin_name_t pin_name_t
Definition: drv_name.h:73
int32_t err_t
Definition: hal_target.h:63
err_t pwm_start(pwm_t *obj)
Enable counter and start PWM module.
PWM driver context structure.
Definition: drv_pwm.h:95
err_t pwm_stop(pwm_t *obj)
Stop PWM module.