Home
last modified time | relevance | path

Searched refs:pwm_width (Results 1 – 2 of 2) sorted by relevance

/hal_microchip-latest/mec5/drivers/
Dmec_bbled.c88 static void bbled_set_pwm_size(struct mec_bbled_regs *regs, uint8_t pwm_width) in bbled_set_pwm_size() argument
91 (((uint32_t)pwm_width << MEC_BBLED_CONFIG_PWM_SZ_Pos) & MEC_BBLED_CONFIG_PWM_SZ_Msk); in bbled_set_pwm_size()
243 int mec_hal_bbled_breathe_pwm_width(struct mec_bbled_regs *regs, uint8_t pwm_width) in mec_hal_bbled_breathe_pwm_width() argument
247 if (!regs || (pwm_width > MEC_BBLED_PWM_WIDTH_6)) { in mec_hal_bbled_breathe_pwm_width()
256 bbled_set_pwm_size(regs, pwm_width); in mec_hal_bbled_breathe_pwm_width()
377 br_cfg->pwm_width = bbled_get_pwm_size(regs); in mec_hal_bbled_breathe_config_get()
Dmec_bbled_api.h77 uint8_t pwm_width; /* must be programmed before BBLED is set to Breathe mode */ member
96 int mec_hal_bbled_breathe_pwm_width(struct mec_bbled_regs *regs, uint8_t pwm_width);