Home
last modified time | relevance | path

Searched refs:mec_pwm_regs (Results 1 – 3 of 3) sorted by relevance

/hal_microchip-latest/mec5/drivers/
Dmec_pwm_api.h24 struct mec_pwm_regs;
45 int mec_hal_pwm_init(struct mec_pwm_regs *regs, uint32_t period_cycles,
48 int mec_hal_pwm_reset(struct mec_pwm_regs *regs);
50 int mec_hal_pwm_set_polarity(struct mec_pwm_regs *regs, uint8_t polarity_inverted);
52 int mec_hal_pwm_enable(struct mec_pwm_regs *regs, uint8_t enable);
53 int mec_hal_pwm_is_enabled(struct mec_pwm_regs *regs);
56 int mec_hal_pwm_off(struct mec_pwm_regs *regs);
58 int mec_hal_pwm_on(struct mec_pwm_regs *regs);
60 uint32_t mec_hal_pwm_get_freq_in(struct mec_pwm_regs *regs);
61 uint32_t mec_hal_pwm_get_count(struct mec_pwm_regs *regs, uint8_t on_count);
[all …]
Dmec_pwm.c73 static void pwm_disable(struct mec_pwm_regs *regs) in pwm_disable()
78 static void pwm_enable(struct mec_pwm_regs *regs) in pwm_enable()
84 static void pwm_off(struct mec_pwm_regs *regs) in pwm_off()
91 static void pwm_on(struct mec_pwm_regs *regs) in pwm_on()
149 static int prog_pwm_fd(struct mec_pwm_regs *regs, uint32_t period_cycles, uint32_t pulse_cycles) in prog_pwm_fd()
197 static int prog_pwm(struct mec_pwm_regs *regs, uint32_t period_cycles, uint32_t pulse_cycles) in prog_pwm()
240 int mec_hal_pwm_off(struct mec_pwm_regs *regs) in mec_hal_pwm_off()
252 int mec_hal_pwm_on(struct mec_pwm_regs *regs) in mec_hal_pwm_on()
280 int mec_hal_pwm_init(struct mec_pwm_regs *regs, uint32_t period_cycles, in mec_hal_pwm_init()
313 int mec_hal_pwm_reset(struct mec_pwm_regs *regs) in mec_hal_pwm_reset()
[all …]
/hal_microchip-latest/mec5/devices/common/
Dmec5_pwm_v1.h17 typedef struct mec_pwm_regs { /*!< (@ 0x40005800) MEC_PWM0 Structure … struct