Searched refs:pwm_width (Results 1 – 2 of 2) sorted by relevance
88 static void bbled_set_pwm_size(struct mec_bbled_regs *regs, uint8_t pwm_width) in bbled_set_pwm_size() argument91 (((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() argument247 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()
77 uint8_t pwm_width; /* must be programmed before BBLED is set to Breathe mode */ member96 int mec_hal_bbled_breathe_pwm_width(struct mec_bbled_regs *regs, uint8_t pwm_width);